This program solves the Knight's Tour problem using a probabilistic algorithm.
- Python 3.x
You can run the program using the command line. Navigate to the directory containing the 2020400141.py
file, then run one of the following commands:
- python 2020400141.py
partX
- partX :
part1
orpart2
part2
use backtracing logic to handle more success for given case.part1
focuses on more randomness so it's normal to see lower probabilites compared topart2
- python 2020400141.py part1
- One can make changes for size of the input instead of
n = 8
. - Also can configure p and k values.