Question: Write a program to check the hash index for all numbers between 1 and 1000 using a hash table of 17 and a hash table

Write a program to check the hash index for all numbers between 1 and 1000 using a hash table of 17 and a hash table of size 16, this program is to count the distribution of hash keys generated for each table size. i.e. how many numbers may to key 1, 2, 3 etc for table size 17 and for table size 16. What do your results tell you?

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!