Question: Complete the implementaons of the LPHashTable and QPHashTable classes. Complete the implementaon of the LPHashTable class using the linear probing technique. Complete the implementaon of
Complete the implementaons of the LPHashTable and QPHashTable classes. Complete the implementaon of the LPHashTable class using the linear probing technique. Complete the implementaon of the QPHashTable class using the quadrac probing technique.o AssumethatprobinghasfailedwhenthenumberofprobesexceedsthetablesizeiM o Whenprobingfails,thefindIndexmethodshouldreturnSubmissionSubmit your completed classes to the automac marker.NoteThe automac marker will use programs called LPAutoTest and QPAutoTest, each of which is a subclass of AutoTest. You may use them to evaluate your work if you wish.The programs are idencal except for the type of hash table created. They accept a number of commands: INSERT insert an item ISEMPTY is the table empty SIZE how many items in the table CONTAINS is item in the table? DUMP print the table contents PROBECOUNT how many probes have been performed RESETCOUNT set probe count to zero LOAD insert items into table from file QUIT.The first user input sets the size of the hashtable.Sample IO LPAutoTest with user input shown in bold whats not in bold is the output:INSERT BLYBOKSIZEDUMP : null : null : BLYBOK : null : null : null : null : null : null : null : null #Entries: INSERT BRHTHA INSERT BTHAMO DUMP : null : null : BLYBOK : BRHTHA : null : null : nullConnued : null : null : BTHAMO : null #Entries: QUITSample IO LPAutoTest with user input shown in bold whats not in bold is the output:load students.txt dump : mhljoh : mtmluv : rmkyas : gwlhlo : null : vzjjoh : nmktha : null : tmbtla : dlmsip : msslei #Entries: probecountquitSample IO QPAutoTest with user input shown in bold whats not in bold is the output:LOAD students.txt dump : null : mtmluv : rmkyas : gwlhlo : null : null : nmktha : null : tmbtla : dlmsip : msslei #Entries: probecountQUITSample IO QPAutoTest with user input shown in bold whats not in bold is the output:load students.txt Insert failure. Table full? dumpConnued : mhljoh : mtmluv : rmkyas : gwlhlo : null : vzjjoh : nmktha : null : tmbtla : dlmsip : msslei #Entries: quitBe aware that the AutoTest program is not tolerant of incorrect user input since it was designed for the automarker and is offered as a courtesy.
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
