Question: Suppose we have an initially empty hash table with 11 cells with hash function h (k)-k mod I, where I is the length of the

 Suppose we have an initially empty hash table with 11 cells

Suppose we have an initially empty hash table with 11 cells with hash function h (k)-k mod I, where I is the length of the hash table's array. Assuming linear probing with ? ?? + 2 insert the following sequence into the hash table if an insertion will result in 50% or more cell occupancy, rehash to 23 cells before attempting the insertion. 72, 88, 17, 121, 209, 111, 180, 295 Provide the final location of each key after all keys have been inserted. Ilf a cell is unoccupied, enter 'empty" without quotes. 0 2 3 4 8 10 12 13 14 15 16 17 18 19 20 21

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!