Skip to content

Dancing Links (DLX) Sudoku solver at Artificial Intelligence (slo. Umetna Inteligenca)

License

Notifications You must be signed in to change notification settings

jonpas/SudokuDLX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FERI-SudokuDLX

Dancing Links (DLX) Sudoku solver at Artificial Intelligence (slo. Umetna Inteligenca).

Solves Sudoku using dancing links technique, an efficient implementation of Algorithm X, as suggested by Donald Knuth. Supports all NxN sizes where N is a perfect square (4x4, 9x9, 16x16 ...).

Thanks to KarlHajal/DLX-Sudoku-Solver for a high-performance C-like implementation that served as the most important reference for this implementation. Additional thanks to Jonathan Chu's Java Sudoku Solver and paper for another important reference.

Features

  • Sudoku Solver using Dancing Links Algorithm
  • Sudoku Grids NxN (N is perfect square)
    • Manual Input (non-validated - by design for DLX error testing)
    • Import Dotted String Format (size-validated only)
      • 53.2..4... (length: N*N)
    • Test Cases (9x9 and 16x16) (in-code on start)
    • Benchmark (build & search)

Setup

Dependencies:

Resources

Test Cases: