The documentation has been changed to mdbook

Check it out: https://rust-lang.github.io/mdBook/index.html
This commit is contained in:
Leonardo committed 2020-03-19 00:14:45 -03:00
1 parent 4e96d3aba0
commit 062c03091c
107 files changed
+9283 -5280

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
# hashmap.h
A HashMap is an implementation of a Map with unique keys, where every key is mapped to a value (K -> V). The keys are not sorted. To access a value you must specify a key. This key is hashed to a number that uniquely represents it and through this it is possible to find in which position of an array of buckets the value is.
## HashMap Implementation
The HashMap is implemented as a flat HashTable meaning that every entry is allocated when the collection is initialized, but they are all empty.
The HashTable uses [Open Addressing](https://en.wikipedia.org/wiki/Open_addressing) and [Linear Probing](https://en.wikipedia.org/wiki/Linear_probing) to resolve collisions along with [Robin Hood Hashing](https://en.wikipedia.org/wiki/Hash_table) to minimize the worst case scenarios.