Suppose that we want to construct subsets S1,…,Sm⊆{1,…,n} with the following properties:
∣Si∣≥k for all i
∣Si∩Sj∣≤1 for all i=j
The goal is to construct as large a family of such subsets as possible (i.e., to make m as large as possible). If k≥2n, then up to constants it is not hard to show that the optimal number of sets is kn (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≪n. In this case I claim that we can substantially outperform the trivial construction: we can take m=Ω(n2/k3). 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}, j∈{1,…,m}, let Xi,a be the event that i∈Sa. We will take the Xi,a to be independent each with probability n2k. Also define the events
Yi,j,a,b=I[i∈Sa∧j∈Sa∧i∈Sb∧j∈Sb]
Za=I[∣Sa∣<k]
It suffices to show that with non-zero probability, all of the Yi,j,a,b and Za are false. Note that each Yi,j,a,b depends on Yi′,j,a′,b,Yi′,j,a,b′,Yi,j′,a′,b,Yi,j′,a,b′,Za,Zb, and each Za depends on Yi,j,a,b. Thus each Y depends on at most 4nm other Y and $2$ other Z, and each Z depends on at most n2m/2 of the Y. Also note that P(Yi,j,a,b)=(k/n)4 and P(Za)≤exp(−k/4) (by the Chernoff bound). It thus suffices to find constants y,z such that
$(k/n)^4 \leq y(1-y)^{4nm}(1-z)^2 $
exp(−k/4)≤z(1−y)n2m/2
We will guess y=n2mk, z=21, in which case the bottom inequality is approximately exp(−k/4)≤21exp(−k/2) (which is satisfied for large enough k, and the top inequality is approximately n4k4≤4n2mkexp(−4k/n), which is satisfied for m≤4ek3n2 (assuming k≤n/4). Hence in particular we can indeed take m=Ω(n2/k3), as claimed.