A hash function is a mathematical function that takes a value and maps it to a different kind of value, known as the hash value, hash code, digest, or hash. Various algorithms are used to calculate hash values, including those used in cryptography, such as storing passwords.


Collision

A collision occurs when two distinct keys generate the same hash value.

Untitled

Handling Collisions

Chaining

Untitled

Open Addressing