Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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?image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions