ProgrammingHard

With chaining, what is the expected number of nodes examined by an unsuccessful search when the load factor is 1.5?

  1. A. 2.5
  2. B. 0.75
  3. C. 1
  4. D. 1.5

Correct answer: D. 1.5

An unsuccessful search walks the whole chain, which has length a on average. The expected cost is a = 1.5.

More C Programming questions

Exams that ask this topic