Skip to content

Is this instance NP-complete, and how do I encode it?

Edge matching is NP-complete as a family, but that says nothing about one fixed 16×16 board: a single instance is a constant, not a problem. What is true is the family's worst-case hardness and this instance's empirical hardness, and how to write the puzzle for a SAT, exact-cover, or ILP solver with small worked sketches. A measurement on planted boards puts a number on the choice of formulation: a solvability cliff one search paradigm hits and another crosses, and that moves with the colour count.

conceptexplainerExact methodsUpdated 2026-07-22
Reproduceseeded — reproduces with the given seedreruns the search
Reproduce this result

seeded — reproduces with the given seed

Reruns both arms of the planted-board cliff measurement (the restarting DFS sweep and the CP-SAT decision solves with independent board verification); per-seed scores and solve counts reproduce, wall-clock times vary with hardware.

Code & data on GitHub

Keep exploring

Referenced by

Page sourceView as Markdown