Balls into Bins
m balls into n bins uniformly and independently
Birthday Problem
the mapping is 1-1
- pigeonhole principle: P=1,m>365
- P(one-to-one)=∏k=1m−1(1−nk)≈e−2nm2
- P(collision)=1−P=1−ϵ,m=2nlnϵ1
- P>0.99,m>57
Coupon Collector Problem
the mapping is on-to
- X is the number of balls thrown uniformly and independtly to n bins until no bin is empty
- E(X)=nH(n)=n∑i=1ni1
- P(X≥nlnn+cn)<e−c,∀c>0
- limn→∞P(X≥nlnn+cn)=1−e−e−c
Occupancy Problem
the maximum load of bins
- Xi: load of ith bin
- Average: E(Xi)=nm
maxiXi={O(loglognlogn)O(nm)m=Θ(n)m=Ω(nlogn)w.h.pw.h.p
- 2-choice: maxiXi=Θ(loglogn),m=Θ(n) w.h.p