HashMaps/README.md
2022-06-05 00:11:45 -04:00

630 B

HashMaps

These two hash map implementations feature open addressing with quadratic probing and separate chaining to handle collisions. The a6_include module provides the underlying data structures, and two hash functions.

Both implementations use the included DynamicArray class for the underlying hash table, however hash_map_sc.py uses a singly linked list for each bucket while hash_map_oa.py uses a HashEntry object. Additionally, hash_map_sc.py includes a seperate function, find_mode(), that provides a mechanism for finding the value that occurs most frequently in the hash map and how many times it occurs.