Clustering
Standard · Multiple choice · about 4 min
Each table has 10 slots, holds 5 keys and uses linear probing. A new key hashes to a random slot. In which table does its insert take the most probes on average?
Learn the idea first: Open addressing: linear, quadratic probing, double hashing, a visual lesson.
More Open addressing: linear, quadratic probing, double hashing problems
- Follow the probes Warm-up
- Predict a double-hashing slot Standard
- Fill a table with linear probing Standard
- Implement insert with tombstones Standard
- Implement quadratic probing with resize Challenge