TY - JOUR
T1 - Reducing the generalised Sudoku problem to the Hamiltonian cycle problem
AU - Haythorpe, Michael
PY - 2016/12/1
Y1 - 2016/12/1
N2 -
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.
AB -
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.
KW - Hamiltonian cycle problem
KW - NP-complete
KW - Reduction
KW - Sudoku
UR - http://www.sciencedirect.com/science/article/pii/S097286001630038X
UR - http://www.scopus.com/inward/record.url?scp=85006054806&partnerID=8YFLogxK
U2 - 10.1016/j.akcej.2016.10.001
DO - 10.1016/j.akcej.2016.10.001
M3 - Article
SN - 0972-8600
VL - 13
SP - 272
EP - 282
JO - AKCE International Journal of Graphs and Combinatorics
JF - AKCE International Journal of Graphs and Combinatorics
IS - 3
ER -