Skip to content
/ dlx Public
forked from soniakeys/dlx-sudoku

Solves Sudoku puzzles using Knuth's DLX algorithm

Notifications You must be signed in to change notification settings

gcapell/dlx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

DLX-Sudoku

Solves puzzles using Knuth's DLX. DLX solves all Sudokus really fast, with modest memory requirements and without too much code.

This code follows his original paper fairly closely. Input to the program is a file containing puzzles in 81 character format. (This seems to be a conventional computer representation for Sudoku puzzles.)

The DLX code is separated from the Sudoku specific code and so should be usable for other constraint problems, but no other problems are shown here. Also the code sets up the Sudoku specific constraints is in a separate function, but is pretty much hard coded for Sudoku and not generalized to allow constraint input in any kind of friendly format.

About

Solves Sudoku puzzles using Knuth's DLX algorithm

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%