11/30/2006 Travelling Salesman Problem Sebastian Dittmann COSC 6111 Advanced Design and Analysis of Algorithms.

Slides:



Advertisements
Similar presentations
Instructor Neelima Gupta Table of Contents Approximation Algorithms.
Advertisements

Design and Analysis of Algorithms Approximation algorithms for NP-complete problems Haidong Xue Summer 2012, at GSU.
Great Theoretical Ideas in Computer Science for Some.
Greedy Algorithms Spanning Trees Chapter 16, 23. What makes a greedy algorithm? Feasible –Has to satisfy the problem’s constraints Locally Optimal –The.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Approximation Algorithms for TSP
1 ©D.Moshkovitz Complexity The Traveling Salesman Problem.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
Combinatorial Algorithms
Algorithm Strategies Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
Approximation Algorithms: Concepts Approximation algorithm: An algorithm that returns near-optimal solutions (i.e. is "provably good“) is called an approximation.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Math443/543 Mathematical Modeling and Optimization
1 NP-Completeness Objectives: At the end of the lesson, students should be able to: 1. Differentiate between class P, NP, and NPC 2. Reduce a known NPC.
1 Traveling Salesman Problem (TSP) Given n £ n positive distance matrix (d ij ) find permutation  on {0,1,2,..,n-1} minimizing  i=0 n-1 d  (i),  (i+1.
Travelling Salesman Problem an unfinished story...
Vertex cover problem S  V such that for every {u,v}  E u  S or v  S (or both)
Network Optimization Problems: Models and Algorithms
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
1 Traveling Salesman Problem Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Algorithms for Network Optimization Problems This handout: Minimum Spanning Tree Problem Approximation Algorithms Traveling Salesman Problem.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Traveling Salesperson Problem Algorithms and Networks.
The Traveling Salesman Problem Approximation
Branch & Bound UPPER =  LOWER = 0.
University of Texas at Arlington Srikanth Vadada Kishan Kumar B P Fall CSE 5311 Solving Travelling Salesman Problem for Metric Graphs using MST.
1 The TSP : NP-Completeness Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Advanced Algorithm Design and Analysis (Lecture 13) SW5 fall 2004 Simonas Šaltenis E1-215b
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
DP TSP Have some numbering of the vertices We will think of all our tours as beginning and ending at 1 C(S, j) = length of shortest path visiting each.
Princeton University COS 423 Theory of Algorithms Spring 2001 Kevin Wayne Approximation Algorithms These lecture slides are adapted from CLRS.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Approximation Algorithms for TSP Tsvi Kopelowitz 1.
1 Travelling Salesman Problem Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij.
Approximation Algorithms Guo QI, Chen Zhenghai, Wang Guanhua, Shen Shiqi, Himeshi De Silva.
Approximation Algorithms
Genetic Algorithms and TSP Thomas Jefferson Computer Research Project by Karl Leswing.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Instructor Neelima Gupta Table of Contents Introduction to Approximation Algorithms Factor 2 approximation algorithm for TSP Factor.
Ch3 /Lecture #4 Brute Force and Exhaustive Search 1.
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
1 Minimum Spanning Tree: Solving TSP for Metric Graphs using MST Heuristic Soheil Shafiee Shabnam Aboughadareh.
Approximation algorithms
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
Hamilton Paths and Hamilton Circuits
Hard Problems Some problems are hard to solve.
Richard Anderson Lectures NP-Completeness
Optimization problems such as
Routing Through Networks - 1
An introduction to Approximation Algorithms Presented By Iman Sadeghi
Joint work with Frans Schalekamp and Anke van Zuylen
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Great Theoretical Ideas in Computer Science
Approximation Algorithms
Approximation Algorithms for TSP
Graph Theory.
Genome Assembly.
Richard Anderson Lecture 28 Coping with NP-Completeness
Integer Programming (정수계획법)
The Traveling Salesperson Problem
CSC 380: Design and Analysis of Algorithms
Approximation Algorithms
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

11/30/2006 Travelling Salesman Problem Sebastian Dittmann COSC 6111 Advanced Design and Analysis of Algorithms

Travelling Salesman Problem11/30/2006 Structure Definition Applications Complexity Triangle TSP State-of-the-art TSP-History Conclusion

Travelling Salesman Problem11/30/2006 Definition I Important NPC Problem Travelling Salesman Problem (TSP) –Given n cities and the costs of travelling from one city to another. –Find the shortest tour that visits all cities exactly once and then returns to the starting city.

Travelling Salesman Problem11/30/2006 Definition II Travelling Salesman Problem (TSP) –Given a weighted undirected complete graph with n nodes. –Starting at node s find a cycle that visits each node exactly once and ends in s (Hamiltonian cycle) with the least weight.

Travelling Salesman Problem11/30/2006 Example

Travelling Salesman Problem11/30/2006 Example Cost of optimal tour = 11

Travelling Salesman Problem11/30/2006 Applications Travelling person selling products Robots drilling holes Logistic Art Development and testing of optimization algorithms

Travelling Salesman Problem11/30/2006 Complexity I Determine all possible cycles # of Hamiltonian cycles in complete graph : Find the shortest cycle  O (n!)

Travelling Salesman Problem11/30/2006 Complexity II Dynamic Programming Compare “Shortest Weighted Path” algorithm in class Pass subinstance of TSP to your friend  O (n²2 n ) “Improvement”: n! >> n²2 n Approximative algorithm is needed

Travelling Salesman Problem11/30/2006 Triangle TSP I Graph obeys the triangle inequality:  u,v,w  V : d(u,w)  d(u,v) + d(v,w) Example: d(A,C)  d(A,B) + d(B,C)

Travelling Salesman Problem11/30/2006 Triangle TSP II Triangle TSP (TTSP)  NPC Most natural instances of TSP satisfy this constraint TTSP is constant factor approximative (TSP isn’t, else P=NP)  algorithm A: A(TTSP)  c * OPT (TTSP)

Travelling Salesman Problem11/30/ approximative algorithm 2approx(G) G’ = MST (G) G’’ = G’ with every edge doubled G’’’ = EulerTour(G’’) return (removeDuplicates(G’’’) end algorithm MST(G)  2approx(G)  2 * OPT (G)

Travelling Salesman Problem11/30/2006 Example

Travelling Salesman Problem11/30/2006 Example Cost of optimal tour = 11

Travelling Salesman Problem11/30/2006 Example Cost of MST = 6

Travelling Salesman Problem11/30/2006 Example Cost of EulerTour = 12

Travelling Salesman Problem11/30/2006 Example Cost of tour = 14  22 = 2 * OPT (G)

Travelling Salesman Problem11/30/ approximative algorithm christofides(G) G’ = MST (G) G’’ = G’ + perfectMatching( G’_odd degree) G’’’ = EulerTour(G’’) return (removeDuplicates(G’’’) end algorithm MST(G)  christofides(G)  1.5 * OPT (G)

Travelling Salesman Problem11/30/2006 Example

Travelling Salesman Problem11/30/2006 Example Cost of optimal tour = 11

Travelling Salesman Problem11/30/2006 Example Cost of MST = 6

Travelling Salesman Problem11/30/2006 Example Cost of tour = 14  16.5 = 1.5 * OPT (G)

Travelling Salesman Problem11/30/2006 State-of-the-art Christofides (1975) is best known heuristic with constant efficiency Common TSP-algorithm use –nearest neighbor, –branch & bound, –branch & bound & cut, –linear programming

Travelling Salesman Problem11/30/2006 History 1954 – 49 cities – 6* cycles

Travelling Salesman Problem11/30/2006 History cities 1.3 * cycles Contest from Procter & Gamble

Travelling Salesman Problem11/30/2006 History 1987 – 532 cities – 7.5* cycles

Travelling Salesman Problem11/30/2006 History 1998 – 13,509 cities – 5.5*10 49,931 cycles

Travelling Salesman Problem11/30/2006 History ,112 cities MANY cycles 22 CPU years Cologne

Travelling Salesman Problem11/30/2006 History ,978 cities MANY² cycles 85 CPU years

Travelling Salesman Problem11/30/2006 TSP-Art

Travelling Salesman Problem11/30/2006 TSP-Art

Travelling Salesman Problem11/30/2006 Conclusion TSP important NPC-problem n! number of possible solutions Triangle TSP is constant factor approximative (1.5) TSP with 24,978 cities solved

Travelling Salesman Problem11/30/2006 References /CPSC532D-05/Slides/tsp-camilo.pdf

Travelling Salesman Problem11/30/2006 Questions