Generate the hash value for primitive types: byte, short, int, char, long, float, double, and string. Compress the hash value into index: 0-500 (20 points) 2. For the give hash-based map class, implement a Testing class to test this hash-based map (80 points) a. Store the student's name (key) and age b. Testing the implemented map i. Insert, remove, search function ii. Change the load factor to 0.80 and rehashing table size to 4 * original table size iii. How does the map handle collisions? iv. What is the hash function used in hash based map class? If the hash function is Open Addressing, change it to Separate Chaining. Vice versa. (extra 100 points)
Generate the hash value for primitive types: byte, short, int, char, long, float, double, and string. Compress the hash value into index: 0-500 (20 points) 2. For the give hash-based map class, implement a Testing class to test this hash-based map (80 points) a. Store the student's name (key) and age b. Testing the implemented map i. Insert, remove, search function ii. Change the load factor to 0.80 and rehashing table size to 4 * original table size iii. How does the map handle collisions? iv. What is the hash function used in hash based map class? If the hash function is Open Addressing, change it to Separate Chaining. Vice versa. (extra 100 points)
Related questions
Question
use java language.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps