Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hash table with double hashing. I understand up to insert 3. Once you double hash, I understand that the table size is 17. Does this

Hash table with double hashing.image text in transcribedI understand up to insert 3. Once you double hash, I understand that the table size is 17. Does this mean that we use 3,21,20,etc (mod 17) now? If so, why is the 38 at #8? 38 mod 17 is 4 so I'm not sure how it gets there. Does it involve h2?

5 (14 points) Assuming double hashing, a hash function h of key % TableSize, a hash function of h of key % 5-1 and an initial TableSize of 7, show the hash table after each of the operations. Rehash when the load factor would become greater than 0.5. Remember that the table size must always be a prime. Also fill-in the TableSize column Points assigned for the changed item(s) only. Operation insert 38 insert 21 insert 3 insert 20 delete 21 insert 2 nsert 36 TableSize 0 1 23 4 5 67891011 12 1314 15 16 Pts 38 38 383 32120 3 21 21 17 17 17 17 38 20 20 2336 20 38 38

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

13. Explain the term robust design.

Answered: 1 week ago