A brute force checker for the travelling salesman problem in Python
python CheckTSP.py MAP_FILE_NAME
python CheckTSP.py sample.txt
55
python createmap.py NUMBER_OF_TOWNS MAX_DISTANCE OUTPUT_FILE_NAME
The first line is the number of lines (places to visit) and the following lines must have n + 1 numbers separated by spaces (distance between places). See sample.txt as an example.
- Clint Gamlin - Original Python 2 version
- William Hingston - Python 3 and improvements