随机算法 (Fall 2011)/Balls-into-balls Occupancy Problem
Now we ask about the loads of bins. Assuming that
An easy analysis shows that for every bin
Because there are totally
Therefore, due to the linearity of expectations,
Because for each ball, the bin to which the ball is assigned is uniformly and independently chosen, the distributions of the loads of bins are identical. Thus
Next we analyze the distribution of the maximum load. We show that when
Theorem - Suppose that
balls are thrown independently and uniformly at random into bins. For , let be the random variable denoting the number of balls in the th bin. Then
- Suppose that
Proof. Let be an integer. Take bin 1. For any particular balls, these balls are all thrown to bin 1 with probability , and there are totally distinct sets of balls. Therefore, applying the union bound,According to Stirling's approximation,
, thusFigure 1 Due to the symmetry. All
have the same distribution. Apply the union bound again,When
,Therefore,
When
Formally, it can be proved that for