Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Draw the 11-item hash table that results from using the hash function h(i) = (i mod 11) to hash the keys 12, 44, 13,
Draw the 11-item hash table that results from using the hash function h(i) = (i mod 11) to hash the keys 12, 44, 13, 88, 23, 94, 11, 39, 20, 16, and 5, for each of the following assumptions: a) Assume collisions are handled by linear probing. (10 marks) b) Assume collisions are handled by double hashing using a secondary hash function h'(k) = 7 - (k mod 7). Using double hashing, if the primary hash function h maps some key k to a bucket A[i] (i.e., h(k)= i) but bucket A[i] is already occupied, then buckets A[(i + f(j)) mod N] are tried iteratively for j = 1, 2, 3, .... where f(j) =jh'(k), for some secondary hash function h'.
Step by Step Solution
★★★★★
3.46 Rating (159 Votes )
There are 3 Steps involved in it
Step: 1
a Assuming collisions are handled by Linear Probing and using the hash function hk k mod 11 Initial ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started