ProgrammingVery hard

With linear probing at load factor 0.75, the expected number of probes for an unsuccessful search, under uniform hashing, is what?

  1. A. 8.5
  2. B. 4.0
  3. C. 3.5
  4. D. 16

Correct answer: A. 8.5

Using (1 + 1 / (1 - a)^2) / 2 with a = 0.75 gives (1 + 16) / 2 = 8.5. This is why linear probing should keep the load low.

More C Programming questions

Exams that ask this topic