mirror of
https://codeberg.org/andyscott/HashMaps.git
synced 2024-12-21 12:33:10 -05:00
Update README
This commit is contained in:
parent
d158786cdc
commit
874fb434d8
1 changed files with 9 additions and 6 deletions
15
README.md
15
README.md
|
@ -1,8 +1,11 @@
|
||||||
# HashMaps
|
# HashMaps
|
||||||
|
|
||||||
These HashMap implementations were my final project for **CS 261 - Data Structures**
|
These two hash map implementations feature open addressing with quadratic probing
|
||||||
at Oregon Sate. hash\_map\_oa.py features open addressing with quadratic probing
|
and separate chaining to handle collisions. The a6\_include module provides the
|
||||||
while hash\_map\_sc.py uses separate chaining to handle collisions. Both implementations
|
underlying data structures, and two hash functions.
|
||||||
use a dynamic array for the underlying hash table, however hash\_map\_sc.py uses a
|
|
||||||
singly linked list for each bucket, and hash\_map\_oa.py uses a single HashEntry
|
Both implementations use the included DynamicArray class for the underlying hash table,
|
||||||
object at each index of the array.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue