Skip to main content

A Comparison of Warnsdorff’s Rule and Backtracking for Knight’s Tour on Square Boards

  • Conference paper
  • First Online:
Emerging Research in Electronics, Computer Science and Technology

Part of the book series: Lecture Notes in Electrical Engineering ((LNEE,volume 545))

  • 2302 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. McGown K, Leininger A (2002) Knight’s tours. Cull, Paul (advisor). Oregon State Univesity, MIT and Oregon State University, 15 Aug 2002

    Google Scholar 

  2. Bi B, Butler S, DeGraaf S, Doebel E (2015) Knight’s tours on boards with odd dimensions. Involv J Math 8(4):615–616

    Article  MathSciNet  Google Scholar 

  3. Squirrel D, Cull P (1996) A warnsdorff-rule algorithm for knight’s tours on square boards

    Google Scholar 

  4. Stack Overflow (2018) https://stackoverflow.com/questions/19214109/how-to-optimize-knights-tour-algorithm. Accessed 09 June 2018

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to M. Pranav .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics