Suppose that we would like to implement a distributed file system. There are files and servers to store the file. We want to spread the work load to the servers so that each one keeps approximate files. One way to achieve this is by hashing. Let be a prime number. Then
gives us the desired property if and are selected uniformly at random.
The problem is that what if changes constantly?
Consider mapping the servers uniformly and independently to real numbers in . Let's divide into equally sized intervals , , ..., . Now, for an interval that a particular server belongs, the probability that no server maps to the intervals to the left of this interval is given by
By union bound, this happens to some server is bounded by .
What is the probability that the interval between some pair of servers is . If we divide into equally size intervals, by Birthday's Paradox, there is high probability that some interval contains two servers.