ProgrammingHard

A hash table with open addressing and a load factor of 0.9 is used. Why is this risky?

  1. A. Hashing stops working for any load above 0.5 in C
  2. B. The table must then use malloc for every key
  3. C. The keys are sorted automatically and then lost
  4. D. Probe sequences become long, so lookups and inserts slow down sharply

Correct answer: D. Probe sequences become long, so lookups and inserts slow down sharply

Linear probing cost grows like 1 / (1 - a)^2, so a load of 0.9 makes unsuccessful searches very expensive.

More C Programming questions

Exams that ask this topic