Topic: Data Structures / Hashing
Which collision resolution mechanism suffers from primary clustering?
- A. Quadratic Probing
- B. Double Hashing
- C. Separate Chaining
- D. Linear Probing
Answer: D. Linear Probing
Explanation: Linear probing resolves hash collisions by placing the colliding item in the very next available slot sequentially. This mechanism suffers heavily from primary clustering, where contiguous blocks of occupied slots build up, drastically increasing the probe sequence length and reducing search efficiency over time.