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