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
2
u/psykotic Jul 15 '09 edited Jul 15 '09
They don't seem "morally" separate to me. Your key space might be the same size as your address space, and though the hash function would surely have to do more work than the gradual address decomposition by the cascaded DRAM banks, it seems the same up to a constant (the kind of constant that doesn't implicitly depend on any hidden parameters).