Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 768 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 768 Bytes

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