Indexing
Hashing your keys…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Indexing
Hashing your keys…
Open addressing: every key lives in the table itself, probing forward until it finds a free slot.
Also called open addressing. "Closed hashing" means keys stay inside the table array — the opposite of the "open hashing" on the chaining page, despite how the names read.
probe(k, i) = (h(k) + i) mod m — simple and cache friendly, but prone to primary clustering.
Click Play to begin
O(1/(1−α))O(n)O(m)1.0Question 1 of 3
Why can a closed hash table never hold more keys than it has slots?