Question: in Java eclipse Purpose The purpose of this assignment is to assist you to learn the hash function and hash table. Skills The purpose of
in Java eclipse
Purpose
The purpose of this assignment is to assist you to learn the hash function and hash table.
Skills
The purpose of this assignment is to help you practice the following skills that are essential to your success in this course in school in this field in professional life beyond school:
Describe hash table
Design hash function
Describe collisions and how to handle collisions Open addressing linear probing, quadratic probing, and double hashing separate chaining
Explain load factor and rehashing
Knowledge
This assignment will also help you to become familiar with the following important content knowledge in this discipline:
Hash function
Collision Open addressing, Separate chaining or closed addressing
Load factor and rehashing
Tasks
Implement MyMap using open addressing with linear probing Create a new concrete class that implements MyMap using open addressing with linear probing. For simplicity, use mathrmfmathrmkeymathrmkey size as the hash function, where size is the hashtable size. Initially, the hashtable size is The table size is doubled whenever the load factor exceeds the threshold
Implement MyMap using open addressing with quadratic probing Create a new concrete class that implements MyMap using open addressing with quadratic probing. For simplicity, use f key leftk e yjright size as the hash function, where size is the hashtable size and mathrmj Initially, the hashtable size is The table size is doubled whenever the load factor exceeds the threshold
Implement MyMap using open addressing with double hashing Create a new concrete class that implements MyMap using open addressing with double hashing. For simplicity, use mathrmfmathrmkeymathrmkey size, and mathrmfprimemathrmkey PRIME key PRIME as the first hash function and the secondary hash function, where size is the hashtable size and PRIME is a prime smaller than the size. For example, we use for a hashtable size of Initially, the hashtable size is The table size is doubled whenever the load factor exceeds the threshold
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
