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
相关论文
共 50 条
  • [1] Generalized knight's tours on rectangular chessboards
    Chia, GL
    Ong, SH
    DISCRETE APPLIED MATHEMATICS, 2005, 150 (1-3) : 80 - 98
  • [2] Tours of a generalized knight on rectangular chessboards
    Bullington, Grady
    Eroh, Linda
    Roth, Sarah
    Winters, Steven J.
    SAO PAULO JOURNAL OF MATHEMATICAL SCIENCES, 2022, 16 (02): : 893 - 914
  • [3] Tours of a generalized knight on rectangular chessboards
    Grady Bullington
    Linda Eroh
    Sarah Roth
    Steven J. Winters
    São Paulo Journal of Mathematical Sciences, 2022, 16 : 893 - 914
  • [4] Closed Knight's Tours on 4 x n Chessboards with Two Squares Removed
    Srichote, Wasupol
    Boonklurb, Ratinan
    Kaewwannarat, Tanatorn
    Singhun, Sirirat
    THAI JOURNAL OF MATHEMATICS, 2022, : 64 - 81
  • [5] Proving the existence of Euclidean knight’s tours on n × n × · · · × n chessboards for n < 4
    Ripà, Marco
    arXiv, 2023,
  • [6] Closed Almost Knight's Tours on 2D and 3D Chessboards
    Firstein, Michael
    Fischer, Anja
    Hungerlaender, Philipp
    OPERATIONS RESEARCH PROCEEDINGS 2017, 2018, : 185 - 190
  • [7] Knight's tours
    Stewart, I
    SCIENTIFIC AMERICAN, 1997, 276 (04) : 102 - 104
  • [8] Generalised Knight's Tours
    Kamcev, Nina
    ELECTRONIC JOURNAL OF COMBINATORICS, 2014, 21 (01):
  • [9] Some Forbidden Rectangular Chessboards with Generalized Knight's Moves
    Singhun, Sirirat
    Karudilok, Krit
    Boonklurb, Ratinan
    THAI JOURNAL OF MATHEMATICS, 2020, : 133 - 145
  • [10] Generalized knight's tour on 3D chessboards
    Bai, Sen
    Yang, Xiao-Fan
    Zhu, Gui-Bin
    Jiang, De-Lei
    Huang, Jian
    DISCRETE APPLIED MATHEMATICS, 2010, 158 (16) : 1727 - 1731