Question: data structures and algorithms 1. [28 pts.] Draw the 7-entry hash table, by filling out the table below with index values 0,1,2, ...,6 (index column
data structures and algorithms
![data structures and algorithms 1. [28 pts.] Draw the 7-entry hash table,](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f54211e59c8_26566f542113a366.jpg)
1. [28 pts.] Draw the 7-entry hash table, by filling out the table below with index values 0,1,2, ...,6 (index column 1), that results from using hash function h(k) = 15k + 3| mod 7 , and the corresponding collision mechanism (columns 2 5), to hash the following seven keys: 12, 10, 3, 21, 6, 7, 17. For each corresponding column, other than the first column, collisions are handled by (1) chaining (chaining column), (2) linear probing (linear column), (3) quadratic probing (quadratic column), up to the point where the method fails, and (4) double hashing using the secondary hash function h'(k) = q (k mod q) for q = 3 (double, q = 3 column). index chaining linear quadratic double, q = 3 0 1 2 3 4. 5 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
