GATE DA 2024 · Hash Tables

MCQ · 1 mark · Problem PROG-DSTR-0056

Consider performing uniform hashing on an open address hash table with load factor \(\alpha=\frac{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 \(\frac{1}{1-\alpha}\). Inserting an element in this hash table requires at most probes, on average.
  1. A
    \(\ln \left(\frac{1}{1-\alpha}\right)\)
  2. B
    \(\frac{1}{1-\alpha}\)
  3. C
    \(1+\frac{\alpha}{2}\)
  4. D
    \(\frac{1}{1+\alpha}\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422951/gate-ds%26ai-2024-question-11

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com