Optimal algorithms for constructing knight's tours on arbitrary nxm chessboards

被引:17
作者
Lin, SS
Wei, CL
机构
[1] Natl Taiwan Normal Univ, Grad Inst Comp Sci & Informat Engn, Taipei, Taiwan
[2] Natl Taiwan Normal Univ, Dept Informat & Comp Educ, Taipei, Taiwan
关键词
divide-and-conquer algorithm; knight's tour problem; optimal algorithm;
D O I
10.1016/j.dam.2004.11.002
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
The knight's tour problem is an ancient puzzle whose goal is to find out how to construct a series of legal moves made by a knight so that it visits every square of a chessboard exactly once. In previous works. researchers have partially solved this problem by offering algorithms for subsets of chessboards. For example, among prior studies, Parberry proposed a divided-and-conquer algorithm that can build a closed knight's tour on an n x n, an n x (n + 1) or an n x (n + 2) chessboard in O(n(2)) (i.e.. linear in area) time on a sequential processor. In this paper we completely solve this problem by presenting new methods that can construct a closed knight's tour or an open knight's tour on an arbitrary n x in chessboard if such a solution exists. Our algorithms also run in linear time (O(nm)) on a sequential processor. (C) 2004 Elsevier B.V. All rights reserved.
引用
收藏
页码:219 / 232
页数:14
相关论文
共 16 条
[1]  
[Anonymous], MATH GAMES PASTIMES
[2]  
BALL WWR, 1939, MATH RECREATIONS ESS
[3]  
Cannon R., 1986, MATH GAZ, V70, P91
[4]   SOLUTION OF THE KNIGHTS HAMILTONIAN PATH PROBLEM ON CHESSBOARDS [J].
CONRAD, A ;
HINDRICHS, T ;
MORSY, H ;
WEGENER, I .
DISCRETE APPLIED MATHEMATICS, 1994, 50 (02) :125-134
[5]  
CONRAD A, 1992, WIE SPRINGER GELINGT, P10
[6]  
Dudeney H.E, 1917, Amusements in Mathematics
[7]  
Dudeney HE., 1917, AMUSEMENTS MATH
[8]  
Euler L., 1959, MEM ACAD SCI BERLIN, P310
[9]  
FILLER T, SOLUTION
[10]  
HURD SP, 1993, MATH MAG, V66, P159