Addressing
Overview
Given a universe of keys
Closed
In closed addressing, a key is always stored in the bucket it's hashed to. Collisions are dealt with using separate data structures on a per-bucket basis.
Ideal Hashing
An independent uniform hash function is the ideal theoretical abstraction. For each possible input
Chaining
The most common form of closed addressing is chaining. In this scheme, each slot
Open
In open addressing, keys always reside in the hash table. Collisions are dealt with by searching for other empty buckets within the hash table.
Sequential examination of slots during dictionary operations is called probing. Given hash function
Ideal Hashing
An independent uniform permutation hash function is the ideal theoretical abstraction in open addressing. The probe sequence of each key is equally likely to be any of the