edited by
480 views

1 Answer

3 votes
3 votes

The probability that given m slots , a key will be mapped to that slot = 1 / m

So probability of not mapping to that slot =  1 - 1/m

                                                           =   (m-1) / m

So P(1st slot remains empty even after n insertions) = P(none of the n keys map into the 1st slot)

                                                                            =   ((m-1)/m)n  [Follows from multiplication principle]

Here we have m  =  10 and n = 6 , So

P(1st slot remains empty even after n insertions)   =    (9/10)6

                                                                          =    0.96

                                                                          =    0.531 correct to 3 decimal places

Answer:

Related questions

0 votes
0 votes
1 answer
1
qwertyui asked Sep 24, 2016
447 views
what is the expected number of probs requires when inserting an element into an open address hash table with load factor x (assume uniform hashing)a 1/(1-x)b 1/(1+x)c 1/x...
0 votes
0 votes
1 answer
2
tishhaagrawal asked Dec 16, 2023
354 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...