macisluca / Knight-Tour

A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square exactly once. If the knight ends on a square that is one knight's move from the beginning square (so that it could tour the board again immediately, following the same path), the tour is closed; otherwise, it is open. This notebook will explore three ways to solve the problem: the recursive algorithm, the Warnsdorff's algorithm and the Divide and Conquer algorithm.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is not active

About

A knight's tour is a sequence of moves of a knight on a chessboard such that the knight visits every square exactly once. If the knight ends on a square that is one knight's move from the beginning square (so that it could tour the board again immediately, following the same path), the tour is closed; otherwise, it is open. This notebook will explore three ways to solve the problem: the recursive algorithm, the Warnsdorff's algorithm and the Divide and Conquer algorithm.

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 100.0%