Abstract
Knight’s tour has been an intriguing chess puzzle for many computer scientists and mathematicians. In this paper, we describe and analyze two of the most commonly used algorithms to solve the Knight’s tour puzzle in computer science—Warnsdorff’s rule and backtracking. Various case studies are performed to showcase the differences in time complexity of each algorithm. We also point out that the starting position and dimensions of a board play a key role in determining whether a tour is possible. By doing this, we prove that a tour does not exist when the knight starts from odd squares on boards of odd dimensions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
McGown K, Leininger A (2002) Knight’s tours. Cull, Paul (advisor). Oregon State Univesity, MIT and Oregon State University, 15 Aug 2002
Bi B, Butler S, DeGraaf S, Doebel E (2015) Knight’s tours on boards with odd dimensions. Involv J Math 8(4):615–616
Squirrel D, Cull P (1996) A warnsdorff-rule algorithm for knight’s tours on square boards
Stack Overflow (2018) https://stackoverflow.com/questions/19214109/how-to-optimize-knights-tour-algorithm. Accessed 09 June 2018
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Pranav, M., Nithin, S., Guruprasad, N. (2019). A Comparison of Warnsdorff’s Rule and Backtracking for Knight’s Tour on Square Boards. In: Sridhar, V., Padma, M., Rao, K. (eds) Emerging Research in Electronics, Computer Science and Technology. Lecture Notes in Electrical Engineering, vol 545. Springer, Singapore. https://doi.org/10.1007/978-981-13-5802-9_16
Download citation
DOI: https://doi.org/10.1007/978-981-13-5802-9_16
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-13-5801-2
Online ISBN: 978-981-13-5802-9
eBook Packages: EngineeringEngineering (R0)