Constraint satisfaction problem
From Sudopedia, the Free Sudoku Reference Guide
Revision as of 11:37, 26 October 2021 by 127.0.0.1 (talk) (Created page with "'''Constraint Satisfaction Problems''' can be solved using ''Donald Knuth's'' Dancing Links algorithm. Another way to program Sudoku as a constraint satisfaction problem...")
Constraint 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