Menu

[Solved]10 Points Consider Open Address Hash Table T0 M 1 Linear Probing Assume Simple Uniform Ha Q37241439

(10 points) Consider an open address hash table T0,.... (m - 1)] with linear probing. Assume simple uniform hashing and that

(10 points) Consider an open address hash table T0,…. (m – 1)] with linear probing. Assume simple uniform hashing and that there are no deletions. Suppose that the slots T[m/2,., (m – 1)] are occupied, and the remaining slots are empty. Also assume m is a multiple of 2 so that m/2 is an integer (a) (5 points) Find the probability that the slot To w be filled in the next insertion. Explain. (b) (5 points) Now suppose instead of T[m/2,…. (m-1)] are occupied this time Tím/2,…, (m- 2)] are occupied, Find the probability that the slot T0 will be filled in the next inser- tion. Explain. Show transcribed image text (10 points) Consider an open address hash table T0,…. (m – 1)] with linear probing. Assume simple uniform hashing and that there are no deletions. Suppose that the slots T[m/2,., (m – 1)] are occupied, and the remaining slots are empty. Also assume m is a multiple of 2 so that m/2 is an integer (a) (5 points) Find the probability that the slot To w be filled in the next insertion. Explain. (b) (5 points) Now suppose instead of T[m/2,…. (m-1)] are occupied this time Tím/2,…, (m- 2)] are occupied, Find the probability that the slot T0 will be filled in the next inser- tion. Explain.

Expert Answer


Answer to (10 points) Consider an open address hash table T0,…. (m – 1)] with linear probing. Assume simple uniform hashing and … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *