What happens when Sudoku scales?

What happens when Sudoku scales?

•3 min read•
•
Part of the papers collection. Introductions to papers I have worked on, with some context for the research question and links to the paper and supporting material. See all 9 posts in the collection

I have published a repository of 434,201 generated Sudoku instances, ranging from 6×6 to 36×36. The collection is the main output of my ModRef 2026 paper Scaling Sudoku as a Constraint Problem, which describes how the puzzles were generated and maps out how their propagation-based hardness shifts as the grid grows.

The change in scale is easier to see than to describe. Below is one base instance from the repository at each size, drawn at a fixed width so the growth in cell count stands out directly.

Generated instances at five sizes

Grid size

9×9 grid · 3×3 boxes

24 clues · 29.6% filled

View this instance in the repository

Building the collection

In his 2005 paper Sudoku as a Constraint Problem, Helmut Simonis used published 9×9 Sudoku puzzles as a compact test bed for constraint modelling, comparing propagation schemes by asking which ones could solve a puzzle without search. I kept that experimental setup, but generated the puzzles myself and varied the grid size.

The repository starts with 32,000 unique-solution base puzzles at sizes 6×6, 9×9, 16×16, 25×25, and 36×36, plus another 402,201 instances recorded along 170,000 hardness walks. A hardness walk begins at a base puzzle and adds clues back from its known solution one at a time; whenever a weaker propagation scheme becomes enough to solve the grid, that intermediate puzzle is saved. That way, the collection holds both the hard starting points and step-by-step paths from them towards easier propagation categories.

Each instance is stored as a text file with JSON metadata, and the repository includes scripts for validating the corpus and picking smaller subsets.

What changes with size

Dominant hardness buckets change from Val at 6×6 to ValBS at 9×9, DomBS at 16×16, and Search at 25×25 and 36×36; propagation-only coverage is 100%, 100%, 84.9%, 0%, and 0%.

The figure adapts the cross-size summary from the paper, grouping each puzzle by the weakest propagation scheme that solves it without branching. Val uses value propagation, Dom uses stronger domain-consistent propagation, and BS adds bounds shaving.1 Search covers puzzles that none of the tested propagation schemes could finish without branching.

The transition with size is sharp. Propagation alone solves every generated 6×6 and 9×9 base puzzle, and 84.9% of the 16×16 ones. At 25×25 and 36×36, none of the 1,000 base puzzles at either size are solved without search—even with domain-consistent propagation and domain shaving. Adding clues still pulls larger puzzles into easier propagation categories, though the walk takes much longer: the average number of extra clues needed for a verified category drop climbs from 1.20 at 6×6 to 24.12 at 36×36.

One caveat to keep in mind is that clue density is not constant across sizes. Removing clues while preserving a unique solution leaves a median fill of 27.8% at 6×6, rising to 52.2% at 36×36. The results describe this generated collection rather than every generalised Sudoku puzzle.

Between the base grids, hardness labels, and walks, there are several ways to carve out a smaller benchmark set from the public repository and test other models or solvers on it. The paper documents the generation pipeline and the experiments behind those labels.

Footnotes

  1. Shaving tentatively assigns a candidate value and propagates to a fixpoint; if that assumption fails, the value can be eliminated without committing to a branch. Bounds shaving tests only the smallest and largest remaining values of a domain, while domain shaving tests every remaining value. ↩