Question: Rest of the code, shown if needed: 6. (10 Points) Modify the following methods in SeparateChainingHashST.java class without changing any of the existing method signatures.
Rest of the code, shown if needed: 

6. (10 Points) Modify the following methods in SeparateChainingHashST.java class without changing any of the existing method signatures. // update this method to keep track of n public void put (Key key, Value val) { if (getLoadFactor) >- threshold) { resize(2*m); st[hash(key)].put(key, val); // update this method to keep track of n public void delete(Key key) { st[hash(key)].delete(key); * @return load factor of the symbol table: (number of key value pairs)/(table size) public double getLoadFactor() f throw new UnsupportedOperationException("not implemented yet!"); *Resize method creates a new table with the given capacity and rehashes existing key value pairs to the new table in the order as they appear in the existing table public void resize(int capacity) { throw new UnsupportedOperationException("not implemented yet!")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
