Consider a hash function that distributes keys uniformly. The hash table size is 20.
Here I am getting answer 11 considering the fact that probability will of collision will be 50% more only when we already have 10 entries in the hash table and we are about to map one more entry in the hash table .
Is this approach correct ?
The probability of collision in each entry will be $\dfrac{1}{20}$
After inserting $k$ values the probability becomes $\dfrac12$
Then we have $\dfrac{1}{20}\times k=\dfrac12$
Therefore, $k=10$