Question: Consider an open addressed hash table with double hashing, size m = 7 . The hash function h ( k , i ) and the
Consider an open addressed hash table with double hashing, size m The hash function hk i and the two auxiliary hash functions hk and hk are given below. After the following n keys have been inserted in the order given, draw the hash table as an array. In each element of the array, write either a key or NULL, as appropriate. Label your indices.
Hint: I recommend you first make yourself a side table ie scratch work of some numbers: for each of the keys, calculate the output of hk and hk Then use that to do the actual hash table inserts.
hk ihk i hk m
hk k m
hkk m
m
n
Keys to insert:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
