Hash Collision
A hash collision occurs when two different keys produce the same bucket index, or more generally the same hash value. Collisions are unavoidable in practical Hash Tables because the key space is usually much larger than the number of available buckets. A Hash Table therefore needs a collision-resolution strategy.
Different keys can legitimately map to the same bucket.
Separate chaining stores multiple entries in the same bucket.
Open addressing searches for another available slot.
High collision rates increase lookup cost.
A good hash function reduces collisions but cannot eliminate them completely.
0-2 years experience
2-5 years experience
5-8 years experience
8+ years experience