Answered You can hire a professional tutor to get the answer.

QUESTION

Project #3 Due Dates: Saturday, March 29 at 11:59pm Submit: eLearning Late Policy: 10 points per hour late Instructions: All work should be your own....

Project #3Due Dates: Saturday, March 29 at 11:59pm eLearningLate Policy: -10 points per hour lateInstructions: This is an individual assignment. All work should be your own.Objective:Work with hash tables by creating a hash table using linear probing.Description:Create a generic class called LinearProbingHashTable<K,V>.It should contain a private static class, Entry<K,V>.Because Java cannot create an array of a generic class, create thearray for the table like this: // declare generictable = new Entry[size]; // create as non-genericNote that this will generate a warning message when compiled.Your class should have the following methods. The methods should all operate on the object making the call (none are static). Perform checking of the parameters and throw exceptions where appropriate.You may use code from the textbook, but all other code must beyour own.20 pointsa) public boolean insert(K key, V value)inserts entry, rehashes if half full,can re-use deleted entries, throwsexception if key is null, returnstrue if inserted, false if duplicate.20 pointsb) public V find(K key)returns value for key, or null if not found20 pointsc) public boolean delete(K key)marks the entry deleted but leaves it there,returns true if deleted, false if not found20 pointsd) private void rehash( )doubles the table size, hashes everything tothe new table, omitting items marked deleted20 pointse) public static void main(String args[])demonstrate each of your methodsSubmit to eLearning:LinearProbingHashTable.java

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question