Question: Pls how do you answer question 1 to 5? For Exercises 1 - 5, use the following values 66 47 87 90 126 140 145

Pls how do you answer question 1 to 5?Pls how do you answer question 1 to 5? For Exercises 1

For Exercises 1 - 5, use the following values 66 47 87 90 126 140 145 153 17 285 393 395 467 566 620 735 I. Store the values into a hash table with 20 positions, Use "key % tableSize" 2. Store the values into a hash table with 20 positions, using rehashing as the as the hash function and the linear probing method of resolving collisions method of collision resolution. Use "key % tableSize" as the hash function, and "(key + 3) % tableSize" as the rehash function. Note: rehashing is applied to each value who has collision 3. Store the values into a hash table with ten buckets, each containing three slots. If a bucket is full, use the next (sequential) bucket that contains a free slot. 4. Store the values into a hash table that uses the hash function "key % 10" to determine into which of ten chains to put the value. 5. Fill in the following table, showing the number of collisions needed to find each value using the hashing representations given in Exercises 1 4. Number of Comparisons Value Exercise 1Exercise 2 Exercise 3 | Exercise 4 467 566 735 285 87

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!