Skip to content

GilbertLS/2-approximation-TSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2-approximation-TSP

Travelling salesman problem 2-approximation algorithm.

We first start with n randomized nodes which are all connected to each other.
We then use Prim's algorithm to create a Minimum Spanning Tree.
We then do a pre-order walk on the MST to get a tour.
Which gives us an approximate solution to the Travelling Salesman Problem.

Demo
https://gilbertls.github.io/2-approximation-TSP/

Coded by Gilbert Lavergne-Shank
http://gilbertls.com

About

travelling salesman problem 2-approximation algorithm.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published