The travelling salesman problem

Slides:



Advertisements
Similar presentations
Decision Maths Networks Kruskals Algorithm Wiltshire Networks A Network is a weighted graph, which just means there is a number associated with each.
Advertisements

Traveling Salesperson Problem
Networks Prim’s Algorithm
Discrete Maths Chapter 3: Minimum Connector Problems Lesson 1: Prim’s and Kruskal.
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.
Aims: To know the terms: tree, spanning tree, minimum spanning tree. To understand that a minimum spanning tree connects a network using the lowest possible.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
Graph Algorithms: Minimum Spanning Tree We are given a weighted, undirected graph G = (V, E), with weight function w:
Reduction Techniques Restriction Local Replacement Component Design Examples.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
and 6.855J The Capacity Scaling Algorithm.
CS 312: Algorithm Analysis
Problem Solving with Networks 18/08/2012 Jamie Sneddon
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
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.
O A BD T EC [2,O] 1 2,3 [4,0] [4,A] 4 [9,A] [7,B] [8,C] 5 [8,B] [8,E] 6 [13,D] [14,E] SHORTEST PATH – SERADA PARK UNDIRECTED GRAPH.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Integer Linear Programming Terms Pure integer programming mixed integer programming 0-1 integer programming LP relaxation of the IP Upper bound O.F. Lower.
Minimum Spanning Trees CS 146 Prof. Sin-Min Lee Regina Wang.
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)
The Travelling Salesperson Problem A salesperson needs to visit London, Nottingham, Manchester and Leeds, he lives in Birmingham. Find the shortest route.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Network Simplex Animations Network Simplex Animations.
Graphs Upon completion you will be able to:
Prims Algorithm for finding a minimum spanning tree
© M. Winter COSC/MATH 4P61 - Theory of Computation Minimum-weight Spanning Tree Weighted Graph Spanning.
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.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
15.082J and 6.855J and ESD.78J Network Simplex Animations.
Introduction Wireless Ad-Hoc Network  Set of transceivers communicating by radio.
Spanning Trees Dijkstra (Unit 10) SOL: DM.2 Classwork worksheet Homework (day 70) Worksheet Quiz next block.
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.
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.
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
Graphs Chapter 20.
CS1022 Computer Programming & Principles
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Hamiltonian Cycle and TSP
Hamiltonian Cycle and TSP
Agenda Lecture Content: Introduction to Graph Path and Cycle
Discrete Math 2 Weighted Graph Search Tree
CS120 Graphs.
Graph Algorithm.
Visualizing Prim’s MST Algorithm Used to Trace the Algorithm in Class
The Travelling Salesperson problem
Graph Theory.
D1 Discrete Mathematics
Richard Anderson Lecture 25 NP-Completeness
Shortest Path.
Branch and Bound.
Introduction Basic formulations Applications
Richard Anderson Lecture 28 Coping with NP-Completeness
Introduction Wireless Ad-Hoc Network
Section 2: Multiple choice
A path that uses every vertex of the graph exactly once.
Minimum spanning trees
Minimum spanning trees
Minimum spanning trees
The travelling salesman problem
Networks Kruskal’s Algorithm
and 6.855J Flow Decomposition
Backtracking and Branch-and-Bound
Networks Prim’s Algorithm
and 6.855J Topological Ordering
Presentation transcript:

The travelling salesman problem Finding a lower bound To find a lower bound for the weight of the minimum Hamiltonian cycle: Choose an arbitrary node. Delete that node and all its arcs. Find the length of the minimum connector for the remaining arcs. Add the weights of the two least weight arcs from the deleted node to the weight of the minimum connector.

The travelling salesman problem Finding a lower bound Example A B C D E 3 5 4 2 6 First, delete A and its arcs.

The travelling salesman problem Finding a lower bound Weight of minimum connector = 11 Example Lower bound = 11 + 2 + 3 = 16 3 B A 2 4 2 5 5 5 C 4 6 6 E D First, delete A and its arcs. Find the weight of the minimum connector for the remaining network. Add the two least weight arcs from A to give a lower bound.

The travelling salesman problem Finding a lower bound Example A B C D E 3 5 4 2 6 Now, delete B and its arcs.

The travelling salesman problem Finding a lower bound Weight of minimum connector = 11 Example Lower bound = 11 + 2 + 3 = 16 3 B A 2 4 2 5 5 5 C 4 6 6 E D Now, delete B and its arcs. Find the weight of the minimum connector for the remaining network. Add the two least weight arcs from B to give a lower bound.

The travelling salesman problem Finding a lower bound Example A B C D E 3 5 4 2 6 Now, delete C and its arcs.

The travelling salesman problem Finding a lower bound Weight of minimum connector = 10 Example Lower bound = 10 + 2 + 4 = 16 3 B A 2 4 2 5 5 5 C 4 6 6 E D Now, delete C and its arcs. Find the weight of the minimum connector for the remaining network. Add the two least weight arcs from C to give a lower bound.

The travelling salesman problem Finding a lower bound Example A B C D E 3 5 4 2 6 Now, delete D and its arcs.

The travelling salesman problem Finding a lower bound Weight of minimum connector = 10 Example Lower bound = 10 + 2 + 4 = 16 3 B A 2 4 2 5 5 5 C 4 6 6 E D Now, delete D and its arcs. Find the weight of the minimum connector for the remaining network. Add the two least weight arcs from D to give a lower bound.

The travelling salesman problem Finding a lower bound Example A B C D E 3 5 4 2 6 Finally, delete E and its arcs.

The travelling salesman problem Finding a lower bound Weight of minimum connector = 7 Example Lower bound = 7 + 5 + 5 = 17 3 B A 2 4 2 5 5 5 C 4 6 6 E D Finally, delete E and its arcs. Find the weight of the minimum connector for the remaining network. Add the two least weight arcs from E to give a lower bound.

The travelling salesperson problem Finding a lower bound Vertex deleted Lower bound A 16 B C D E 17 The greatest lower bound is 17, by deleting vertex E. So the lower bound for the travelling salesperson problem is 17.