The travelling salesman problem Finding an upper bound using minimum spanning trees Find a minimum spanning tree using Prim’s algorithm or Kruskal’s algorithm.

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.
Minimum Spanning Trees (MSTs) Prim's Algorithm For each vertex not in the tree, keep track of the lowest cost edge that would connect it to the tree This.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
MINIMAL CONNECTOR PROBLEMS Problem: A cable TV company is installing a system of cables to connect all the towns in a region. The numbers in the network.
9.2 The Traveling Salesman Problem. Let us return to the question of finding a cheapest possible cycle through all the given towns: We have n towns (points)
Minimum Spanning Trees Kun-Mao Chao ( 趙坤茂 ) Department of Computer Science and Information Engineering National Taiwan University, Taiwan
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Approximation Algorithms: Combinatorial Approaches Lecture 13: March 2.
An Interval MST Procedure Rebecca Nugent w/ Werner Stuetzle November 16, 2004.
Approximation Algorithms Ola Svensson. Course Information Goal: – Learn the techniques used by studying famous applications Graduate Course FDD
The Travelling Salesman Algorithm A Salesman has to visit lots of different stores and return to the starting base On a graph this means visiting every.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
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 1 1-to-Many Distribution Vehicle Routing John H. Vande Vate Spring, 2005.
Problem Solving with Networks 18/08/2012 Jamie Sneddon
Minimum Spanning Tree Given a weighted graph G = (V, E), generate a spanning tree T = (V, E’) such that the sum of the weights of all the edges is minimum.
Structures 7 Decision Maths: Graph Theory, Networks and Algorithms.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
The travelling Salesman problem involves visiting every town (node) on a graph and returning to the start in the shortest distance. The slides will show.
Minimum spanning trees Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Michael Walker. From Maps to Graphs  Make Intersections Vertices  Make Roads Edges  Result is Weighted Directed Graph  Weights: Speed Limit Length.
TSP – Upper Bounds and Lower Bounds Initial problem : Upper Bound A salesman based in Stockton needs to visit shops based in Darlington, Billingham, Middlesbrough,
Lecture19: Graph III Bohyung Han CSE, POSTECH CSED233: Data Structures (2014F)
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
The Travelling Salesperson Problem A salesperson needs to visit London, Nottingham, Manchester and Leeds, he lives in Birmingham. Find the shortest route.
Prims Algorithm for finding a minimum spanning tree
Graph Revisited Fei Chen CSCI2100B Data Structures Tutorial 12 1.
Tree Diagrams A tree is a connected graph in which every edge is a bridge. There can NEVER be a circuit in a tree diagram!
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
AS Decision Maths Tips for each Topic. Kruskal and Prim What examiner’s are looking for A table of values in the order that they are added and the total.
MATRIX FORM OF PRIM’S ALGORITHM. This network may be described using a Distance Matrix.
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
Lower bound algorithm. 1 Start from A. Delete vertex A and all edges meeting at A. A B C D 4 5 E Find the length of the minimum spanning.
D1 Discrete Mathematics
Shortest Paths and Minimum Spanning Trees
Nuffield Free-Standing Mathematics Activity
Minimum Spanning Tree Chapter 13.6.
Hamiltonian Cycle and TSP
1.3 Modeling with exponentially many constr.
Graph Algorithm.
2 TSP algorithms: (1) AP+B&B, (2) min spanning tree.
Minimum Spanning Tree.
Connected Components Minimum Spanning Tree
The Travelling Salesperson problem
D1 Discrete Mathematics
Minimum Spanning Trees
Shortest Path.
4-4 Graph Theory Trees.
Minimum Spanning Trees
Kruskal’s Algorithm for finding a minimum spanning tree
Minimum spanning trees
Shortest Paths and Minimum Spanning Trees
Minimum spanning trees
1.3 Modeling with exponentially many constr.
Minimum spanning trees
Spanning Tree Algorithms
Minimum Spanning Trees
The travelling salesman problem
Minimum Spanning Trees
Minimum Spanning Trees (MSTs)
The travelling salesman problem
Prim’s algorithm for minimum spanning trees
Vehicle Routing John H. Vande Vate Fall,
Jan 2009.
Presentation transcript:

The travelling salesman problem Finding an upper bound using minimum spanning trees Find a minimum spanning tree using Prim’s algorithm or Kruskal’s algorithm. An upper bound to the travelling salesman problem can be found by doubling the length of the minimum spanning tree. A tour can be found by travelling along each arc of the minimum spanning tree in both directions. The upper bound can usually be reduced by using shortcuts.

The travelling salesman problem Example Finding an upper bound using minimum spanning trees First, you need to find a minimum spanning tree using Prim’s or Kruskal’s algorithm. A B C D E

The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E Using Prim’s algorithm, starting from vertex A: E can be joined to the tree at either A or B, so there are two different minimum spanning trees.

The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E The length of the minimum spanning tree is = 12. A tour (starting and ending at the same vertex and visiting every vertex) can be found by travelling along the each arc of the minimum spanning tree twice, once in each direction.

The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E So an upper bound for the minimum tour length is 2 × 12 = 24.

The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E The upper bound can usually be reduced by using shortcuts in the tour found from the minimum spanning tree. Using the first minimum spanning tree, the route CBADAE can be replaced by CDE. This gives a tour length of =

The upper bound can usually be reduced by using shortcuts in the tour found from the minimum spanning tree. The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E Using the second minimum spanning tree, the route CBEBAD can be replaced by CED. This gives a tour length of =

The travelling salesman problem Example Finding an upper bound using minimum spanning trees A B C D E A B C D E The lowest upper bound that we have found using shortcuts is 19. This is by using the tour DABCED.