GATE DA 2024 · Question 21 · Programming, Data Structures and Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Consider performing uniform hashing on an open address hash table with load factor α = n/m < 1, where n elements are stored in the table with m slots. The expected number of probes in an unsuccessful search is at most 1/(1-α).
Inserting an element in this hash table requires at most ______ probes, on average.

  1. (A) ln(1/(1-α))
  2. (B) 1/(1-α)
  3. (C) 1+α/2
  4. (D) 1/(1+α)
Answer

Answer (B)

Answer from the official GATE DA 2024 answer key.

The step-by-step solution, where available, is part of GATE DA Pro. See what Pro includes