in reply to Re: A short meditation about hash search performance
in thread A short meditation about hash search performance
The worst-case running time for insertion is O(1). For searching, the worst-case running time is proportional to the length of the list: we shall analyze this more closely below. Deletion of an element x can be accomplished in O(1) time if the lists are doubly linked.
Note, I wasn't referring to perl's hashes in particular, just hashes in general.
* Cormen, Leiserson, Rivest 1990: Introduction to Algorithms. MIT Press, Cambridge Massachusetts.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: A short meditation about hash search performance
by Abigail-II (Bishop) on Nov 16, 2003 at 22:15 UTC | |
Re: Re: Re: A short meditation about hash search performance
by Schemer (Scribe) on Nov 16, 2003 at 08:03 UTC |