Considering a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is the probability that the first 3 slots are unfilled after the first 3 insertions? (note:100 ^ 3 means 100 raised to the power 3)
Answers
Answer:
The probability that the first 3 slots are unfilled after the first 3 insertions is 0.912673.
Step-by-step explanation:
Given : Considering a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing.
To find : What is the probability that the first 3 slots are unfilled after the first 3 insertions?
Solution :
Each item hashed has an equal probability of being placed into a slot.
Probability that first item does not go in any of the first 3 slots is given by,
Probability that second item does not go in any of the first 3 slots is given by,
Probability that third item does not go in any of the first 3 slots is given by,
Probability that the first 3 slots are unfilled after the first 3 insertions is given by,
Therefore, The probability that the first 3 slots are unfilled after the first 3 insertions is 0.912673.