Post · 2 min read· p. 157

Sets with Small Intersection

Suppose that we want to construct subsets S1,…,Sm⊆{1,…,n}S_1, \ldots, S_m \subseteq \{1,\ldots,n\} with the following properties:

  1. ∣Si∣≥k|S_i| \geq k for all ii
  2. ∣Si∩Sj∣≤1|S_i \cap S_j| \leq 1 for all i≠ji \neq j

The goal is to construct as large a family of such subsets as possible (i.e., to make mm as large as possible). If k≥2nk \geq 2\sqrt{n}, then up to constants it is not hard to show that the optimal number of sets is nk\frac{n}{k} (that is, the trivial construction with all sets disjoint is essentially the best we can do).

Here I am interested in the case when k≪nk \ll \sqrt{n}. In this case I claim that we can substantially outperform the trivial construction: we can take m=Ω(n2/k3)m = \Omega(n^2 / k^3). The proof is a very nice application of the asymmetric Lovasz Local Lemma. (Readers can refresh their memory here on what the asymmetric LLL says.)

Proof. We will take a randomized construction. For i∈{1,…,n}i \in \{1,\ldots,n\}, j∈{1,…,m}j \in \{1,\ldots,m\}, let Xi,aX_{i,a} be the event that i∈Sai \in S_a. We will take the Xi,aX_{i,a} to be independent each with probability 2kn\frac{2k}{n}. Also define the events

Yi,j,a,b=I[i∈Sa∧j∈Sa∧i∈Sb∧j∈Sb]Y_{i,j,a,b} = I[i \in S_a \wedge j \in S_a \wedge i \in S_b \wedge j \in S_b]

Za=I[∣Sa∣<k]Z_{a} = I[|S_a| < k]

It suffices to show that with non-zero probability, all of the Yi,j,a,bY_{i,j,a,b} and ZaZ_{a} are false. Note that each Yi,j,a,bY_{i,j,a,b} depends on Yi′,j,a′,b,Yi′,j,a,b′,Yi,j′,a′,b,Yi,j′,a,b′,Za,ZbY_{i',j,a',b}, Y_{i',j,a,b'}, Y_{i,j',a',b}, Y_{i,j',a,b'}, Z_a, Z_b, and each ZaZ_a depends on Yi,j,a,bY_{i,j,a,b}. Thus each YY depends on at most 4nm4nm other YY and $2$ other ZZ, and each ZZ depends on at most n2m/2n^2m/2 of the YY. Also note that P(Yi,j,a,b)=(k/n)4P(Y_{i,j,a,b}) = (k/n)^4 and P(Za)≤exp⁡(−k/4)P(Z_a) \leq \exp(-k/4) (by the Chernoff bound). It thus suffices to find constants y,zy, z such that

$(k/n)^4 \leq y(1-y)^{4nm}(1-z)^2 $

exp(−k/4)≤z(1−y)n2m/2exp(-k/4) \leq z(1-y)^{n^2m/2}

We will guess y=kn2my = \frac{k}{n^2m}, z=12z = \frac{1}{2}, in which case the bottom inequality is approximately exp⁡(−k/4)≤12exp⁡(−k/2)\exp(-k/4) \leq \frac{1}{2}\exp(-k/2) (which is satisfied for large enough kk, and the top inequality is approximately k4n4≤k4n2mexp⁡(−4k/n)\frac{k^4}{n^4} \leq \frac{k}{4n^2m} \exp(-4k/n), which is satisfied for m≤n24ek3m \leq \frac{n^2}{4ek^3} (assuming k≤n/4k \leq n/4). Hence in particular we can indeed take m=Ω(n2/k3)m = \Omega(n^2/k^3), as claimed.