Question: 1 - Create a class HashMap which inherits the MutableMapping class Your class should inherit HashMapBase or some other form of a map. if you

1- Create a class HashMap which inherits the MutableMapping class
Your class should inherit HashMapBase or some other form of a map.
if you would like different items you should implement something like
class MyHashMapBase(HashMapBase):
2- You will need to implement the following map ADT methods
__getitem__(self,key)- returns the value for the key or returns KeyError
__setitem__(self,key,value)- saves the key-value pair
__delitem__(self,key)- deletes the key-value pair or returns KeyError
__iter__(self)- produces an iteration of the keys of the map
__len__(self)- returns the number of key-value pairs stored
Please do in python for Robin hood Hashing

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!