Skip to content
/ TSP Public

Implementation of a 2-approximation algorithm for Traveling Salesman Problem

Notifications You must be signed in to change notification settings

claudim/TSP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Engineering - 2-Approximation algorithm implementation for Traveling Salesman Problem

A C++ implementation of a simple 2-Approximation algorithm for the Metric Traveling Salesman Problem.

Getting Started

Requirements

  1. NetworKit (only c++-core, see here for further informations).
  2. gcc/g++ 8.x or higher
  3. C++ 17
  4. CMake 3.13

Installing

  1. Update CMakeList to link NetworKit library
  2. Create a building folder in the root directory e.g. mkdir build
  3. Move in build directory and run cmake ../
  4. Run cmake --build .

Usage

./TSP path/to/your/graph/

TSP takes graph in edgelist format. Some sample graphs are in the samples directory.

Authors

  • Claudia Di Marco
  • Riccardo Mantini

About

Implementation of a 2-approximation algorithm for Traveling Salesman Problem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published