ThIs is a solution to the TSP using
- A* algorithm with Minimum Spanning Tree as a heuristic.
- Genetic algorithm (open the files to see parameters)
To run the program in your local system
-
Clone the repository
git clone git@github.com:adityabandal/Travelling-Salesman-Problem.git -
Run following command
./run_astarto run using A star algorithm and./run_geneticto run using Genetic algorithm -
An executable file named will be created.
-
Enter nXn matrix of distance between cities in input.txt file and run executable. Examples can be taken from here