Skip to content

This repository contains various approaches to solving the Traveling Salesman Problem implemented in C++.

Notifications You must be signed in to change notification settings

Nexer8/Traveling_Salesman_Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traveling Salesman Problem (TSP)

The travelling salesman problem (also known as the TSP) asks, "Given a list of cities and the distances between each pair of cities, what is the shortest feasible route that visits each city precisely once and returns to the starting city?" It is an NP-hard problem.

This repository contains various approaches to solving the TSP implemented in C++.

Sample

Exact Algorithms

  • Swap-based Brute Force
  • Tree search Brute Force
  • Dynamic Programming
  • Branch and Bound

Local Search Algorithms

  • Simulated Annealing
  • Tabu Search

Population-based Algorithms

  • Genetic Algorithm
  • Ant Colony Optimization