in DS edited by
690 views
0 votes
0 votes

​​​​​​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. $\ln \left(\frac{1}{1-\alpha}\right)$
  2. $\frac{1}{1-\alpha}$
  3. $1+\frac{\alpha}{2}$
  4. $\frac{1}{1+\alpha}$

in DS edited by
by
690 views

1 Answer

0 votes
0 votes
option b is ryt since it will take time proportional to search first and then constant time for insertion.

Related questions