javascript-algorithms/src/data-structures/hash-table
2018-05-31 21:35:53 +03:00
..
__test__ Update hash table methods. 2018-05-31 21:35:53 +03:00
HashTable.js Update hash table methods. 2018-05-31 21:35:53 +03:00
README.md Update READMEs. 2018-05-21 16:48:21 +03:00

Hash Table

In computing, a hash table (hash map) is a data structure which implements an associative array abstract data type, a structure that can map keys to values. A hash table uses a hash function to compute an index into an array of buckets or slots, from which the desired value can be found

Ideally, the hash function will assign each key to a unique bucket, but most hash table designs employ an imperfect hash function, which might cause hash collisions where the hash function generates the same index for more than one key. Such collisions must be accommodated in some way.

Hash Table

Hash collision resolved by separate chaining.

Hash Collision

References