Longest uncrossed knight's path
Mathematical problem set on a chessboard
From Wikipedia, the free encyclopedia
The longest uncrossed (or nonintersecting) knight's path is a mathematical problem involving a knight on the standard 8×8 chessboard or, more generally, on a square n×n board. The problem is to find the longest path the knight can take on the given board, such that the path does not intersect itself. A further distinction can be made between a closed path, which ends on the same field as where it begins, and an open path, which ends on a different field from where it begins.
Known solutions
Generalizations
The problem can be further generalized to rectangular m×n boards, or even to boards in the shape of any polyomino. A restricted form of the problem for m×n boards, where n≤8 and m might be very large, was given at 2018 ICPC World Finals.[1] It may be solved by dint of dynamic programming, helped by the insight that the solution should exhibit a cyclic behaviour.
Other standard chess pieces than the knight are less interesting, but fairy chess pieces like the camel ((3,1)-leaper), giraffe ((4,1)-leaper) and zebra ((3,2)-leaper) lead to problems of comparable complexity.
See also
- A knight's tour is a self-intersecting knight's path visiting all fields of the board.
- TwixT, a board game based on uncrossed knight's paths.