Written and maintained by CASRAI Editorial Board
Published
On this page
Extremal combinatorics asks how large a finite structure can be while avoiding a forbidden pattern, and which structures reach that maximum. In graph theory the question is: what is the greatest number of edges an n-vertex graph can have without containing a given subgraph H? That maximum is written ex(n, H), and a graph that attains it is called extremal. The same question is asked about families of sets, and the answers are usually exact formulas together with a description of the structures that reach them.
What does extremal mean?
In extremal combinatorics, extremal means largest possible under a stated restriction. Irena Penev’s Charles University lecture notes define it for graphs: given a positive integer n and a graph H, an n-vertex graph G with no H subgraph is extremal if it has the largest possible number of edges among all n-vertex graphs with no H subgraph, and ex(n, H) is the number of edges of such a graph. In other words, ex(n, H) is the maximum number of edges an n-vertex graph can have without containing H as a subgraph.
A broader definition comes from Noga Alon and Michael Krivelevich’s course text Extremal and Probabilistic Combinatorics (Tel Aviv University), which says the field deals with determining or estimating the maximum or minimum possible cardinality of a collection of finite objects that satisfies certain requirements, and notes that such problems are often related to computer science, information theory, number theory and geometry. Ramsey theory, in the same text, is presented as a branch of extremal combinatorics: its opening example is that in any group of 18 or more people, with friendship a symmetric relation, some four people are either all mutual friends or all mutual non-friends.
Extremal is stronger than edge-maximal
Every extremal graph is edge-maximal: adding any edge creates a copy of H. The converse fails, and this is the distinction many short introductions skip. The lecture notes give the standard example with H = P4, the path on four vertices and three edges. The graph 2K2 (two disjoint edges) is edge-maximal without a P4 subgraph, because adding any edge creates a P4. It is not extremal, because K1,3 (a star with one centre and three leaves) also has four vertices and no P4 subgraph, yet has three edges against the two edges of 2K2. Being unable to grow is a local property; being extremal is a global one.
Graph theory in simple terms
A graph is a set of points, called vertices, together with a set of links between pairs of them, called edges. A subgraph is a graph you can find inside a bigger one by keeping some vertices and some of the edges between them. Extremal graph theory fixes a pattern to be avoided, such as a triangle (K3, three vertices all linked to one another), and asks how many edges are possible before the pattern is forced to appear. The vocabulary needed for the results below is small:
- Complete r-partite graph: the vertices split into r groups (parts) with no edges inside a group and every possible edge between different groups.
- Turán graph Tr(n): the complete r-partite graph on n vertices whose part sizes differ by at most one, so each part has size ⌊n/r⌋ or ⌈n/r⌉. Its edge count is written tr(n).
- Clique Kk: k vertices with every pair linked.
Key theorems with worked examples
Five results form the usual first tour of the subject: two about graphs and three about families of sets. The data table below sets them side by side (object counted, bound, extremal structure). The notes here add small numerical cases that follow directly from each statement.
Mantel’s theorem and Turán’s theorem
Mantel’s theorem states that ex(n, K3) = ⌊n²/4⌋, and that the complete bipartite graph with parts of sizes ⌊n/2⌋ and ⌈n/2⌉ is an extremal triangle-free graph. For n = 5 the bound is ⌊25/4⌋ = 6, reached by the complete bipartite graph with parts of sizes 2 and 3 (2 × 3 = 6 edges).
Turán’s theorem generalises this. For positive integers n and r, ex(n, Kr+1) = tr(n), and Tr(n) is the unique extremal n-vertex graph without a Kr+1 subgraph, up to isomorphism. Mantel’s theorem is the case r = 2. As a worked case, T3(8) has parts of sizes 3, 3 and 2, giving 3×3 + 3×2 + 3×2 = 21 edges, so no 8-vertex graph with more than 21 edges can avoid a K4. Michael Tait’s Carnegie Mellon notes state the same result in the form that a graph with no Kr subgraph has at most as many edges as T(n, r−1), the Turán graph with r−1 parts. The Charles University notes prove the theorem by showing an extremal graph must be complete multipartite, must have exactly r parts, and must have parts differing in size by at most one.
Sperner’s theorem
Vašek Chvátal’s lecture notes on extremal set theory describe the field as concerning extremal sizes of set families with prescribed properties, such as containing only k-point sets or containing no Δ-system of more than m sets. The classic first result is Sperner’s theorem: if E is a family of subsets of an n-point set in which no member is contained in another (an antichain), then |E| is at most the binomial coefficient C(n, ⌊n/2⌋), with equality if and only if E consists of all subsets of size ⌊n/2⌋ or of all subsets of size ⌈n/2⌉. For n = 4 the bound is C(4, 2) = 6, reached by the six two-element subsets of a four-element set.
Erdős–Ko–Rado theorem
Choose as many r-element subsets of {1, …, n} as possible so that every two of them share at least one element. If r is larger than n/2, any two such subsets intersect, so all C(n, r) of them can be taken. If r ≤ n/2, the theorem says there are at most C(n−1, r−1) pairwise intersecting r-element subsets, and the bound is reached by taking all r-element subsets that contain one fixed element. For n = 5 and r = 2 that is C(4, 1) = 4 pairs, all containing the same element. David Ellis’s survey of intersection problems dates the first Erdős–Ko–Rado theorem to 1938 and notes that many results of a similar flavour have since been proved for other structures. The Charles University notes prove it by double counting ordered pairs made of a directed cycle on {1, …, n} and an r-vertex directed subpath that matches one of the sets.
The Erdős–Rado sunflower lemma
A sunflower is a family of sets (the petals) in which every two distinct sets intersect in exactly the same set, the kernel. The lemma says: if every set in a family A has at most ℓ elements and |A| is more than (p−1)ℓ · ℓ!, then A contains a sunflower with p petals. For p = 3 and ℓ = 2 the threshold is 2² × 2! = 8, so any family of nine or more sets of size at most two contains a sunflower with three petals. Unlike the other four results, this one is a forcing statement: it gives a size beyond which a structure must appear, not a description of a largest structure.
Worked cases at a glance
The table below applies each statement to a small case. Every figure is computed directly from the bound in the source theorem, so you can check it by hand.
| Result | Case | Bound from the theorem | Structure reaching it |
|---|---|---|---|
| Mantel | n = 5, no triangle | ⌊25/4⌋ = 6 edges | Complete bipartite, parts of size 2 and 3 |
| Turán | n = 8, no K4 (r = 3) | t3(8) = 21 edges | Parts of size 3, 3, 2 |
| Sperner | n = 4 | C(4, 2) = 6 sets | All 2-element subsets |
| Erdős–Ko–Rado | n = 5, r = 2 | C(4, 1) = 4 sets | All pairs containing one fixed element |
| Sunflower lemma | p = 3, ℓ = 2 | More than 2² × 2! = 8 sets forces a sunflower | A sunflower with 3 petals |
How the field works in practice
The results above share a pattern that the lecture notes make visible in their proofs. First an exact upper bound is proved, often by counting arguments (double counting for Erdős–Ko–Rado, pigeonhole for the sunflower lemma) or by a local-modification argument (moving a vertex between parts, or duplicating a vertex, for Turán’s theorem). Then an explicit construction shows the bound cannot be lowered. Finally, when possible, the extremal structures are classified: Turán graphs are unique, whereas Sperner’s bound has exactly two extremal families when n is odd and one when n is even, since ⌊n/2⌋ and ⌈n/2⌉ coincide in that case.
Related areas
Extremal questions sit alongside other branches of discrete mathematics. For forcing results of the form that a large enough structure must contain a pattern, see the guide to Ramsey theory; for exact counting of structures rather than maximising them, see enumerative combinatorics. Researchers publishing in the area will find the field’s open-access venue described in the guide to the Electronic Journal of Combinatorics.
Common misunderstandings
- Extremal does not mean edge-maximal. Edge-maximal graphs cannot be extended; extremal graphs are the largest of all. The 2K2 and K1,3 example above separates the two.
- An extremal graph is not always unique. Turán’s theorem gives uniqueness up to isomorphism for forbidden cliques, but that is a property of the theorem, not of the subject; Sperner’s theorem, for odd n, has two extremal families.
- Extremal does not mean extreme or unusual. It means a maximum (or minimum) of a quantity over all objects satisfying a stated constraint.
- The bound depends on the constraint. ex(n, K3) and ex(n, P4) are different functions; each theorem answers one specific forbidden pattern.
Why is combinatorics considered difficult?
This is an editorial reading, not a measured finding. Combinatorics problems are often easy to state, as the examples above show, but they rarely fall to a single uniform method. The proofs summarised on this page use different tools each time: vertex duplication, double counting on cycles, pigeonhole on a maximal disjoint subfamily. A reader has to recognise which counting or exchange argument fits the structure, and a bound is only half a result, since a matching construction is needed as well. Course materials say so openly: Michael Tait’s Carnegie Mellon course on combinatorics, which spends one of its three modules on extremal graph theory, tells students to expect it to be hard and to spend many hours a week on the reading, notes and problems. Working one theorem at a time, with small numerical cases checked by hand, is a practical way in.
What is an example of combinatorics?
Counting the ways to choose r items from n, written C(n, r), is the most basic example, and it appears in every theorem above. An extremal example is Erdős–Ko–Rado: choosing the largest possible collection of 2-element subsets of {1, …, 5} in which every two overlap gives at most 4, achieved by the four pairs containing the element 1 (or any one fixed element).
FAQ
What does extremal mean?
Largest possible under a stated restriction: an n-vertex graph with no H subgraph is extremal if no other n-vertex graph without H has more edges.
Can you explain graph theory in a simple way?
A graph is a set of points (vertices) joined by links (edges). Extremal graph theory asks how many links can be added before a forbidden shape, such as a triangle, must appear. Mantel’s theorem answers it for triangles: at most ⌊n²/4⌋ edges.
What is an example of combinatorics?
Selecting r items out of n, counted by C(n, r). Sperner’s theorem, for instance, bounds an antichain of subsets of an n-element set by C(n, ⌊n/2⌋).
Why are combinatorics so difficult?
Problems are easy to state but each tends to need its own counting or exchange argument, and a result needs both an upper bound and a matching construction. See the editorial discussion above.
Sources
- Noga Alon and Michael Krivelevich, Extremal and Probabilistic Combinatorics, Tel Aviv University, revised August 2006. web.math.princeton.edu/~nalon/PDFS/epc7.pdf (read 2026-11-20).
- Michael Tait, Lecture notes for 21-301: Combinatorics, Carnegie Mellon University, Fall 2018. math.cmu.edu/users/mtait/301/Notes.pdf (read 2026-11-20).
- David Ellis, Intersection Problems in Extremal Combinatorics: Theorems, Techniques and Questions Old and New, arXiv:2107.06371. arxiv.org/abs/2107.06371 (read 2026-11-20).
- Irena Penev, NDMI012 Combinatorics and Graph Theory 2, Lecture 10: Extremal combinatorics, Charles University. iuuk.mff.cuni.cz/~ipenev/KG2S2021Lecture10.pdf (read 2026-11-20).
- Vašek Chvátal, Extremal set theory, lecture notes for NDMI107 Discrete mathematics of Paul Erdős, 2020. kam.mff.cuni.cz/~chvatal/est.pdf (read 2026-11-20).
Data: Five landmark results in extremal combinatorics: object, bound and extremal structure
Compares Mantel's theorem, Turán's theorem, Sperner's theorem, the Erdős–Ko–Rado theorem and the Erdős–Rado sunflower lemma by the objects counted, the stated bound and the structures that attain it, compiled from two university lecture-note PDFs.
| Result | Objects considered | Condition | Bound | Extremal structure |
|---|---|---|---|---|
| Mantel's theorem | Edges of an n-vertex graph | No K3 subgraph | ex(n,K3) = floor(n^2/4) | Complete bipartite graph with parts floor(n/2) and ceil(n/2) |
| Turán's theorem | Edges of an n-vertex graph | No K(r+1) subgraph | ex(n,K(r+1)) = t_r(n), edges of Turán graph T_r(n) | T_r(n) is the unique extremal graph up to isomorphism |
| Sperner's theorem | Antichain of subsets of an n-point set | No member contained in another | |E| | All subsets of size floor(n/2), or all of size ceil(n/2) |
| Erdős–Ko–Rado theorem | Pairwise intersecting r-element subsets of {1..n} | r | At most C(n-1, r-1) | All r-subsets containing one fixed element |
| Erdős–Rado sunflower lemma | Family of sets each of size at most l | More than (p-1)^l * l! sets | Contains a sunflower with p petals | Not a maximisation result: guarantees a sunflower once the family exceeds the threshold |
Sources
- Penev, NDMI012 Lecture 10: Extremal combinatorics (accessed 2026-11-20)
- Chvátal, Extremal set theory (NDMI107) (accessed 2026-11-20)
Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.







