MathLabs

Problem 6

Consider a 2025×20252025\times2025 grid of unit squares. Matilda wishes to place on the grid some rectangular tiles, possibly of different sizes, such that each side of every tile lies on a grid line and every unit square is covered by at most one tile. Determine the minimum number of tiles Matilda needs to place so that each row and each column of the grid has exactly one unit square that is not covered by any tile.
Step 4 of 6: Label four quadrants and count the letters written
C=n+a+b (or n+a+b+1 if the LIS and LDS meet)C=n+a+b\ (\text{or}\ n+a+b+1\ \text{if the LIS and LDS meet})
Detailed analysis

Draw the broken path through consecutive cells of CC, joining its first cell to the southwest corner and its last cell to the northeast corner. Draw the analogous path through AA, joining its first and last cells to the northwest and southeast corners. Because CC is a chain and AA an antichain, the two paths do not cross except at their common cell cc; they divide the board into north, east, south, and west regions. For every black cell in the north region, write NN in the cell immediately above it; similarly write SS below cells in the south region, WW to the left in the west region, and EE to the right in the east region. A cell on a path receives every direction belonging to the adjacent regions. Since cc belongs to both paths, it receives all four letters; every other cell of A∪CA\cup C receives two letters, and every cell outside A∪CA\cup C receives one. Hence the total number of letters is C=n+a+b+1C=n+a+b+1 (the notation CC here denotes the letter count, not the chain).