• retagged by
860 views

1 Answer

0 0 votes
worst case will occur when the element being searched is hashed to 8 so it will search for 8,9,0,1,2,3 and 4 when it sees that 4 is empty it stops the search so that is the worst case for the above arrangement
Position:
Show:

Related questions

60 60 votes
4 answers 4 answers
25.1k
25.1k views
Arjun asked Feb 12, 2020
25,087 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...
1 1 vote
2 answers 2 answers
948
948 views
2 2 votes
1 1 answer
1.8k
1.8k views
Hradesh patel asked Oct 1, 2016
1,811 views
Let $| U | = m^{2}$ and consider hashing with chaining. For any hash function $h : U\rightarrow{ 1, 2, ......., m-1}, $ there exists a sequence of $m$ insertions that lea...