Olympiad Combinatorics IV: Graphs, Double Counting, Games & Combinatorial Geometry

Study Sheet

Olympiad Combinatorics IV: Graphs, Double Counting, Games & Combinatorial Geometry

The four combinatorial toolkits the USAMO draws from most often

Graph Theory and Double Counting

Concept
Graphs: degrees, trees, bipartite, Turán

The degree sum is 2∣E∣2|E| (so the number of odd-degree vertices is even). A tree on nn vertices has n−1n - 1 edges and at least two leaves. A graph is bipartite iff it has no odd cycle. Mantel/Turán: a triangle-free graph on nn vertices has at most ⌊n2/4⌋\lfloor n^2/4\rfloor edges; Ramsey R(3,3)=6R(3, 3) = 6.

The olympiad step is recognizing the graph: people and acquaintances, cities and roads, numbers and a relation. Once it is a graph, the problem is usually a degree count, an induction removing a leaf or a minimum-degree vertex, or an extremal bound. Write "consider the graph whose vertices are… and whose edges are…" as the first sentence.

Concept
Double counting

Count the same set of pairs (or triples) two ways. Incidences between points and lines, between students and clubs, between subsets and elements: ∑rows=∑cols\sum_{\text{rows}} = \sum_{\text{cols}} gives an equation or, with an inequality on one side, a bound.

Double counting proves the handshake lemma, Fisher's inequality, and most "show that some element is in at least kk sets" claims: count (element, set) pairs by sets to get the total, divide by the number of elements to get the average, and some element meets or beats the average. Combined with convexity (∑(di2)\sum\binom{d_i}{2} is minimized when degrees are equal), it yields the sharp bounds.

Example
Average degree argument

In a graph with nn vertices and more than n2/4n^2/4 edges, show there is a triangle (Mantel). Suppose not; for each edge uvuv, d(u)+d(v)≤nd(u) + d(v) \le n (no common neighbor). Summing over edges: ∑vd(v)2≤n∣E∣\sum_v d(v)^2 \le n|E|. By Cauchy–Schwarz, ∑d(v)2≥(2∣E∣)2/n\sum d(v)^2 \ge (2|E|)^2/n. So 4∣E∣2/n≤n∣E∣4|E|^2/n \le n|E|, i.e. ∣E∣≤n2/4|E| \le n^2/4.

Games, Monovariants and Combinatorial Geometry

Concept
Games: strategy stealing, pairing, and P/N positions

To show the first player wins without finding the strategy: strategy stealing (an extra move never hurts). To show the second player wins: a pairing/mirroring strategy. For take-away games, classify positions as P (previous player wins) or N by backwards induction, then find the pattern (usually a residue condition).

A winning strategy must handle EVERY opponent move; a proof that describes only one line of play proves nothing. Pairing strategies are complete by construction (every move has a paired response); P/N analysis is complete by induction. Say which one you are using and why it covers all cases.

Concept
Monovariants for termination

A quantity that strictly decreases (or increases) and is bounded proves the process ends. Choose it so every legal move changes it: number of inversions, sum of squares, a potential function with well-chosen weights.

The USAMO "show the process terminates / show at most kk steps" is always a monovariant. For a bound on the number of steps, the monovariant must be an integer with a known range; the number of steps is at most the range. If no single quantity works, use a lexicographic pair.

Concept
Combinatorial geometry

Finite point sets in the plane: convex hull arguments (the extreme points), the extremal principle (closest pair, smallest triangle), pigeonhole on regions (divide the square into nn pieces), and colorings/parity of lattice points. Sylvester–Gallai: nn non-collinear points always determine a line through exactly two.

Combinatorial geometry problems are pigeonhole or extremal problems wearing coordinates. Divide the region into pieces small enough that two points in one piece are close; pick the point farthest from a line and argue with areas; or take the convex hull and remove a vertex for induction. Diagrams help find the argument and are worth zero in the write-up — every claim about the picture needs a sentence.

Side note
Where it goes wrong

A "strategy" that assumes the opponent plays a certain way; a monovariant that is bounded only if the process ends (circular); and a geometry argument that depends on a generic picture (three points collinear breaks it).

Try it
Try it: pairing

Two players alternately place 1×21\times2 dominoes on a 2×n2\times n board (nn even); the player who cannot move loses. Who wins?

Show the answer

The second player, by symmetry: reflect every move through the center point of the board. For even nn the center is a grid point (a corner shared by four cells), so no domino covers it, and a domino and its reflection never overlap — a domino overlapping its own reflection would have to contain the center. Hence the reflected move is always available, and the second player never runs out of moves first.

Points in the Plane: Regions, Hulls, Extremes

Tip
Three standard openings

For a finite point set in the plane: (1) cut the region into pieces so small that two points in one piece do what you want, and count pieces against points; (2) take the convex hull and split into cases by how many points it has; (3) choose an extremal pair — a closest pair, a point and line at minimal positive distance — and show a violation would produce a more extreme one.

Each opening turns geometry into a counting or ordering statement. Pigeonhole on regions works because diameter is monotone: two points in a set of diameter dd are within dd. The hull works because a point set is in “convex position” exactly when every point is on its hull, so hull size measures how far the set is from the conclusion. The extremal pair works because a finite set of positive numbers has a minimum, and geometry lets you manufacture a smaller one from any counterexample.

Example
Example 1: three points in a small circle
A 5 × 5 cut of the unit square; each small square fits in a disc of radius √2/10 < 1/7.

Prove that among any 5151 points in a unit square, some three lie in a closed disc of radius 17\tfrac17.

Step 1 — cut the square into 2525 squares of side 15\tfrac15. Since 51=2⋅25+151 = 2\cdot25 + 1, some small square contains at least 33 points.

Step 2 — a square of side 15\tfrac15 fits in the disc around its center with radius half its diagonal, 210≈0.1414\tfrac{\sqrt2}{10} \approx 0.1414, and 210<17≈0.1429\tfrac{\sqrt2}{10} < \tfrac17 \approx 0.1429 because (210)2=2100=150<149\left(\tfrac{\sqrt2}{10}\right)^2 = \tfrac{2}{100} = \tfrac{1}{50} < \tfrac1{49}. ■\blacksquare

How to find it. “Three points” means 2n+12n + 1 pigeons for nn holes: n=25n = 25, so the square is cut into 5×55\times5. Then check that the hole fits in the required disc — here with little room to spare.

Example
Example 2: a convex quadrilateral among five points
ABCDE
Hull triangle ABC with D, E inside: line DE leaves B and C on one side, and BCDE is convex.

Five points in the plane, no three collinear. Prove that four of them are the vertices of a convex quadrilateral. (Esther Klein.)

Step 1 — if the convex hull has 55 or 44 vertices, any four hull vertices (in the first case) or the four hull vertices (in the second) form a convex quadrilateral.

Step 2 — otherwise the hull is a triangle ABCABC with the other two points D,ED, E inside. The line DEDE does not pass through AA, BB or CC (no three collinear), so it splits the three vertices 2+12 + 1: two of them, say BB and CC, lie on the same side.

Step 3 — the four points B,C,D,EB, C, D, E are in convex position, i.e. none lies inside the triangle of the other three. If one did, the line through it and one of the other three points would separate the remaining two. But line DEDE does not separate BB from CC (Step 2), and line BCBC does not separate DD from EE (both are inside the triangle). Checking the cases: DD inside BCEBCE would make line DEDE separate BB and CC; EE inside BCDBCD likewise; BB inside CDECDE would make line BCBC separate DD and EE; CC inside BDEBDE likewise. So BCEDBCED is a convex quadrilateral. ■\blacksquare

How to find it. Case on the hull. The only bad case has points inside a triangle, and a line through the two inner points is the one object that sorts the three vertices.

Example
Example 3: Sylvester–Gallai
PQABℓ
If ℓ held a third point, A would be closer to line PB than P is to ℓ.

A finite set of points in the plane is not contained in one line. Prove that some line passes through exactly two of the points. (Sylvester’s problem, 1893; this proof is L. M. Kelly’s.)

Step 1 — consider all pairs (P,ℓ)(P, \ell) with ℓ\ell a line through at least two of the points and PP a point not on ℓ\ell. There are such pairs (the set is not collinear) and finitely many; choose one with the distance from PP to ℓ\ell as small as possible. Let QQ be the foot of the perpendicular from PP to ℓ\ell.

Step 2 — suppose ℓ\ell contains three of the points. Two of them, AA and BB, are on the same side of QQ (or one is QQ itself); label them so that AA is between QQ and BB (possibly A=QA = Q).

Step 3 — now look at the line PBPB and the point AA. The distance from AA to line PBPB is at most the distance from QQ to line PBPB (A lies on segment QBQB), and that is less than PQPQ: in the right triangle PQBPQB the altitude from QQ is shorter than the leg PQPQ. So (A,PB)(A, PB) is a pair with smaller distance — a contradiction.

Step 4 — hence ℓ\ell contains exactly two points. ■\blacksquare

How to find it. The conclusion is about a line with few points; an extremal line is the natural candidate, and “closest point to a line” is the measure that a third point on the line lets you beat.

Side note
Where it goes wrong

In Example 2 the tempting shortcut is “take the convex hull; it has at least four vertices”. Five points (0,0)(0, 0), (6,0)(6, 0), (0,6)(0, 6), (1,2)(1, 2), (2,1)(2, 1) have hull the triangle on the first three — no three collinear, yet only three hull vertices. The hull case split is the proof precisely because this case exists; skipping it proves the easy half. Here the line through (1,2)(1, 2) and (2,1)(2, 1) is x+y=3x + y = 3, with (6,0)(6, 0) and (0,6)(0, 6) on the far side, and those four points form the convex quadrilateral.

Try it
Try it: two close points

Ten points lie in an equilateral triangle of side 33. Prove that two of them are at distance at most 11.

Show the answer

Cut the triangle into 99 equilateral triangles of side 11 by lines parallel to the sides at distances one third of the height. Ten points in nine closed pieces: two share a piece, and two points of an equilateral triangle of side 11 are at distance at most 11 (its diameter is its side).