Question: Using eclipse and this code: write a hasCluster() method to check if there is a cluster in the hash table or no,, if yes return
Using eclipse and this code:
write a hasCluster() method to check if there is a cluster in the hash table or no,, if yes return true?
code:public class LinearProbingHashTable { private Student[] hashArray; // array holds hash table private int arraySize; private Student defunct; // for deleted items private int size; // ------------------------------------------------------------- public LinearProbingHashTable(int size) // constructor { arraySize = size; hashArray = new Student[arraySize]; defunct = new Student(-1,"null",0); // deleted item key is -1 } // ------------------------------------------------------------- public void displayTable() { System.out.print("Table: "); for(int j=0; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
