General (n, m) balls-into-bins expected maximum occupancy #
This module formalizes the full two-sided general (n, m) balls-into-bins expected maximum
occupancy theorem ([Voc07], §20.4.1, Proposition 20.11, p. 530): when n ≥ 1 balls are
placed independently and uniformly at random into m ≥ 2 bins, the expected maximum occupancy is
Θ(log m / log (1 + (m / n) * log m)) (and equals n when m = 1).
Proof overview #
We model n unit balls in m bins directly as unitBallsGame n m (the identical-machine
load-balancing game with n unit-weight jobs and m machines) under uniformBallsProfile n m
(p i j = 1 / m), so expectedMaxOccupancy n m coincides definitionally with
(unitBallsGame n m).expectedMakespan (uniformBallsProfile n m) and agrees with
(unitIdenticalGame m).expectedMakespan (uniformMixedProfile m) at n = m.
- Upper bound (
expectedMaxOccupancy_le): settingT = 6 * log m / log (1 + (m / n) * log m)and applying the weighted Chernoff tailLoadBalancingGame.prob_subset_load_ge_le_expto each bin at thresholds(r + 1) * TgivesPr[L_j ≥ (r + 1) * T] ≤ (1 / m ^ 2) ^ (r + 1)via the universal inequality√(1 + x) * log (1 + x) ≤ 2 * x < (6 / e) * xfor allx > 0. Union-bounding overm ≥ 2bins and summing the resulting(1 / 2) ^ (r + 1)geometric tail yieldsexpectedMaxOccupancy n m ≤ 2 * T = 12 * log m / log (1 + (m / n) * log m)for everyn ≥ 1andm ≥ 2. - Lower bound (
expectedMaxOccupancy_ge): writingx = (m / n) * log mandL = log m / log (1 + x):- for
x ≤ 256, concavity oflogon[1, 257]gives(1 / 47) * L ≤ n / m ≤ E[max L_j]; - for
L ≤ 16, the trivial lower bound1 ≤ E[max L_j]gives(1 / 16) * L ≤ E[max L_j]; - for
x > 256andL > 16, takingd = ⌊L / 8⌋₊gives2 * n ≤ d * m,2 * d ≤ n, andm * Pr[L_j = d] ≥ 1, soballsIntoBins_tail_ge_half_of_one_leyieldsE[max L_j] ≥ d / 2 ≥ (1 / 32) * L.
- for
Main definitions #
Cslib.GameTheory.LoadBalancingGame.unitBallsGame:nunit-weight jobs onmidentical machines.Cslib.GameTheory.LoadBalancingGame.uniformBallsProfile: the uniform mixed strategy1 / mfornjobs onmmachines.Cslib.GameTheory.LoadBalancingGame.expectedMaxOccupancy: expected maximum bin occupancy whennballs are thrown independently and uniformly intombins.
Main results #
Cslib.GameTheory.LoadBalancingGame.expectedMaxOccupancy_one: exact occupancynform = 1.Cslib.GameTheory.LoadBalancingGame.expectedMaxOccupancy_le([Voc07], §20.4.1, Proposition 20.11, p. 530): uniform upper bound≤ 12 * log m / log (1 + (m / n) * log m)for alln ≥ 1andm ≥ 2.Cslib.GameTheory.LoadBalancingGame.expectedMaxOccupancy_ge([Voc07], §20.4.1, Proposition 20.11, p. 530): uniform lower bound≥ (1 / 47) * log m / log (1 + (m / n) * log m)for alln ≥ 1andm ≥ 2.
References #
- [Voc07], §20.4.1, Proposition 20.11, p. 530.
n unit-weight jobs on m identical machines (general (n, m) balls-into-bins instance;
[Voc07], §20.4.1, Proposition 20.11, p. 530).
Explicit balls-into-bins sum formula for expectedMaxOccupancy n m.
For n = m, expectedMaxOccupancy m m coincides with the uniform mixed equilibrium makespan
of unitIdenticalGame m.
Exact expected maximum occupancy for a single bin (m = 1): all n balls land in bin 0.
Pigeonhole lower bound: for any n balls and m ≥ 1 bins, n / m ≤ expectedMaxOccupancy n m.
For n ≥ 1 balls and m ≥ 1 bins, every assignment has maximum occupancy at least 1.
General (n, m) balls-into-bins expected maximum occupancy upper bound ([Voc07],
§20.4.1, Proposition 20.11, p. 530): for all n ≥ 1 balls thrown independently and uniformly into
m ≥ 2 bins,
expectedMaxOccupancy n m ≤ 12 * (log m / log (1 + (m / n) * log m)).
General (n, m) balls-into-bins expected maximum occupancy lower bound ([Voc07],
§20.4.1, Proposition 20.11, p. 530): for all n ≥ 1 balls thrown independently and uniformly into
m ≥ 2 bins,
(1 / 47) * (log m / log (1 + (m / n) * log m)) ≤ expectedMaxOccupancy n m.