recategorized by
2,662 views
1 1 vote
The keys 44, 63, 29, 78, 23, 6, 81, 14, 13, 12 and 52 are inserted into an initially empty hash table of length 12 using linear probing with hash function h(k)= k mod 12. What is the probability that the 10th slot will be filled next?

i. 11/12

ii. 1/12

iii. 10/12

iv. 1

The answer given is i but according to me it should be iv because after we insert all the given numbers in the hash table only one slot  is left which have a probability of filling as 1 because no matter what index we get for the next insert we are going to fill 10th slot only.

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.2k
1.2k views
Magma asked Dec 27, 2018
1,181 views
How to solve such kind of questions ? Can anybody tell what's is the concept behind this ?? someone provide me link so that I read it and understand the actual concept
59 59 votes
4 answers 4 answers
24.9k
24.9k views
Arjun asked Feb 12, 2020
24,912 views
Consider a double hashing scheme in which the primary hash function is $h_1(k)= k \text{ mod } 23$, and the secondary hash function is $h_2(k)=1+(k \text{ mod } 19)$. Ass...
0 0 votes
1 1 answer
2.7k
2.7k views
Ram Swaroop asked Jan 27, 2019
2,659 views
Consider the hashing table with 'm' slots and 'n' keys. If the expected number of probes in unsuccessful search is 3. The expected number of probes in a successful search...
0 0 votes
0 0 answers
1.6k
1.6k views
Jyoti Kumari97 asked Nov 25, 2018
1,604 views
What is the number of collisions while doing insert operation on the hash table? Options are 3456Answer is 4Can anyone tell me how? ​​(d) None of these09 with hash funct...