Question: / / = = = = = = = = = = = = = = = = = = = = = = =
Hash Table class definition
Define a class containing data members and methods to
implement a hash table with chaining.
class HashTable
private:
Define structures to hold bids
struct Node
Bid bid;
unsigned int key;
Node next;
default constructor
Node
key UINTMAX;
next nullptr;
initialize with a bid
NodeBid aBid : Node
bid aBid;
initialize with a bid and a key
NodeBid aBid, unsigned int aKey : NodeaBid
key aKey;
;
vector nodes;
unsigned int tableSize DEFAULTSIZE;
unsigned int hashint key;
public:
HashTable;
HashTableunsigned int size;
virtual ~HashTable;
void InsertBid bid;
void PrintAll;
void Removestring bidId;
Bid Searchstring bidId;
sizet Size;
;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
