Question: Consider inserting the keys 10, 22, 31, 4, 15, 28, 17, 88, 59 into a hash table of length m = 11 using open addressing
Consider inserting the keys 10, 22, 31, 4, 15, 28, 17, 88, 59 into a hash table of length m = 11 using open addressing with the auxiliary hash function h′(k) = k. Illustrate the result of inserting these keys using linear probing, using quadratic probing with c1 = 1 and c2 = 3, and using double hashing with h1(k) = k and h2(k) = 1 + (k mod (m – 1)).
Step by Step Solution
3.54 Rating (161 Votes )
There are 3 Steps involved in it
a Linear probing hk hk i mod m b Quadratic probing hk hk c1i c2i 2 mod m c Double hashing hk h1k ih2k mod m Inserting the keys 10 22 31415 28 17 8859 ... View full answer
Get step-by-step solutions from verified subject matter experts
