Lesson progress
0 / 10
CourseChapter 27Lesson 27.2
Bonus puzzle studio · grid tilings · exact cover · optimization

Partition Grid Shapes into the Fewest Squares

Cover every unit cell exactly once with grid-aligned squares. Build a good partition, then separate the construction that works from the proof that no smaller partition can work.

Grade 5 OlympiadBonus chapter10 interactive missionsWorks offlineAutosaves
Your answers, tilings, and progress save in this browser.

Two shapes, two kinds of success

Your job: cover every occupied cell with squares that follow the grid lines. Each cell must be covered exactly once.

  1. The 68-cell shape, Missions 1–6: build a six-square cover, then learn why five or fewer squares cannot cover it. Here you will establish the minimum.
  2. The 181-cell shape, Missions 7–8: build any complete legal cover, count your pieces, and try to improve it. A 13-square example is available for comparison; this lesson does not establish the minimum for this larger shape.

A construction shows what can work. A minimum proof must also rule out every smaller piece count.

The practice problem

Cut only along grid lines

The worked example asks students to divide an irregular grid region into square pieces, using as few squares as possible. Every unit cell must belong to one piece, and every piece must be a genuine square.

No gaps + no overlaps + square pieces + minimum count

A minimum needs two certificates

A construction with m squares proves minimum ≤ m
A proof that m−1 or fewer squares cannot work proves minimum ≥ m

When the two bounds meet, the minimum has been proved.

1
Read the puzzle rules

Decide whether a proposed piece is legal

Not complete
It must be a square.A 2-by-3 rectangle is not allowed.
Its sides follow grid lines.No slanted cuts or half-cell edges.
It stays inside the region.A square may not cover a missing cell.
It does not overlap.Every unit cell belongs to exactly one piece.
2
Worked example 1 · read the region

Turn the irregular outline into a row signature

Not complete
First, understand the small shape. Count its cells before placing pieces, so you can later check that your squares cover the full area.

Inspect one row at a time

Row 1
cells in selected row6
number of rows8
widest row10
total cells68
Row counts (top to bottom):
6, 9, 9, 10, 10, 8, 8, 8

Count occupied cells only. Row counts give the area, but do not specify where each row starts; use the drawn outline to place squares. Rows are numbered from top to bottom and columns from the left edge of the entire grid, including missing cells.

3
Candidate-square explorer

Test a square before committing to it

Not complete

Choose a top-left cell and side length in grid units

Checking…

candidate area49
largest legal side7
legal single-square placements (all positions and sizes)195
region area68
Greedy warning: the largest square is worth testing, but “always choose the largest available square” is not a proof and may lead to a poor remainder.
4
Worked example 1 · construction certificate

Cover the worked example region with six squares

Not complete
Your first construction. Use the outline you inspected to cover all 68 cells with six squares. After it works, Mission 5 asks whether fewer pieces could work.
How to use the board: choose a side length, then select the top-left cell of the square. The page rejects pieces that leave the region or overlap. Undo freely.

Square-placement controls

squares placed0
cells covered0 / 68
cells remaining68
current resultincomplete
5
Lower-bound certificate

Explain why “six works” is not yet the same as “six is fewest”

Not complete
Before the full search: a tiny example. A branch means trying one possible first square and then finishing the remaining shape. In this 11-cell shape, a square covering the top-left cell can only have side 1, 2, or 3.
AAA
AAAB
AAAC

The shown 3×3 choice leaves two cells, each needing its own 1×1 square: 3 pieces altogether. To test every possibility, also try the 1×1 and 2×2 first choices, repeating the same process on their uncovered cells. Every complete cover must belong to one of these branches.

The search below applies that idea to the 68-cell shape. “At most 5” means that each branch may use no more than five pieces in total. Mission 6 lets you explore the tiny example yourself.

Added exact-cover audit

We have a six-square construction. To establish that six is the minimum, the search checks every possible cover with five or fewer squares.

Candidate setEvery grid-aligned square fully contained in the region195 placements
Limit 5No exact cover exists using five or fewer square placements.not replayed
Limit 6An exact cover exists using six placements.not replayed

This search runs here, offline. It generates every grid-aligned square inside the shape. At each step it chooses an uncovered cell and tries every available square that covers it. Each complete cover must include one of those choices, so no cover is skipped. A branch stops when its piece allowance is used up. The five-piece search fails and the six-piece search succeeds. This is an added proof tool.

Join the two directions

six-square construction minimum ≤ 6
no cover with five or fewer squares minimum ≥ 6
minimum = 6
A construction gives an upper bound. An impossibility argument gives a lower bound.
6
Added search laboratory

Branch on the first uncovered cell

Not complete

An exact-cover search can always choose the first uncovered cell. Every complete tiling must cover that cell with exactly one legal square, so testing those possibilities loses no solution.

Choose the square covering the top-left cell

Choose at least one branch to inspect. The displayed total includes the first square itself, not just the remaining pieces. A 3×3 first square leaves two unit cells in the last column, giving three pieces in total. The whole region has area 11, which cannot be one square or the sum of two positive square areas, so fewer than three is impossible.
7
original Practice 1 · read the larger region

Map the 181-cell practice shape

Not complete
A new, larger challenge: read this outline before building your own cover. Here success means a complete legal partition; finding the minimum is not required.

Read the rows before tiling

Row 1
selected-row cells8
rows13
widest row16
area181
8+12+12+6×16+3×15+8=181
Added audit: this fixed region contains 800 legal square placements. Its largest possible square has side 11 grid units; that is a single contained piece, not a complete partition.
8
original Practice 1 · construction and improvement

Build a complete partition of the large region and compare its piece count

Not complete
Your goal: cover all 181 cells exactly once, then report your piece count. Any complete legal cover passes this checkpoint. The 13-square benchmark is a comparison construction; matching it or improving it is an optional challenge, and it is not a proof of the minimum.

Practice-board controls

squares placed0
cells covered0 / 181
personal best
statusincomplete
9
Independent practice

Square-partition workshop

Not complete

Correct all eight answers to complete the workshop. Areas count unit cells; side lengths count grid units.

10
Mastery check

Exit ticket and certificate

Not complete