You are given the following classes : class LINOde E Class Hashtable [ String key ; String value ; LINOde [ ] table ; int hashCode ; LLNode...
DO a code specifically for the questions asked in the pictures above
For part b : private void rehash(){.....}
You are given the following classes :"class LINOde EClass Hashtable [String key ; String value ;LINOde [ ] table ;int hashCode ; LLNode next ;int num Values ;LINOde ( String K, String V ,float load Factor Threshold ;int h , [[Node next ) {Hashtable ( float Load Factor Threshold ) { ... ]Key = K; value= V ;}hash Code = h ; next = nxt ;a) Implement a method in the Hashtable class to insert a key-value pair into the hash table .using the function ~ mod N to map a hash code ~ to a table location . N is table size ( capacity ) :1/ inserts ( key , value ) into hash table ,1/ calls rehash method ( part b ) if load factor threshold is exceeded1/ Note : String class implements the hashCode methodpublic void insert ( String key , String value ) {
Show more