Expert technique

Pattern Overlay (Template Method) in Sudoku

Pattern overlay is a methodical way to analyse one digit across the whole grid. It is slow by hand, but it can find eliminations nothing else sees.

Pattern Overlay (Template Method) in Sudoku: worked example diagram
Worked example: the highlighted cells form the pattern; red cells lose a candidate.

What it is

A template is one complete, valid placement of a digit: one copy in every row, column and box. List every template that fits the current candidates for that digit. A cell used by every template must hold the digit. A candidate used by no template can be removed.

When to use it

Very hard puzzles near the end, when a digit has few candidates left. With many candidates, the number of templates becomes too large to list by hand.

How to apply it, step by step

  1. Choose a digit and mark all of its candidate cells.
  2. Start with the row that has the fewest options and pick one.
  3. Move row by row, choosing cells that do not share a column or box with earlier choices.
  4. Record each complete template and backtrack to find the rest.
  5. Compare templates: place cells used by all, and remove candidates used by none.

Worked example

Digit 1 has two candidates in most rows. Listing them gives just three valid templates.

All three use r6c4, so 1 goes in r6c4. None of them uses r2c7, so 1 can be removed there.

Common mistakes

  • Starting from a busy row. Begin with the most constrained row to keep the list short.
  • Missing templates. If one valid arrangement is left out, the conclusions may be wrong.

Questions

Is pattern overlay practical by hand?

Only when a digit has few candidates left. Solver software uses it more often.

Does pattern overlay replace fish and coloring?

It can find the same eliminations, but those patterns are much faster to spot.

Your learning path

Ready to practise?
Try it on today’s free daily Sudoku, or start a practice puzzle at your level.