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 Assumethatprobinghasfailedwhenthenumberofprobesexceedsthetablesize(i>M). o Whenprobingfails,thefindIndex()methodshouldreturn-1.SubmissionSubmit 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 I/O (LPAutoTest) with user input shown in bold (whats not in bold is the output):11INSERT BLYBOK010SIZE1DUMP 0 : null 1 : null 2 : BLYBOK0103 : null 4 : null 5 : null 6 : null 7 : null 8 : null 9 : null10 : null #Entries: 1. INSERT BRHTHA016 INSERT BTHAMO046 DUMP 0 : null 1 : null 2 : BLYBOK0103 : BRHTHA0164 : null 5 : null 6 : nullConnued37 : null 8 : null 9 : BTHAMO04610 : null #Entries: 3. QUITSample I/O (LPAutoTest) with user input shown in bold (whats not in bold is the output):11load students.txt 9dump 0 : mhljoh0191 : mtmluv0012 : rmkyas0023 : gwlhlo0014 : null 5 : vzjjoh0026 : nmktha0047 : null 8 : tmbtla0019 : dlmsip06510 : msslei003 #Entries: 9. probecount11quitSample I/O (QPAutoTest) with user input shown in bold (whats not in bold is the output):11LOAD students.txt 7dump 0 : null 1 : mtmluv0012 : rmkyas0023 : gwlhlo0014 : null 5 : null 6 : nmktha0047 : null 8 : tmbtla0019 : dlmsip06510 : msslei003 #Entries: 7. probecount8QUITSample I/O (QPAutoTest) with user input shown in bold (whats not in bold is the output):11load students.txt 10Insert failure. Table full? dumpConnued40 : mhljoh0191 : mtmluv0012 : rmkyas0023 : gwlhlo0014 : null 5 : vzjjoh0026 : nmktha0047 : null 8 : tmbtla0019 : dlmsip06510 : msslei003 #Entries: 9. quit(Be 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 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!