Lecture 8 on 02/23/2026 - Balls and Bins - Load Analysis using Chernoff Bounds
After: do exercises from Ch.4 in Mitzenmacher and Upfal.
Lemma 5.1: Maximum Load in Balls and Bins
Section titled “Lemma 5.1: Maximum Load in Balls and Bins”When balls are thrown independently and uniformly at random into bins, the probability that the maximum load is more than is at most for sufficiently large.
Proof Sketch
Section titled “Proof Sketch”The probability that the maximum load is more than is at most .
For :
- Pick
Essentially, when :
The probability that the maximum load is more than 12 is at most .
The probability that the maximum load is less than 12 is at least .
Bounds Using Different Concentration Inequalities
Section titled “Bounds Using Different Concentration Inequalities”For HWC, the probability that a query takes more than time is (going by ):
By Markov
Section titled “By Markov”By Chebyshev
Section titled “By Chebyshev”By Our Lemma
Section titled “By Our Lemma”Theorem 4.4: Chernoff Bounds for Sums of Bernoulli Random Variables
Section titled “Theorem 4.4: Chernoff Bounds for Sums of Bernoulli Random Variables”Let be independent Poisson (think this as Bernoulli for now) trials such that .
Let and . Then the following Chernoff bounds hold:
-
-
For any :
-
For :
-
For :
Application: Hash Collision Analysis
Section titled “Application: Hash Collision Analysis”For HWC, what is the probability that at least 6 similar keys hash to the same bucket in a query?
We can apply Chernoff rule #3 to this since :