CSE 440 · Artificial Intelligence · North South University
LogicPuzzleX solves Sudoku from 4×4 to 16×16 as a constraint satisfaction problem, with backtracking search, constraint propagation and propositional logic. It shows every deduction live in your browser.
Each one is a tab in the app. They all share one puzzle, so you can load the world's hardest Sudoku and watch every technique take it on.
Solve it yourself. After every move the engine checks that the board can still be finished, and its hints come with reasons.
An animated replay of the search. Candidates vanish as constraints propagate, and cells flash red on a backtrack.
Naive backtracking vs forward checking vs MRV vs MAC, side by side on the same puzzle.
Every deduction in plain English, e.g. “r5c3 = 7: only place in box 4 for a 7”.
Fresh puzzles that are proved to have exactly one solution, graded Easy to Extreme.
The reproducible experiments behind every figure in our report, charted live.
Each puzzle becomes a factor graph: variables Xi with domains, and factors fj(x) ∈ {0, 1}. A complete assignment solves the puzzle when every factor is satisfied:
A 9×9 Sudoku has 81 variables and 810 binary “≠” factors. The solver works up an algorithm ladder, adding one technique at each step:
1000 rated puzzles, 250 per difficulty bucket, 10 s limit per run. The solvers are pure Python, so the times compare techniques rather than measure raw speed.
mac+, the fastest configurationmac+, the only algorithm that finishes them| Algorithm | Median nodes | Median ms | Timed out |
|---|---|---|---|
bt | 17,890 | 4,185 | 32.9% |
fc | 5,446 | 406 | 2.3% |
mrv | 210 | 27 | 0% |
lcv | 219 | 30 | 0% |
mac | 113 | 44 | 0% |
mac+ | 58 | 24 | 0% |
dpll | 448 | 103 | 0% |
Load the world's hardest Sudoku, race four algorithms on it, or try to beat the engine yourself.
Open LogicPuzzleX →CSE 440, Section 1, Group 2
CSP engine and search
Puzzle modeling, propagation, generator
Logic track, explanations, experiments
Web app, demo video, integration