An open API service indexing awesome lists of open source software.

https://github.com/hingston/checktsp

A brute force checker for the travelling salesman problem in Python
https://github.com/hingston/checktsp

travelling-salesman-problem

Last synced: 8 months ago
JSON representation

A brute force checker for the travelling salesman problem in Python

Awesome Lists containing this project

README

          

# CheckTSP
A brute force checker for the travelling salesman problem in Python
###### Usage
`python CheckTSP.py MAP_FILE_NAME`

###### Example
`python CheckTSP.py sample.txt`

`55`

## CreateTSPMap
###### Usage
`python createmap.py NUMBER_OF_TOWNS MAX_DISTANCE OUTPUT_FILE_NAME`

###### Output File Format

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](https://github.com/hingston/CheckTSP/blob/master/sample.txt) as an example.

## Authors
* Clint Gamlin - Original Python 2 version
* William Hingston - Python 3 and improvements