Skip to content

Advanced Algorithms | Spring 2021 | MST for 2-approx of metric TSP

License

Notifications You must be signed in to change notification settings

liloheinrich/MST-TSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MST-TSP

Minimum Spanning Trees for 2-approximation of metric Travelling Salesman Problem
Advanced Algorithms, Spring 2021

Goals

  1. Make a working implementation of a 2-approximation algorithm for the TSP using the Minimum Spanning Tree (MST) approach discussed in class. (We are providing starter code and tests).
  2. Make a brute-force implementation to find the true optimal solution to the TSP.
  3. Show that the MST approach is truly a 2-approximation with respect to the optimal solution found via brute-force.

Getting Started:

Tests are provided at the end of the provided scaffold file. At a minimum, your code should pass all of the tests in that file. The code is directly drawn from the work seen here. Naturally, this means that the answer to the question is also at that link - we ask that you don't look at the solution unless you feel absolutely necessary (honor code!).

In the starter code, we've provided an implementation for the Minimum Spanning Tree (MST) algorithm, among other functions, to speed up your coding work. In case you need a refresher on how such an implementation would look like, you might find it helpful to take a look at this reference.

Releases

No releases published

Packages

No packages published

Languages