Ramsey Theory — Definition, Formula & Example
Ramsey theory is the branch of combinatorics that proves complete disorder is impossible: any structure that is large enough must contain an orderly piece, however you color or split it. It asks how large "large enough" has to be.
The Ramsey number is the least positive integer such that every coloring of the edges of the complete graph in red and blue contains a red or a blue . Ramsey's theorem (1930) guarantees that is finite for all . The field also includes analogous results for the integers, such as Schur's theorem and van der Waerden's theorem on arithmetic progressions, and for hypercubes (the Hales–Jewett theorem).
Key Formula
Where:
- = Smallest n that forces a red complete subgraph on s vertices or a blue one on t vertices
- = Sizes of the required one-color complete subgraphs, each at least 1
Worked Example
Problem: Six cities are connected in pairs by direct flights. Each route is run by exactly one of two airlines, Red Air or Blue Air. Show that some three cities are linked to each other entirely by the same airline. Then explain why five cities are not enough.
Step 1: Model the cities as the vertices of . Each route is an edge, so there are 15 edges, and each edge gets one of two colors.
Step 2: Pick any city . It has 5 routes. With only 2 colors, the pigeonhole principle forces at least 3 of those routes to share a color. Say connects to cities , , by Red Air.
Step 3: Look at the 3 routes among , , . If any one is red, it forms a red triangle with . If none is red, then , , form a blue triangle. Either way, a one-color triangle exists. For 5 cities, color the outer pentagon red and the inner 5-point star blue. Neither color contains a triangle, so 5 cities do not force one.
Answer: Six cities always contain a one-airline triangle, and five cities do not. So , which matches the formula's upper bound exactly.
Why It Matters
Ramsey theory sits apart from counting questions such as "how many ways?" because it asks which pattern is unavoidable and at what size it appears. Erdős founded the probabilistic method in 1947 to prove the lower bound , and that method is now standard in theoretical computer science. Exact values are notoriously hard to find: , but is still unknown, though it is known to be at least 43. Graham's number is not the subject of Ramsey theory. It is one famous upper bound that came out of a single Ramsey problem about coloring hypercubes.
Common Mistakes
Mistake: Checking a few colorings of , finding a one-color triangle in each, and calling that a proof.
Correction: A Ramsey statement claims that every coloring contains the pattern. has colorings, so you need an argument that covers all of them, like the pigeonhole step above. To show a smaller fails, you need just one coloring that avoids the pattern.
