Question: 1. Insert the keys 3, 13, 20, 21, 32, 39, 43, 45 in that order into an initially empty table of m=5, using separate chaining.

1. Insert the keys 3, 13, 20, 21, 32, 39, 43, 45 in that order into an initially empty table of m=5, using separate chaining. Use the hash function h(k)=11*k % m. Show what hash table looks like after each insertion.

2. Insert the keys 3, 13, 20, 21, 32, 39, 43, 45 in that order into an initially empty table of m=15, using linear probing. Use the hash function h(k)=11*k % m. Show what hash table looks like after each insertion.

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!