Update later...
- Example of Open Addressing
- By Nguyen Anh Tuan, view more
- Example of Separate Chaining
- By Nguyen Anh Tuan, view more
- Example of Open Addressing (with string key)
- By Nguyen Anh Tuan, view more
*Note: HashTable always has a clear (a method is used to clear all nodes), default constructor, arguments constructor and destructor (if the language supports). And key of Bucket in HashTable must be a string.
Create some classes:
- Device has name, company, price.
Questions:
- Create a generic HashTable to store the data of devices with Open Address Resolution.
- Create a generic HashTable to store the data of devices with Separate Chaining Resolution.