Question: Description: We will be hashing objects into hash sets with 2 different sizes and using 3 different hash functions Array sizes: 5749, 2857 Hash functions:

Description: We will be hashing objects into hash sets with 2 different sizes and using 3 different hash functions Array sizes: 5749, 2857 Hash functions: x, x2 + 1, x3 Note: Use separate chaining to handle collisions We will be using the Stanford Graph Base that contains a list of the 5757 five-letter words in English. Here is a link: https://www-cs-faculty.stanford.edu/ knuth/sgb-words.txt . Complete the following steps for each word in the file 1. Compute the hash code of the word 2. Compute the index, j, where the word would be placed in the array 3. Add 1 to xi] to keep up with the number of times a word hashes to location j When you have read the file completely, compute and print the following statistics for each unique hash set 1. 2. 3. The number of empty positions (buckets) in the array The maximum number stored in a single array location (the longest bucket chain) The average of all non-zero array entries (the average bucket chain length) . Given the above results, which hash function and array size would you recommend
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
