Question: [ Hashing : 2 0 % ] Answer the following questions related to hashing. ( a ) ( 7 % ) Demonstrate what happens when

[Hashing : 20%] Answer the following questions related to hashing.
(a)(7%) Demonstrate what happens when we insert the keys 17,16,10,9,8,1,2,3,15,14,13,12 into a hash table of size 13 with collision resolved by double hashing. The hash functions are defined by h1(k)=kmod13 and h2(k)=1+(k mod 7). You do not need to finish all but up to the moment when you just finish the insertion with the second collision.
\table[[0,],[1,],[2,],[3,],[4,],[5,],[6,],[7,],[8,],[9,],[10,],[11,],[12,]]
(b)(7%) If the function h1(k) is substituted by h1(k)=k mod 14, what will happen?
Try to discuss as many problems as possible.
(c)(6%) Describe any defect for the quadratic probing designed by h(k,i)=(h'(k)+c1i+c2i2)mod24, where c1=3 and c2=6.
(d)(5%) Is O(n2)+(n3lnn)=(n3lnn) correct? Explain your answer.
[ Hashing : 2 0 % ] Answer the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!