After hashing of $\text{how many keys}$ will the probability that any new key hashed collides with an existing one exceed $0.5$.
If we insert a new key then it will collide with existing one and probability of collision $> 0.5$
$\therefore \text{Probability of collision > 0.5}$
$1 – \text{P(No collision)>0.5}$
Let’s see if we insert $5$ keys then what happens:
$1-(1\times (\frac{20-1}{20})\times (\frac{20-2}{20})\times (\frac{20-3}{20})\times (\frac{20-4}{20}))$
$1-(1\times \frac{19}{20}\times \frac{18}{20}\times \frac{17}{20}\times \frac{16}{20})$
$1-0.5814 = 0.4186$
$\color{Red}0.4186<0.5$
Now we see if $6^{th}$ key inserted what will happen:
$1-(1\times (\frac{20-1}{20})\times (\frac{20-2}{20})\times (\frac{20-3}{20})\times (\frac{20-4}{20})\times (\frac{20-5}{20}))$
$1-(1\times \frac{19}{20}\times \frac{18}{20}\times \frac{17}{20}\times \frac{16}{20}\times \frac{15}{20})$
$1-0.43605 = 0.56395$
$\color{Green}0.56395>0.5$
But the question which is asked a bit ambiguous statement.
My thought:
After hashing of “how many keys” will the probability that any new key hashed collides with an existing one exceed $0.5$.
After hashing of $5$ keys probability that any new key $(6^{th})$ hashed collides with an existing one exceed $0.5$.
Means After hashing of $5$ keys if we hash a new key $(6^{th})$ which collides with an existing one then the probability of collision will exceed $0.5$. which is TRUE.
According to me the ans should be: $A. 5$
$D. 10$ can’t possible as there probability will be equal to $0.5$. Here, $11$ should be ans where probability exceed $0.5$.