Data Structures & AlgorithmsHardTCS Digital · Infosys SP

A hash table with open addressing has load factor α = 0.75 and uniform hashing. What is the expected number of probes for an UNSUCCESSFUL search?

  1. A. 1.33
  2. B. 2.5
  3. C. 4
  4. D. 1.75

Correct answer: C. 4

For open addressing with uniform hashing the expected probes for an unsuccessful search are 1/(1 − α) = 1/0.25 = 4. With chaining it would be 1 + α = 1.75.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic