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

Quốc Ân

New member
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}{(1-⅄)}\)
B. \(\frac{1}{2}\frac{1+1}{(1-⅄)^2}\)
C. \(\frac{1}{2}\frac{1+1}{(1+⅄)}\)
D. \(\frac{1}{2}\frac{1+1}{(1+⅄)(1-⅄)}\)
 
Answer: b
Explanation: The mathematical formula for calculating the number of probes for an unsuccessful search is \(\frac{1}{2}\frac{1+1}{(1-⅄)^2}\). For insertion, it is \(\frac{1}{2} \frac{1+1}{(1-⅄)}\).
 

Tìm kiếm

Back
Top