This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: avl-trees vs. hashes


On Mon, 26 Oct 1998, Per Bothner wrote:

> As an aside, since it seems many people are unaware of this
> implementation option, let me also point out that you can
> implement hashtables so each bucket always has a single
> entry.

yes, Python's dictionaries are implemented in this way.  The basic lookup
procedure cleverly hops around the array searching for the key.