Skip to main content

Posts

Showing posts from June, 2022

modern problem requires ancient solutions...

The knight’s tour problem is the mathematical problem of finding a knight’s tour. Creating a program to find a knight’s tour is a common problem given to computer science students . Backtracking is an algorithmic paradigm that tries different solutions until finds a solution that “works”.  Problems that are typically solved using the backtracking technique have the following property in common.  These problems can only be solved by trying every possible configuration and each configuration is tried only once.  A Naive solution for these problems is to try all configurations and output a configuration that follows given problem constraints.  Backtracking works incrementally and is an optimization over the Naive solution where all possible configurations are generated and tried. For example, consider the following Knight’s Tour problem. Question::: Given a N*N board with the Knight placed on the first block of an empty board.  Moving according to the rules o...