GATE Computer ScienceHardGATE CS

Under the standard uniform-hashing approximations, a table with load factor α = 0.9 needs about ½(1 + 1/(1 − α)²) probes for an unsuccessful search with linear probing and 1/(1 − α) probes with double hashing. By how many probes does linear probing exceed double hashing for an unsuccessful search at α = 0.9?

  1. A. 50.5
  2. B. 45.0
  3. C. 30.5
  4. D. 40.5

Correct answer: D. 40.5

Linear probing: ½(1 + 1/0.01) = 50.5 probes. Double hashing: 1/0.1 = 10 probes. The difference is 50.5 − 10 = 40.5; quoting 50.5 forgets to subtract.

More Algorithms questions

Exams that ask this topic