Computer Science EngineeringHard

Which hashing technique guarantees O(1) worst-case search time for a static set of keys?

  1. A. Linear probing
  2. B. Separate chaining
  3. C. Double hashing
  4. D. Perfect hashing

Correct answer: D. Perfect hashing

Two-level perfect hashing (FKS) gives collision-free lookups on a fixed key set.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic