Data Structures & AlgorithmsVery hardICPC regional · hashing

Problem: What is the expected number of random probes needed in open-addressing hashing with load factor alpha under uniform probing (unsuccessful search)?

  1. A. Exactly n
  2. B. About 1 / (1 - alpha)
  3. C. About log n
  4. D. About alpha^2

Correct answer: B. About 1 / (1 - alpha)

For uniform probing, the expected probes for an unsuccessful search are about 1/(1 - alpha).

More Coding Interview Problems questions

Exams that ask this topic