Question: 5. [ 18 pts] Given input (1, 13, 12, 11, 10, 21, 32), initial tableSize of 11 and a hash function h(x)-x (mod tableSize), show
5. [ 18 pts] Given input (1, 13, 12, 11, 10, 21, 32), initial tableSize of 11 and a hash function h(x)-x (mod tableSize), show the resulting: (a) separate chaining hash table (b) hash table with quadratic probing (c) hash table with double hashing, with second hash function h2(x)-5-(h(x) mod 5) Rehash the tables if it is needed. If rehashing is done, show the table before th rehashing as well (with load factor too high), then after rehashing. Write the collisions that occur and NEW tableSize in your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
