Constraint satisfaction problem
From Sudopedia, the Free Sudoku Reference Guide
Jump to navigationJump to searchConstraint Satisfaction Problems can be solved using Donald Knuth's Dancing Links algorithm.
Another way to program Sudoku as a constraint satisfaction problem is to treat it as a Binary Integer Linear Program. In that case define
The cell constraint then becomes
- Sum over k of the x(i,j,k) = 1 for all i and j.
The other three constraints can also be set up as linear sums.
Reference
Constraint Satisfaction Problem entry on Wikipedia