Examveda

What is the formula to find the expected number of probes for an unsuccessful search in linear probing?

A. $$\frac{1}{2}\,\,\frac{{1 + 1}}{{\left( {1 - \lambda } \right)}}$$

B. $$\frac{1}{2}\,\,\frac{{1 + 1}}{{{{\left( {1 - \lambda } \right)}^2}}}$$

C. $$\frac{1}{2}\,\,\frac{{1 + 1}}{{\left( {1 + \lambda } \right)}}$$

D. $$\frac{1}{2}\,\,\frac{{1 + 1}}{{\left( {1 + \lambda } \right)\left( {1 - \lambda } \right)}}$$

Answer: Option B


This Question Belongs to Data Structure >> Hashing

Join The Discussion

Related Questions on Hashing

In hashing, what is a "collision"?

A. When two elements are stored in the same slot.

B. When a hash table exceeds its capacity.

C. When a hash function fails to produce a unique index.

D. When two keys hash to the same index.