Question: ( python ) TASK 1 ( 2 0 pts ) : Implement the HashTable class provided be the slides ( Search and Sort _ MapADT

(python) TASK 1(20 pts): Implement the HashTable class provided be the slides (Search and Sort_MapADT): You can choose to define it within the main.py, or create another HashTable.py and imports it back in main.py
TASK 2(20 pts): Create a HashTable object named h and fill in with a list of strings of different animals and print it out to the screen
Sample output: [77,44,55,20,26,93,17, None, None, 31,54]['bird', 'goat', 'pig', 'chicken', 'dog', 'lion', 'tiger', None, None, 'cow', 'cat']
TASK 3(20 pts): Modify the Hash Table into chained tables.
Reference chained hash table , modify your HashTable class to make both slots and data as chained lists, then print the same test case(as h1) out to the screen
Sample output: [[77,44,55],[],[],[],[26],[93],[17],[],[],[31,20],[54]][['bird', 'goat', 'pig'],[],[],[],['dog'],['lion'],['tiger'],[],[],['cow', 'chicken'],['cat']]

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!