The Chaos Within Sudoku
Abstract
The mathematical structure of Sudoku puzzles is akin to hard constraint satisfaction problems lying at the basis of many applications, including protein folding and the ground-state problem of glassy spin systems. Via an exact mapping of Sudoku into a deterministic, continuous-time dynamical system, here we show that the difficulty of Sudoku translates into transient chaotic behavior exhibited by this system. We also show that the escape rate κ, an invariant of transient chaos, provides a scalar measure of the puzzle's hardness that correlates well with human difficulty ratings. Accordingly, η = -log10 κ can be used to define a ``Richter''-type scale for puzzle hardness, with easy puzzles having 0 < η <= 1, medium ones 1 < η <= 2, hard with 2 < η <= 3 and ultra-hard with η > 3. To our best knowledge, there are no known puzzles with η > 4.
- Publication:
-
Scientific Reports
- Pub Date:
- October 2012
- DOI:
- 10.1038/srep00725
- arXiv:
- arXiv:1208.0370
- Bibcode:
- 2012NatSR...2E.725E
- Keywords:
-
- Nonlinear Sciences - Chaotic Dynamics;
- Computer Science - Data Structures and Algorithms;
- Physics - Computational Physics;
- 37D45;
- 90C27;
- 68Q10;
- 68Q17;
- 34G20;
- F.2.3;
- F.1.0
- E-Print:
- 9 pages, 4 color figures