namespace HashingLab{ class HashTable < T > where T : IKeyed…
namespace HashingLab{ class HashTable < T > where T : IKeyed { private T[] items; private bool linearProbing; private bool[] occupied; //optional parameter useLinearProbing defaults to false public HashTable(int theSize, bool useLinearProbing = false) {….} public void addItem(T theItem) {….} //theItem comes with its key fields filled, //returns with all fields filled if found public bool retrieveItem(ref T theItem) { return false;//FIX ME! } public int hashFunction(int keyValue) { return 0;//FIX ME! } }}
Read Details