Nonogram Puzzles

Overlap: the first nonogram technique

Overlap (also called simple boxes) is the move that opens almost every nonogram: a block that's long compared to its line covers some of the same cells wherever it sits.

Updated

The idea

Take a row of 10 cells with the clue 7. The block of seven could start at cell 1, 2, 3 or 4, nowhere else. Slide it from the leftmost position to the rightmost and look at which cells it covers every time: cells 4, 5, 6 and 7. Those four cells are filled, whatever the rest of the puzzle says.

7.
Leftmost: cells 1–7. Rightmost: cells 4–10. Common to both: cells 4–7.

The quick formula

You don't need to slide anything in your head. Work out the slack of the line: its length minus the space the clue needs (every block, plus one empty cell between neighbouring blocks). Then:

Every block longer than the slack has (length − slack) certain cells, counted from the slack-th cell after the block's leftmost possible start.

For 7 in 10 cells: the clue needs 7, the slack is 10 − 7 = 3, so the block has 7 − 3 = 4 certain cells. For 5 in 10: slack 5, 5 − 5 = 0, nothing yet. A block is only worth a look when it's longer than the slack.

Several blocks in one line

The same works for a clue with several numbers: pack all blocks to the left, then all to the right, and compare each block with itself.

34.
3 4 needs 3 + 1 + 4 = 8 cells, so the slack is 2. The 3 gets one certain cell (cell 3), the 4 gets two (cells 7 and 8).

Be careful to compare a block with itself: the right-packed 4 overlapping the left-packed 3 tells you nothing.

When overlap is the whole story

If the slack is 0, the clue fills the line exactly: every block and every gap has a fixed position. Clues like 10, 4 5, or 2 1 1 3 in ten cells, or 5 in a 5×5 row, are solved outright.

Overlap also keeps working later. Once you have crossed some cells, the space a block can move in shrinks, its slack drops, and a second look at the same line can fill more.

Overlap in a real puzzle

The opening of one of our hand-drawn 10×10 owls is almost all overlap: lines whose blocks are longer than their slack give certain squares before anything else is known. The tinted line is the one being read; blue squares are what it proves.

112210141112111413238612172211421288212114227
1. Row 3 (10) fills its line exactly, with one empty cell between blocks: there's only one way to place it.
112210141112111413238612172211421288212114227
2. Row 5 (1 1 2 1 1) fills its line exactly, with one empty cell between blocks: there's only one way to place it.
112210141112111413238612172211421288212114227
3. Row 7 (3 2 3) fills its line exactly, with one empty cell between blocks: there's only one way to place it.
112210141112111413238612172211421288212114227
4. Row 8 (8): wherever the block sits, it always covers the same 6 cells in the middle.
112210141112111413238612172211421288212114227
5. Row 4 (1 4 1): pack the blocks to the left, then to the right. Each block covers some of the same cells both times: 2 cells are certain.
112210141112111413238612172211421288212114227
6. Row 6 (1 4 1): pack the blocks to the left, then to the right. Each block covers some of the same cells both times: 2 cells are certain.

How often you'll use it

Overlap with an empty line is mostly an opening move: across our black-and-white puzzles about 7–9% of all solving steps are pure overlaps, nearly all in the first pass. But the same idea keeps working all game long. Once crosses shrink the room a block has, its slack drops and new overlaps appear; those later steps are counted with the range deductions, which make up about 60% of all steps.

Common mistakes

  • Comparing different blocks. In a clue like 3 4, compare the 3's left position with the 3's right position, never the 3 with the 4.
  • Forgetting the gaps when counting slack. 3 4 needs 3 + 1 + 4 = 8 squares, not 7.
  • Skipping short lines. A 6 in a 10-square line looks modest but gives 2 certain squares.

Try it

This 5×5 opens with overlap: find the rows and columns where a block is longer than the slack before you fill anything else.

Next technique: unreachable cells, the partner of overlap that tells you which cells are empty.

Questions and answers

What is simple boxes in nonograms?
Another name for the overlap technique: the cells a block covers in both its leftmost and rightmost possible positions are filled.
How do I calculate the overlap?
Slack = line length − (sum of the clues + number of gaps). Each block longer than the slack has length − slack filled cells.
Does overlap work in color nonograms?
Yes. Count slack with gaps only between neighbors of the same color; each block longer than the slack has certain squares in its own color.