Mon. Dec 5th, 2022
  

Social Work homework help. 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.It should contain a private static class, Entry.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

Don't use plagiarized sources. Get Your Custom Essay on
Social Work homework help
Just from $13/Page
Order Essay

By ravi

Leave a Reply

Your email address will not be published. Required fields are marked *