1,362 views
5 votes
5 votes

Consider the following keys that are hashed into the hash table in the order given using the hash function

Where to handle the collision chaining is used, after inserting all the above keys in table if 2 new keys inserted into table the what is the probability new items hashed into empty slot ?

......................................................................................................

I am getting 5/11 * 4/11.

1 Answer

1 votes
1 votes

I think correct answer should be   $\frac{\binom{5}{1}}{\binom{11}{1}}*\frac{\binom{4}{1}}{\binom{11}{1}}$  = $\frac{5}{11}*\frac{4}{11}$ (same could be verified via case tree diagram)

In mentioned case it can not be $\frac{\binom{5}{2}}{\binom{11}{2}}$  =  $\frac{5}{11} * \frac{4}{10}$ (because insertion is sequential)

edited by

Related questions

0 votes
0 votes
1 answer
1
tishhaagrawal asked Dec 16, 2023
360 views
Below is my approach to solving this question, can anyone please explain if I am doing it the right way?Let X = #free slotssince, m =7 and n = 3So, $4 \leqslant x\leqsla...
3 votes
3 votes
2 answers
4
ben10 asked Sep 15, 2018
1,323 views