Skip to content

Implementation of algorithm X for the solution of sudoku .

Notifications You must be signed in to change notification settings

BNandor/SudokuSolver-DancingLinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SudokuSolver-DancingLinks

Implementation of the extremely fast algorithm X, using dancing links as main data structure, solving sudokus. Solves all of the top 95 hardest sudokus in approximately 0.05 seconds.

https://arxiv.org/pdf/cs/0011047v1.pdf

Links

Usage

./DLX input-filename

Input format

A puzzle must be in a single row, empty cells are represented as dots:

3...8.......7....51..............36...2..4....7...........6.13..452...........8..

The executable solves all the puzzles in the input file.

Other options

-Dmatrixform //print solutions in matrix form
-Dtotal //print total number of solutions
-Dmore //check all solutions,do not stop at first one

About

Implementation of algorithm X for the solution of sudoku .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published