in Algorithms edited by
417 views
0 votes
0 votes

in Algorithms edited by
417 views

1 Answer

1 vote
1 vote
Best answer

What i thought was that, after mapping these elements using chaining, there are 5 slots left.

So any element that comes afterwards will want to be mapped to any of the 11 slots but it has only 5 available. Probability of all the 11 slts are the same since mod function is uniformally distributed. 
So the required probability will be 5/11=0.45



what M.E. says: any element will map to 1 of the 5 slots so it will be 1/5=0.2

 

edited by

4 Comments

who is "me" here?
0
0
sir made easy
0
0
Never thought :P
1
1
Exactly ans will be .5 because after insertion of keys 5 slot are left so for no collision sample space of size 5 is there all have equal propablity that is 1/5
0
0

Related questions

0 votes
0 votes
1 answer
2
Himanshu1 asked in Algorithms Dec 16, 2015
785 views
Himanshu1 asked in Algorithms Dec 16, 2015
785 views