edited by
833 views
1 votes
1 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}$

edited by

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

0 votes
0 votes
0 answers
1
Rahul_Rathod_ asked Dec 28, 2018
426 views
A) (1-(N / K)) ^ r b) (1-(K / N)) ^ r c) (1+(N / K)) ^ r-1 d) (1-(K / N)) ^ r-1
1 votes
1 votes
0 answers
2
hrcule asked Aug 9, 2018
515 views
Suppose we used a hash fu action H(n) to hash n distinct elements (key) into an array T of length m. What is expected number of collision, if simple uniform hashing is us...
4 votes
4 votes
4 answers
3
0 votes
0 votes
1 answer
4
smartmeet asked Feb 8, 2017
4,562 views
If h is any hashing function and is used to hash n keys into a table of size m, here n<=m, the expected number of collisions involving a particular key x isa) Less than 1...