Isidor SelectionCriteria before scores

Puzzle & Logic

Search space versus solving path: how big is a nonogram, and how big does it feel?

A 10 by 10 nonogram has 2^100 possible fillings, yet many can be solved one line at a time. The arithmetic behind the gap, and what it means for judging puzzle difficulty.

Puzzle marketing sometimes quotes enormous numbers of possible solutions. For a judge, that number is nearly irrelevant: what matters is how many steps the player must take and whether each step follows from the clues. Nonograms show the difference clearly.

What the reference says

Wikipedia’s article on nonograms describes them as picture logic puzzles in which cells in a grid are coloured or left blank according to numbers at the edges, to reveal a hidden picture. It says many nonograms can be solved through line-by-line reasoning, analysing one row or column at a time, and that more difficult puzzles require additional techniques such as probing, which means tentatively assuming a value for a cell and checking for a contradiction. It gives as a first step the “simple boxes” method: in a row of ten cells with a single clue of 8, the block of 8 must cover certain cells whichever way it is placed.

The raw search space

A black and white grid of n by n cells can be filled in 2^(n x n) ways, because each cell is either filled or empty.

Grid Cells Possible fillings Approximate size
5 x 5 25 2^25 33,554,432
10 x 10 100 2^100 1.3 x 10^30
15 x 15 225 2^225 5.4 x 10^67
20 x 20 400 2^400 2.6 x 10^120

Almost none of those fillings match the clues. A player does not search them; they use the clues to eliminate.

The size of a single line

For a row of n cells with k blocks of total length s, the number of ways to place the blocks with at least one gap between them is C(f + k, k), where f = n - s - (k - 1) is the number of free cells (the formula counts gap positions; C is the binomial coefficient).

Row length Clue Free cells Placements Out of raw fillings
10 8 2 3 2^10 = 1,024
10 4, 3 2 6 1,024
10 1, 1, 1 5 56 1,024
15 3, 2, 4 4 35 32,768
20 5, 3, 2, 1 6 210 1,048,576

The first row matches the source’s example: a single 8-block in ten cells has three positions, and the six cells in the middle are filled in all of them, so those cells can be marked at once. This count of placements is our own calculation.

What this says about difficulty

  • Constraint, not size, makes a puzzle solvable. A single row with a handful of placements can be reasoned about directly, even though the whole grid has an astronomical number of fillings.
  • Difficulty is the length of the chain of deductions and whether any step needs probing. Those are things a judge can observe by solving.
  • A puzzle that forces probing early is not necessarily worse, but the game should say so if it promises purely logical solving.

How to judge it

  1. Solve the first five or ten puzzles line by line. Note whether you ever need to guess or probe.
  2. Time the steps: does the difficulty rise gradually as puzzle size grows?
  3. Ignore any claim about total possibilities. Record what you observed instead: the largest grid you solved by lines alone, and where probing first became necessary.

Sources

Written for: A judge or studio wants to understand why the raw number of possibilities in a puzzle says little about its difficulty, using nonograms as a worked example.

AI assistance recorded as: AI draft, not edited. Review status: approved.