Sudoku as a Constraint Problem
Sudoku as a Constraint Problem
复制标题
数独作为约束问题
DOI:
--
复制
发表时间:
2005
期刊:
影响因子:
--
通讯作者:
Helmut Simonis
中科院分区:
文献类型:
--
作者:
Helmut Simonis
Constraint programming has finally reached the masses, thousands of newspaper readers (especially in the UK) are solving their daily constraint problem. They apply complex propagation schemes with names like “X-Wing” and “Swordfish” to find solutions of a rather simple looking puzzle called Sudoku. Unfortunately, they are not aware that this is constraint programming. In this paper we try to understand the puzzle from a constraint point of view, show models to solve and generate puzzles and give an objective measure of the difficulty of a puzzle instance. This measure seems to correlate well with grades (e.g. easy to hard) that are assigned to problem instances for the general public. We also show how the model can be strengthened with redundant constraints and how these can be implemented using bipartite matching and flow algorithms.