Re: Efficiency of arrays in LISP



"robinganemccalla@xxxxxxxxx" <robinganemccalla@xxxxxxxxx> writes:

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.

Ah good. Since coding complexity is not an issue, you might consider
rewriting the Judy algorithm in CL (or writting a FFI to the C
library, but this might be more complex to use).

http://judy.sourceforge.net/


--
__Pascal Bourguignon__ http://www.informatimago.com/

HEALTH WARNING: Care should be taken when lifting this product,
since its mass, and thus its weight, is dependent on its velocity
relative to the user.
.



Relevant Pages

  • Re: Norvigs use of APPPLY for MATRIX-TRANSPOSE puzzled me!
    ... so I say that an MxN matrix will ... > be matrix-transposed in MN iterations. ... > to talk about the complexity of the algorithm. ... In effect, as far as big-O notation goes, any runtime that is like M*N ...
    (comp.lang.lisp)
  • Re: Attractor set representation
    ... chris_znk@yahoo.com (Chris Zanek) wrote: ... >> complexity point of view), so I can't see how it can take longer than ... >> a minute to generate a million or so iterations, ...
    (sci.math)
  • Re: Attractor set representation
    ... chris_znk@yahoo.com (Chris Zanek) wrote: ... >> complexity point of view), so I can't see how it can take longer than ... >> a minute to generate a million or so iterations, ...
    (sci.nonlinear)
  • Re: password derived key
    ... > is a way to disrupt the dictionary attack, ... void bytePassToKey(string sentence, int iterations) ... complexity analysis: if there are 2000 common words ...
    (sci.crypt)
  • Re: Attractor set representation
    ... > complexity point of view), so I can't see how it can take longer than ... > a minute to generate a million or so iterations, ... (can you check the exact time?). ...
    (sci.nonlinear)