Question: a. Assuming uniform hashing, show that for i = 1,2, . . . ,n, the probability is at most 2 - k that the i
a. Assuming uniform hashing, show that for i = 1,2, . . . ,n, the probability is at most 2-k that the i th insertion requires strictly more than k probes.
b. Show that for i = 1,2, . . . ,n, the probability is O(1/n2) that the i th insertion requires more than 2 lg n probes.
Let the random variable Xi denote the number of probes required by the i th insertion. You have shown in part (b) that Pr {Xi > 2lg n} = O(1/n2). Let the random variable X = max1 ≤ i ≤ n Xi denote the maximum number of probes required by any of the n insertions.
c. Show that Pr {X >2lg n} = O(1/n).
d. Show that the expected length E [X] of the longest probe sequence is O(lg n).
Step by Step Solution
3.55 Rating (166 Votes )
There are 3 Steps involved in it
a Since we assume uniform hashing we can use the same observation as is used in Corollary 117 that i... View full answer
Get step-by-step solutions from verified subject matter experts
