Clustering in Open Addressing

Updated Apr 28, 2026

Short answer

Primary clustering happens with linear probing (clumps); Secondary happens when keys with same hash follow same probe path.

Deep explanation

Intermediate hash table mechanics focus on optimization and collision management. Primary clustering happens with linear probing (clumps); Secondary happens when keys with same hash follow same probe path.

Real-world example

Database indexing for unique identifiers.

Common mistakes

  • Forgetting that resizing requires re-calculating the hash for every existing item.

Follow-up questions

  • Why is table size usually a prime number?

More Hash Tables interview questions

View all →