ProgrammingVery hard

The expected number of probes for an unsuccessful search in linear probing with load factor a = 0.9 is about what?

  1. A. 50.5
  2. B. 5.5
  3. C. 9.0
  4. D. 100

Correct answer: A. 50.5

(1 + 1 / (0.1)^2) / 2 = (1 + 100) / 2 = 50.5. The cost grows sharply as the table fills.

More C Programming questions

Exams that ask this topic