develooper Front page | perl.perl6.internals | Postings from June 2001

[DDJ] Fast and Small Resizable Arrays

Thread Next
From:
Jarkko Hietaniemi
Date:
June 8, 2001 07:40
Subject:
[DDJ] Fast and Small Resizable Arrays
Message ID:
20010608093935.F12606@chaos.wustl.edu
An interesting article in the July DDJ) in the Algorithm Alley:
"Fast and Small Resizable Arrays", presents a datastructure that
promises just what the subject says.  Appending elements has the worst
case of O(sqrt(N)), as is the space wastage (which is the optimum, as
opposed to the usual wastage of O(N), or, more precisely, O(2N/3) when
running out of space and doubling the space and copying over).  Go buy
the DDJ or see the paper "Resizable Arrays in Optimal Time and Space"
in http://db.uwaterloo.ca/~eddemain/papers/WADS99a/
(the http://daisy.uwaterloo.ca/~eddemain/papers/WADS99a/
in the article has moved)
The code listing is at http://www.ddj.com/ftp/2001/2001_07/aa0701.txt

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About