In one sentence
Counting problems often produce an expression like this: the number of “pairs” formed from some quantities is under control, that is, . But what we want to estimate is the total . The missing step in between is exactly the Cauchy inequality:
So , and solving this quadratic inequality in gives an upper bound. Counting in two ways bounds the sum of squares; Cauchy turns that into a bound on the total. Equality needs all the to be equal, which also tells you what the best construction looks like.
How many cells of a 7 × 7 board can be filled without a rectangle?
Step 1 / 5- A rectangle = two rows sharing two columns
A rectangle with all four corners filled means that two rows both have cells in the same two columns. So “no rectangle” is the same as: every pair of columns is used by at most one row.
Predict first
On a board with no rectangle, how many cells can be filled at most? (First work out the bound with the method above, then go back to the top of the page and build it.)
, and Cauchy gives , i.e. , so and hence .
can be achieved: let the five rows use columns , , , , . The column pairs used are all different. This time the rows are not equal (), so Cauchy has a little slack, but rounding down absorbs it.
Stop 1 · Graph theory: graphs with no 4-cycle
A simple graph on vertices contains no cycle of length . At most how many edges can it have?
Replace “rows of the board” by “vertices”. Vertex has degree ; pairing up its neighbors gives “paths with middle vertex ”. Having no 4-cycle is the same as any two vertices have at most one common neighbor, so
Cauchy: , so , which solves to
For the right side is about , so ; two triangles sharing one vertex (a “bow tie”) have exactly edges and no 4-cycle.
Stop 2 · Families of sets: any two share at most one element
people form several -person committees, and any two committees have at most one member in common. At most how many committees can there be?
This time let the people be the “rows”: person sits on committees. Pairing up the committees that person is on gives pairs of committees, and no pair of committees appears twice (otherwise those two committees would share two members), so
Cauchy: . Substituting gives , i.e. , so . A construction: , , .
All three have exactly the same skeleton: bound the number of pairs (counting in two ways) → Cauchy turns the sum of squares into the total → solve a quadratic inequality → check with a construction.
Practice
Fill some cells of a board so that no rectangle has all four corners filled. At most how many cells can you fill?
people form several -person groups, and any two groups have at most one member in common. At most how many groups can there be?
A simple graph on vertices has no cycle of length . At most how many edges can it have?
On a board, no rectangle may have all four corners filled. At most how many cells can be filled?