We examine a specific way in which 2-universal hash functions differ from completely random hash functions. Let $S=\{0,1,2, \ldots, k\}$, and consider a hash function $h$ with range $\{0,1,2, \ldots, p-1\}$ for some prime $p$ much larger than $k$ : Consider the values $h(0), h(1), \ldots, h(k) .$ If $h$ is a completely random hash function; then the probability that $h(0)$ is smaller than any of the other values is roughly $1 /(k+1)$. (There may be a tie for the smallest value, so the probability that any $h(i)$ is the unique uniformly from the family
$$
\mathcal{H}=\left\{h_{a, b} \mid 0 \leq a, b \leq p-1\right\}
$$
of Section 13.3.2. Estimate the probability that $h(0)$ is smaller than $h(1), \ldots, h(k)$ by randomly choosing 10,000 hash functions from $h$ and computing $h(x)$ for all $x \in S$. Run this experiment for $k=32$ and $k=128$, using primes $p=5,023,309$ and $p=$ $10,570,849$. Is your estimate close to $1 /(k+1)$ ?