The Knight’s Tour is a classic mathematical and chess problem that consists of moving a knight on an $n \times n$ chessboard so that it visits each and every square exactly once.
There are two main variants of this problem:
- Closed tour: The knight ends on a square that is one move away from the starting square, forming a complete cycle that could repeat indefinitely.
- Open tour: The knight visits all squares, but the final square does not allow returning to the starting square in a single move.
This problem has fascinated mathematicians for centuries, from the celebrated Leonhard Euler in the 18th century to modern research in graph theory and Operations Research.
Do you dare to find a complete closed path before checking the solution and its mathematical modeling?
The Knight’s Tour can be formulated as a Traveling Salesperson Problem on a directed graph, do you dare to try it?
References
- Article · 1960Integer Programming Formulation of Traveling Salesman ProblemsJournal of the ACM
@article{Miller1960, title = {Integer Programming Formulation of Traveling Salesman Problems}, volume = {7}, issn = {1557-735X}, url = {http://dx.doi.org/10.1145/321043.321046}, doi = {10.1145/321043.321046}, number = {4}, journal = {Journal of the ACM}, publisher = {Association for Computing Machinery (ACM)}, author = {Miller, C. E. and Tucker, A. W. and Zemlin, R. A.}, year = {1960}, month = oct, pages = {326–329} }
Keep following the series
How to cite
Cite this post
Martín-Campo, F. Javier (2026). The knight's perfect tour, challenge chess with linear optimization. https://www.fjmartincampo.com/blog/2026/knightstour/
As a BibTeX entry:
@misc{martín-campo2026the-knight-s-perfect-tour-challenge-chess-with-linear-optimization,
title = {The knight's perfect tour, challenge chess with linear optimization},
author = {Martín-Campo, F. Javier},
year = {2026},
month = {jul},
url = {https://www.fjmartincampo.com/blog/2026/knightstour/}
}
This post is published under a CC BY-NC-SA 4.0 license.