Method stop · When and why do we use it?

Extremal Problems in Combinatorics

In the Chinese book: 组合最值

A max needs two answers: a construction that reaches it, a proof of no more.

Before this stop, visit:Operations and Games (Method)

One idea, one picturePlace kings on a 6×6 board so that no two touch (not even diagonally). First place as many as you can; then choose a way of cutting the board for the argument. Look at the ruler below. Can the two arrows meet?

Loading figure…

In one sentence

“The largest is ” is two statements: ① can really be reached (give a construction); ② more than is impossible (give an argument). Without either one, it is just a guess.

Draw the two statements on a ruler. The construction pushes from the left, the argument presses from the right, and between them is the “don't know yet” zone. The problem is solved only when the two arrows meet.

The most kings on a 6×6 board, no two neighbors

Step 1 / 5
Loading figure…
  1. Place some at random

    Place at random, no two neighbors. Now we know the answer is at least . Every better construction moves the left arrow to the right.

A common way to argue is from local to global: cut the whole into small pieces where “at most how many” is obvious at a glance, then add up. Choosing the cut is exactly “building the boxes” from the pigeonhole principle.

Predict first

Now take a board. What is the largest number of kings you can place with no two neighbors?

kings
Choose an answer first; then you can see the result.

In the four stops below the problems differ, but the “squeeze from both sides” method is exactly the same.

Stop 1 · Chessboard: bishops

A bishop moves along diagonals. What is the largest number of bishops on a board with no two attacking each other?

Place them first. Then try the three cuts: cutting into rows is almost useless; cutting into diagonals gives an upper bound; a little finer, and you can push it down by more.

Loading figure…
“Diagonals, two corners joined”: the bottom-left and top-right corners are each a diagonal with only square, but they lie on the same diagonal in the other direction and attack each other, so together they can hold only bishop.

There are diagonals in one direction, each holding at most bishop, so the upper bound is . But two of those diagonals have just one square each, the two opposite corners, and these two squares attack each other, so they cannot both be used. The bound drops to . Construction: fill the first row with , and put in the middle of the last row.

Stop 2 · Sets of numbers: no difference of 4

Choose numbers from to so that no two of them differ by . What is the largest number you can choose?

Loading figure…
Two of the ways of sorting push the upper bound down to the same number. Which numbers does each one lock up together?

Pair the numbers that differ by : , . That is pairs, and you can choose at most from each, so at most . Construction: and .

Stop 3 · Sets of numbers: no doubles

Choose numbers from to so that no number is twice another. What is the largest number you can choose?

Predict first

Guess first: what is the most you can choose? (“All the odd numbers” gives . Can you do better?)

Choose an answer first; then you can see the result.

Stop 4 · The other way round: the fewest needed

For a minimum, the directions are reversed: the construction says “this few is enough”, and the argument says “any fewer is impossible”.

A guard watches the square it stands on and the ring of squares around it. What is the smallest number of guards that can watch a whole yard?

Loading figure…
First place guards until the whole yard is watched, using as few as you can. Then switch to “Witness”: choose some squares so that no guard, wherever it stands, can see two of them.

The four corners make good witnesses: a guard who can see the top-left corner must stand in the top-left block, too far from the other three corners. Each of the four corners needs a different guard, so at least are needed. And guards standing at the crossings of rows 2, 5 with columns 2, 5 each watch one region, covering all squares.

What if nothing can reach the upper bound?

Break it

Counterexample lab: remove one condition

Conclusion: That upper bound is the answer

Cut into blocks and the upper bound is . Place kings and the ruler closes.

Loading figure…

Practice

Exercise 1Basic

What is the largest number of kings you can place on a board with no two neighbors (diagonal neighbors included)?

Exercise 2Basic

What is the largest number of rooks you can place on an board with no two attacking each other? (A rook attacks every square in its row and column.)

Exercise 3Advanced

Choose numbers from to so that no two of them differ by . What is the largest number you can choose?

Exercise 4Advanced

What is the largest number of bishops you can place on a board with no two attacking each other?

Exercise 5Challenge

Take the guard problem from Stop 4 and make the yard . What is the smallest number of guards needed?

Mistake Museum · Exhibits from this stop

Before you leave, look at the traps other people fell into here.See every exhibit in the museum →

Exhibit

An upper bound with no construction

The wrong step: Place kings on a board so that no two are neighbors. Each row holds at most , and there are rows, so at most kings fit.
What went wrong? Think first, then open

Diagnosis “At most ” is true, but nobody can actually place : once a row has kings, the next row has almost no room. An upper bound that cannot be reached is not the answer.

The right step: Cut the board into blocks of . Each block holds at most king, so the upper bound is ; then actually place . Only when the two sides are equal is the answer .

“Every upper bound needs a construction to meet it”

Exhibit

“I can't add any more” is not the same as “the most”

The wrong step: On a board I placed kings, no two neighbors (at the crossings of rows 2, 4 and columns 2, 4), and there is nowhere to add a th, so the most is .
What went wrong? Think first, then open

Diagnosis Being unable to add one only shows that this particular placement is stuck. A different placement, at the crossings of rows 1, 3, 5 and columns 1, 3, 5, holds .

The right step: “The most” needs an argument that holds for every placement (cutting the board into blocks, for example), not an observation about your own placement.

“A dead end does not mean you have gone the farthest”

Exhibit

The “witnesses” in the argument are not independent

The wrong step: In a yard, each of the squares in the first row must be watched by a guard, so at least guards are needed.
What went wrong? Think first, then open

Diagnosis One guard can watch neighboring squares in the same row at once. “Every square must be watched” does not mean “every square needs its own guard”.

The right step: Choose witness squares that are far enough apart: the four corners. No guard can see more than one corner, so at least guards are needed, and really are enough.

“When you count “at least how many”, first make sure no one can do two jobs”