Question: 2. Consider the following table which inserts values using double-hashing with primary hash function h(k) = k % 10 , and double hash function g(k)
2. Consider the following table which inserts values using double-hashing with primary hash function h(k) = k % 10, and double hash function g(k) = 7 (k % 7):
a. Insert the following values 21, 36, 26, 11, 6 into the hash table using the above hashing method.
b. What single integer values that causes the hashing in part a in an infinite loop? (explain)
c. How can you solve part b issue?
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
