Re: Efficiency of arrays in LISP
- From: Raffael Cavallaro <raffaelcavallaro@pas-d'espam-s'il-vous-plait-mac.com>
- Date: Sun, 29 Oct 2006 22:35:01 -0500
On 2006-10-29 22:22:52 -0500, "robinganemccalla@xxxxxxxxx" <robinganemccalla@xxxxxxxxx> said:
I have a list of data that I'm going to need to remove elements from,
and select elements from randomly. I am wondering the array functions
in common lisp would be more effective (in terms of execution time)
then using remove to remove and creating a loop that takes the car if
iterations has reached the random number, and recursively calls itself
on the cdr with a greater value of iterations otherwise. Coding
complexity is not an issue.
Also consider a hash table if you really need to remove items.
.
- References:
- Efficiency of arrays in LISP
- From: robinganemccalla@xxxxxxxxx
- Efficiency of arrays in LISP
- Prev by Date: Efficiency of arrays in LISP
- Next by Date: Re: Why is Lisp attacked on Reddit almost as often as Republicans?
- Previous by thread: Efficiency of arrays in LISP
- Next by thread: Re: Efficiency of arrays in LISP
- Index(es):
Relevant Pages
|