skip to main content
10.1145/503720.503806acmconferencesArticle/Chapter ViewAbstractPublication Pagesacm-seConference Proceedingsconference-collections
Article
Free Access

Finding re-entrant knight's tours on n-by-m boards

Published:08 April 1992Publication History

ABSTRACT

In this paper we discuss how we developed a highly efficient backtracking algorithm based on proofs we devised concerning Hamiltonian circuits. The algorithm concentrates on a Knight's Tour in which the knight starts and ends on the same square--a Hamiltonian circuit.One version of the program we developed is designed to find all Hamiltonian circuits for any given board. The largest board we exhausted is a six-by-seven. We found 1,067,638 circuits in 43 minutes 2 seconds (actual cpu time), or 413 circuits per second using a Solbourne 4/602.The final version of the program concentrates on finding one Hamiltonian circuit in very large boards. Our software and hardware limit us to a maximum board size of 520x520 in which we found a Hamiltonian circuit in 3 minutes 19 seconds. All of our data from using various sized boards indicate that the program has a time complexity close to O(m.n) on an n-by-m board.

References

  1. 1.Ball, W. W. Rouse, Mathematical Recreations and Essays, The MacMillan Company, New York 1947, pp 174-185.Google ScholarGoogle Scholar
  1. Finding re-entrant knight's tours on n-by-m boards

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      ACM-SE 30: Proceedings of the 30th annual Southeast regional conference
      April 1992
      487 pages
      ISBN:0897915062
      DOI:10.1145/503720

      Copyright © 1992 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 8 April 1992

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      Overall Acceptance Rate178of377submissions,47%

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader