What is the Simple Uniform Hashing Assumption (SUHA) and why is it foundational to hash table complexity analysis?
The Simple Uniform Hashing Assumption (SUHA) is a theoretical model positing that a hash function h maps every key k from a key universe U into table slots {0, 1, ..., m − 1} such that: (1) Each key is equally likely to hash to any of the m slots, meaning Pr[h(k) = j] = 1/m for all j ∈ [0, m − 1]; and (2) The hash value h(k₁) of any key is statistically independent of the hash value h(k₂) of any other key, regardless of key patterns or similarities. Under SUHA, the distribution of n keys across m slots follows a multinomial distribution that closely approximates a Poisson distribution with parameter λ = α = n/m for large m. SUHA provides the mathematical foundation for proving that the expected chain length in Separate Chaining is exactly α, and that the expected probe length in Open Addressing with uniform probing is 1 / (1 − α). In practical systems, deterministic hash functions cannot achieve true statistical randomness for all possible inputs; however, Universal Hash Families (introduced by Carter and Wegman in 1979) and modern high-quality hash functions (such as MurmurHash3, CityHash, xxHash, and SipHash) achieve pseudo-random avalanche characteristics where flipping a single input bit flips approximately 50% of output hash bits, effectively satisfying SUHA for non-adversarial real-world workloads.