The Traveling Salesperson Problem

Slides:



Advertisements
Similar presentations
1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.
Advertisements

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 Appendix B: Solving TSP by Dynamic Programming Course: Algorithm Design and Analysis.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
The Gas Station Problem Samir Khuller Azarakhsh Malekian Julian Mestre UNIVERSITY OF MARYLAND.
Math443/543 Mathematical Modeling and Optimization
More Algorithm Examples Mani Chandy
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Instructor: Paul Beame TA: Gidon Shavit.
Exponential time algorithms Algorithms and networks.
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Steiner trees Algorithms and Networks. Steiner Trees2 Today Steiner trees: what and why? NP-completeness Approximation algorithms Preprocessing.
Network Optimization Problems: Models and Algorithms
1 Integrality constraints Integrality constraints are often crucial when modeling optimizayion problems as linear programs. We have seen that if our linear.
The Shortest Path Problem
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.
The Traveling Salesperson Problem Algorithms and Networks.
Chapter 12 Coping with the Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
The Traveling Salesman Problem Approximation
SPANNING TREES Lecture 21 CS2110 – Spring
1 The TSP : NP-Completeness Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell.
Advanced Algorithm Design and Analysis (Lecture 13) SW5 fall 2004 Simonas Šaltenis E1-215b
Contents of Chapter 5 Chapter 5 Dynamic Programming
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.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
The Traveling Salesman Problem Over Seventy Years of Research, and a Million in Cash Presented by Vladimir Coxall.
1 The Floyd-Warshall Algorithm Andreas Klappenecker.
Graphs. Definitions A graph is two sets. A graph is two sets. –A set of nodes or vertices V –A set of edges E Edges connect nodes. Edges connect nodes.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Projects Network Theory VLSI PSM 1. Network 1. Steiner trees
Traveling Salesman Problem (TSP)
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
1 Travelling Salesman Problem Algorithms and Networks 2015/2016 Hans L. Bodlaender Johan M. M. van Rooij.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Analysis of the Traveling Salesman Problem and current approaches for solving it. Rishi B. Jethwa and Mayank Agarwal. CSE Department. University of Texas.
Exponential time algorithms Algorithms and networks.
Introduction to Algorithms All-Pairs Shortest Paths My T. UF.
8 -1 Dynamic Programming Fibonacci sequence Fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21, … F i = i if i  1 F i = F i-1 + F i-2 if i  2 Solved.
Management Science 461 Lecture 7 – Routing (TSP) October 28, 2008.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
Lecture 20. Graphs and network models 1. Recap Binary search tree is a special binary tree which is designed to make the search of elements or keys in.
Approximation Algorithms
Steiner trees: Approximation Algorithms
Lecture 13 Shortest Path.
Approximation Algorithms
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Approximation Algorithms
Heuristics Definition – a heuristic is an inexact algorithm that is based on intuitive and plausible arguments which are “likely” to lead to reasonable.
Analysis and design of algorithm
Heuristic Algorithms via VBA
Chapter 11 Graphs.
Richard Anderson Lecture 30 NP-Completeness
All pairs shortest path problem
The Traveling Salesperson Problem
ICS 353: Design and Analysis of Algorithms
Heuristic Algorithms via VBA
Heuristic Algorithms via VBA
Spanning Trees Lecture 20 CS2110 – Spring 2015.
Lecture 12 Shortest Path.
Approximation Algorithms
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

The Traveling Salesperson Problem Algorithms and Networks

Problem 1 2 3 4 5 Instance: n vertices (cities), distance between every pair of vertices Question: Find shortest (simple) cycle that visits every city 4 4 1 2 1 2 3 3 2 2 5 5 2 2 3 4 3 2 4 2 11 A&N: TSP

Assumptions Lengths are non-negative (or positive) Symmetric: w(u,v) = w(v,u) Not always: painting machine application Triangle inequality: for all x, y, z: w(x,y) + w(y,z) ³ w(x,z) Always valid? A&N: TSP

Construction heuristic: Nearest neighbor Start at some vertex s; v=s; While not all vertices visited Select closest unvisited neighbor w of v Go from v to w; v=w Go from v to s. Can have performance ratio O(log n) A&N: TSP

Closest insertion heuristic Build tour by starting with one vertex, and inserting vertices one by one. Always insert vertex that is closest to a vertex already in tour. A&N: TSP

A dynamic programming algorithm

Held-Karp algorithm for TSP O(n22n) algorithm for TSP Uses Dynamic programming Take some starting vertex s For set of vertices R (s Î R), vertex w Î R, let B(R,w) = minimum length of a path, that Starts in s Visits all vertices in R (and no other vertices) Ends in w A&N: TSP

TSP: Recursive formulation B({s},s) = 0 If |S| > 1, then B(S,w) = minv Î S – {x}B(S-{x}, v}) + w(v,x) If we have all B(V,v) then we can solve TSP. Gives requested algorithm using DP-techniques. A&N: TSP