Hash Table
A data structure that maps keys to an array of buckets by means of a hash function, supporting insertion, lookup and deletion in average constant time. Collisions are handled by separate chaining or open addressing. It is a fundamental associative structure used in compilers, databases and language runtimes.
Timeline (last 90 days)
A hash table maps elements into buckets via a hash function, but different elements may map to the same bucket, which is a hash collision.
To control collision rates, hash tables typically maintain a load factor of 50%–75%, meaning at least 25%–50% of slots are idle yet still occupy memory.
All Facts (2)
A hash table maps elements into buckets via a hash function, but different elements may map to the same bucket, which is a hash collision.
50%UnverifiedTo control collision rates, hash tables typically maintain a load factor of 50%–75%, meaning at least 25%–50% of slots are idle yet still occupy memory.
50%