将广义数独问题化约为Hamilton圈问题
Reducing the generalised Sudoku problem to the Hamiltonian cycle problem
摘要:
带有$N$符号的广义数独问题被认为是NP完全问题,因此等价于任何其他NP完全问题,即使对于标准的限制版本,其中$N$是一个完美的正方形。特别是,广义数独是等同于,经典的,汉密尔顿循环问题。给出了一个构造性算法,将广义数独问题归结为Hamilton圈问题,其中Hamilton圈问题的实例是稀疏的,并且有$O(N^3)$顶点.如此构造的哈密尔顿循环问题实例是有向图,并且因此还提供了到无向哈密尔顿循环问题的(已知的)转换,使得它可以被提交给最好的算法。给出了一个从Hamilton圈中得到有效数独解的简单算法。还讨论了减小结果图的大小的技术。
英文摘要:
The generalised Sudoku problem with $N$ symbols is known to be NP-complete, and hence is equivalent to any other NP-complete problem, even for the standard restricted version where $N$ is a perfect square. In particular, generalised Sudoku is equivalent to the, classical, Hamiltonian cycle problem. A constructive algorithm is given that reduces generalised Sudoku to the Hamiltonian cycle problem, where the resultant instance of Hamiltonian cycle problem is sparse, and has $O(N^3)$ vertices. The Hamiltonian cycle problem instance so constructed is a directed graph, and so a (known) conversion to undirected Hamiltonian cycle problem is also provided so that it can be submitted to the best heuristics. A simple algorithm for obtaining the valid Sudoku solution from the Hamiltonian cycle is provided. Techniques to reduce the size of the resultant graph are also discussed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。