Question: Need help creating a linear probe hashtable. There is more info in the picture. Here is the code provided for the class: import java.util.LinkedList; import

Need help creating a linear probe hashtable. There is more info in the picture. Here is the code provided for the class:
import java.util.LinkedList;
import java.util.Queue;
public class CompletedLinearProbingHT implements ProbingHT {
//any constructors must be made public
@Override
public int hash(Key key, int i){
//TODO
return 0;
}
@Override
public void put(Key key, Value val){
//TODO
}
@Override
public Value get(Key key){
//TODO
return null;
}
@Override
public void delete(Key key){
//TODO
}
@Override
public boolean contains(Key key){
//TODO
return false;
}
@Override
public boolean isEmpty(){
//TODO
return false;
}
@Override
public int size(){
//TODO
return 0;
}
@Override
public Iterable keys(){
//TODO
return null;
}
////////////////////////////////////////////////////////////////////////////////////////////////
// THESE METHODS ARE ONLY FOR GRADING AND COME FROM THE PROBINGHT INTERFACE.
@Override
public int getM(){
//TODO. We suggest something like:
//return M;
return 0;
}
@Override
public Object getTableEntry(int i){
//TODO. We suggest something like:
//return entries[i];
return 0;
}
}
Need help creating a linear probe hashtable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!