Olympiad Combinatorics V: Graphs, Set Systems & the Probabilistic Method

Study Sheet

Olympiad Combinatorics V: Graphs, Set Systems & the Probabilistic Method

Connectivity and trees, Turán and Mantel, planarity, Hall, Sperner and LYM, Helly, and proving existence by averaging

Graphs: connectivity, extremal edges, planarity

Tip
Trees, components and connectivity

A graph on nn vertices with cc components and no cycle has exactly n−cn - c edges. So a connected graph needs at least n−1n-1 edges, a graph with more than n−1n-1 edges has a cycle, and a connected graph with exactly n−1n-1 edges is a tree.

This single count replaces a surprising number of ad hoc arguments: "the process must stop" becomes "a forest cannot have nn edges", and "some two of these paths meet" becomes a cycle count. Two more facts earn their keep: every graph with all degrees ≥2\ge 2 contains a cycle (walk until you repeat a vertex), and a connected graph has a spanning tree, which gives an induction scaffold for almost any statement about connected graphs.

Tip
Mantel and Turán

Triangle-free on nn vertices: at most ⌊n2/4⌋\left\lfloor n^2/4\right\rfloor edges (Mantel), attained by the balanced complete bipartite graph. No Kr+1K_{r+1}: at most (1−1r)n22\left(1 - \tfrac1r\right)\tfrac{n^2}{2} edges (Turán), attained by the balanced complete rr-partite graph.

On 1717 vertices the triangle-free maximum is ⌊289/4⌋=72=8⋅9\left\lfloor 289/4\right\rfloor = 72 = 8\cdot 9; on 1212 vertices the K4K_4-free maximum is 23⋅1442=48\tfrac23\cdot\tfrac{144}{2} = 48, achieved by K4,4,4K_{4,4,4}. Both bounds come with a construction, and an olympiad answer needs both halves: the inequality, and the example that meets it.

Tip
Planarity and Euler

For a connected planar graph, v−e+f=2v - e + f = 2. Every face of a simple planar graph with v≥3v \ge 3 touches at least three edges, so e≤3v−6e \le 3v - 6; if the graph is also bipartite (no triangles), e≤2v−4e \le 2v - 4.

These bounds are how non-planarity is proved without any topology: K5K_5 has 10>3⋅5−6=910 > 3\cdot5 - 6 = 9 edges, and K3,3K_{3,3} has 9>2⋅6−4=89 > 2\cdot6 - 4 = 8. A planar graph on 1111 vertices has at most 2727 edges, and a triangulation attaining it has f=2−11+27=18f = 2 - 11 + 27 = 18 faces. Euler also bounds degrees: every planar graph has a vertex of degree at most 55, which starts most planar induction proofs.

Tip
Hall's marriage theorem

A bipartite graph with parts XX, YY has a matching saturating XX iff every S⊆XS\subseteq X satisfies ∣N(S)∣≥∣S∣|N(S)| \ge |S|.

Hall turns "a system of distinct representatives exists" into a condition you can check by counting neighbours, and the FAILING direction is what olympiad problems exploit: if no matching exists, some set has too few neighbours, and that deficient set is usually the structure the problem is really about. The regular case is the useful corollary: a kk-regular bipartite graph has a perfect matching, so its edges split into kk perfect matchings.

Side note
Strong and constructive induction

Strong induction assumes the statement for ALL smaller cases, which is what you need whenever the object splits into two smaller pieces of unpredictable size (a graph into components, a set into halves, a game into sub-games). Constructive induction goes further: guess the statement with an unknown constant, run the induction, and let the inductive step tell you which constant makes it close.

Side note
Where it goes wrong
x₁x₂x₃y₁y₂y₃
x₁ and x₂ (dashed edges) share their only neighbour y₁, so no matching covers both.

Hall's condition must hold for EVERY subset, not just single vertices. Take X={x1,x2,x3}X = \{x_1, x_2, x_3\}, Y={y1,y2,y3}Y = \{y_1, y_2, y_3\} with x1,x2x_1, x_2 adjacent only to y1y_1 and x3x_3 adjacent to all of YY. Every vertex of XX has a neighbour, and ∣N(X)∣=3|N(X)| = 3, yet there is no matching saturating XX: the pair S={x1,x2}S = \{x_1, x_2\} has N(S)={y1}N(S) = \{y_1\}, and ∣N(S)∣=1<2|N(S)| = 1 < 2. Deficient sets are usually small and structured; look for them before trusting a degree count.

Try it
Try it: an extremal count

What is the largest number of edges in a triangle-free graph on 1010 vertices?

Show the answer

⌊100/4⌋=25\left\lfloor 100/4\right\rfloor = 25, attained by K5,5K_{5,5} — five vertices on each side, all 2525 cross edges, and no triangle because any three vertices include two on the same side.

Set systems and the probabilistic method

Tip
Sperner, antichains and LYM

An antichain of subsets of an nn-set has at most (n⌊n/2⌋)\binom{n}{\lfloor n/2\rfloor} members (Sperner). The LYM inequality sharpens it: ∑A∈F(n∣A∣)−1≤1\sum_{A\in\mathcal F}\binom{n}{|A|}^{-1}\le 1 for every antichain F\mathcal F.

LYM is proved by counting the n!n! maximal chains: each AA lies on ∣A∣! (n−∣A∣)!|A|!\,(n-|A|)! of them and no chain can meet two members of an antichain. For n=10n = 10 the bound is (105)=252\binom{10}{5} = 252, achieved by all 55-element subsets. The same chain-counting idea proves Dilworth-flavoured statements and bounds families with forbidden containments.

Tip
Helly's theorem

If finitely many convex sets in the plane have the property that every three of them share a point, then all of them share a point. In Rd\mathbb{R}^d, "every d+1d+1" suffices.

Helly converts a global claim ("some point is in all of them") into a local one you can actually check, and the convexity hypothesis is exactly what makes the induction work. Typical use: intervals on a line (d=1d = 1, "every two overlap" gives a common point) is the pigeonhole behind scheduling and covering problems; in the plane it handles discs, strips and half-planes.

Tip
The probabilistic method

To prove an object exists, put a probability distribution on candidates and show the bad event has probability less than 11, or that the expected value of some count is small enough that some outcome beats the average.

Colour the edges of K6K_6 at random: each of the (63)=20\binom63 = 20 triangles is monochromatic with probability 14\tfrac14, so the expected number of monochromatic triangles is 55 — hence some colouring has at most 55. The same computation on KnK_n with (nk)21−(k2)<1\binom{n}{k}2^{1-\binom{k}{2}} < 1 produces a colouring with NO monochromatic KkK_k, which is Erdős's bound R(k,k)>2k/2R(k,k) > 2^{k/2}: an existence proof that names no colouring at all. Linearity of expectation is the whole engine, and it never needs independence.

Side note
Averaging is the everyday version

Most olympiad "probabilistic" arguments are really the pigeonhole in disguise: some term is at least the average, some term is at most the average. Write the sum, divide by the number of terms, and pick the extreme one — no probability language needed, though the language often makes it shorter.

Side note
Where it goes wrong

Helly in the plane needs every THREE sets to meet; “every two” is not enough. The three sides of a triangle, as segments, are convex and meet pairwise (at the vertices), but no point lies on all three. In Rd\mathbb R^d the number is d+1d + 1 and it cannot be lowered — and convexity cannot be dropped either: two disjoint intervals together form a non-convex set that meets each of two others without the three sharing a point.

Proofs & Why It Matters

Tip
Proof: Mantel's theorem

A triangle-free graph on nn vertices has at most ⌊n2/4⌋\left\lfloor n^2/4\right\rfloor edges.

For an edge uvuv, no vertex is adjacent to both uu and vv, so d(u)+d(v)≤nd(u) + d(v)\le n. Sum over all mm edges: ∑vd(v)2=∑uv∈E(d(u)+d(v))≤mn\sum_{v} d(v)^2 = \sum_{uv\in E}\big(d(u) + d(v)\big) \le mn. Cauchy–Schwarz gives (∑vd(v))2≤n∑vd(v)2\left(\sum_v d(v)\right)^2 \le n\sum_v d(v)^2, i.e. 4m2≤n⋅mn4m^2 \le n\cdot mn, so m≤n2/4m \le n^2/4. ■\blacksquare Equality forces every edge to have d(u)+d(v)=nd(u) + d(v) = n and all degrees equal, which is the balanced complete bipartite graph.

Tip
Proof: LYM, hence Sperner

For an antichain F\mathcal F of subsets of [n][n], ∑A∈F(n∣A∣)−1≤1\sum_{A\in\mathcal F}\binom{n}{|A|}^{-1}\le 1.

Count maximal chains ∅=C0⊂C1⊂⋯⊂Cn=[n]\emptyset = C_0\subset C_1\subset\cdots\subset C_n = [n]: there are n!n! of them, and exactly ∣A∣! (n−∣A∣)!|A|!\,(n-|A|)! pass through a given AA. No chain passes through two members of an antichain, so ∑A∈F∣A∣! (n−∣A∣)!≤n!\sum_{A\in\mathcal F}|A|!\,(n - |A|)!\le n!, which is the claim after dividing by n!n!. Since (n∣A∣)≤(n⌊n/2⌋)\binom{n}{|A|}\le\binom{n}{\lfloor n/2\rfloor}, it follows that ∣F∣≤(n⌊n/2⌋)|\mathcal F|\le\binom{n}{\lfloor n/2\rfloor}. ■\blacksquare