Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Travelling Salesman Problem

Nemo
October 07, 2014

Travelling Salesman Problem

A small talk on TSP. Made using Slides.com. Also available at http://slides.com/captn3m0/travelling-salesman/

Nemo

October 07, 2014
Tweet

More Decks by Nemo

Other Decks in Science

Transcript

  1. STRUCTURE 1. Problem Statement 2. Problem Analysis 3. Basic Solutions

    4. Applications 5. Heuristic & Other solutions 6. Links & References
  2. PROBLEM STATEMENT​ GIVEN A LIST OF CITIES AND THE DISTANCES

    BETWEEN EACH PAIR OF CITIES, WHAT IS THE SHORTEST POSSIBLE ROUTE THAT VISITS EACH CITY EXACTLY ONCE AND RETURNS TO THE ORIGIN CITY?
  3. WHAT'S A GRAPH? REPRESENTATION OF A SET OF OBJECTS WHERE

    SOME PAIRS OF OBJECTS ARE CONNECTED BY LINKS
  4. EDGES Ordered or Unordered pair of exactly 2 vertices. VERTICES

    Fundamental unit of a graph. Think of it as a point. Can be disconnected. GRAPH Ordered Pair G =(V, E) V = Set of vertices E = Set of edges
  5. DIRECTED Edges are two way Edge(a,b) != Edge(b,a) UNDIRECTED Edges

    have no orientation. Edge(a,b) = Edge(b,a)
  6. ASYMMETRIC In the asymmetric TSP, paths may not exist in

    both directions or the distances might be different, forming a directed graph. One-way streets, for eg. SYMMETRIC The distance between two cities is the same in each opposite direction, forming an undirected graph. This symmetry halves the number of possible solutions. Most common type of TSP.
  7. PROBLEM STATEMENT undirected weighted graph city = graph's vertices path

    = graph's edges distance = edge's length Minimize total distance after visiting all vertices. Often, graph is complete as well
  8. Year Vertices 1954 49 Cities (USA) 1971 64 Points 1975

    80 Points 1977 120 Cities (Germany) 1987 318 Points 1987 532, 666, 1002, 2392 TSP RECORDS
  9. 1. Travel to all cities 2. Choose closer cities (visibility)

    3. Probability of choosing ∝ pheromone 4. Deposit pheromone on path travelled 5. Iterate
  10. REFERENCES By David Stanley from Nanaimo, Canada (Balloon Salesman Uploaded

    by russavia) [ ], via Wikimedia Commons TSP Cartoon, Courtesy Randal Munroe (xkcd.com) In Pursuit of the Traveling Salesman: Mathematics at the Limits of Computation, William J Cook CC-BY-2.0