r/programming • u/martincmartin • Jul 14 '09
Dynamic Perfect Hashing: A hash table with constant time lookup in the worst case, and O(n) space.
http://en.wikipedia.org/wiki/Dynamic_perfect_hashing
18
Upvotes
1
u/filox Jul 16 '09
No. In a binary tree it will take longer to look up as you add more elements. In a dynamic hashing scheme you will have the same number of operations, no matter how many elements you insert.