Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem.

Slides:



Advertisements
Similar presentations
Copyright © 2005 Pearson Education, Inc. Slide 13-1.
Advertisements

1. Find the cost of each of the following using the Nearest Neighbor Algorithm. a)Start at Vertex M.
Limitation of Computation Power – P, NP, and NP-complete
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
Chapter 7 Graph Theory 7.1 Modeling with graphs and finding Euler circuits. Learning Objectives: Know how to use graphs as models and how to determine.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
1 Chapter 15.3 Hamilton Paths and Hamilton Circuits Objectives 1.Understand the definitions of Hamilton paths & Hamilton circuits. 2.Find the number of.
Chapter 4 sec. 2.  A famous and difficult problem to solve in graph theory.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
Rohit Ray ESE 251. The goal of the Traveling Salesman Problem (TSP) is to find the most economical way to tour of a select number of “cities” with the.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
A traveling salesman has customers in 5 cities which we will call A, B, C, D, and E. The salesman needs to travel to all 5 cities with his trip starting.
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.
The Travelling Salesman Problem (TSP)
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Slide Copyright © 2009 Pearson Education, Inc. AND Active Learning Lecture Slides For use with Classroom Response Systems Chapter 14 Graph Theory.
Graph Theory Hamilton Paths and Hamilton Circuits.
UNIT 3 THINKING MATHEMATICALLY BY BLITZER Hamilton Paths and Hamilton Circuits.
Ch. 15: Graph Theory Some practical uses Degree of separation- Hollywood, acquaintance, collaboration Travel between cities Konigsberg bridge Shortest.
Combinatorial Optimization Chapter 1. Problems and Algorithms  1.1 Two Problems (representative problems)  The Traveling Salesman Problem 47 drilling.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
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.
© 2010 Pearson Prentice Hall. All rights reserved. 1 §15.3, Hamilton Paths and Circuits.
Euler and Hamilton Paths. Euler Paths and Circuits The Seven bridges of Königsberg a b c d A B C D.
Spring 2015 Mathematics in Management Science Traveling Salesman Problem Approximate solutions for TSP NNA, RNN, SEA Greedy Heuristic Algorithms.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.2, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.3 Hamilton Paths, and Hamilton Circuits.
Page 714 #1-10 ANSWERS Lesson Reflection for Chapter 14 Section 7.
Beauty and Joy of Computing Limits of Computing Ivona Bezáková CS10: UC Berkeley, April 14, 2014 (Slides inspired by Dan Garcia’s slides.)
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.1, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
Graph Theory Hamilton Paths Hamilton Circuits and.
AND.
Euler Paths and Circuits. The original problem A resident of Konigsberg wrote to Leonard Euler saying that a popular pastime for couples was to try.
By: Christophe Dufour Chrishon Adams Mischael Joseph.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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.
Fleury's Algorithm Euler Circuit Algorithm
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
Traveling Salesman Problem DongChul Kim HwangRyol Ryu.
Hamiltonian Circuits and Paths
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Limitation of Computation Power – P, NP, and NP-complete
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
EECS 203 Lecture 19 Graphs.
SULE SOLMAZ BEYZA AYTAR
HAMILTONIAN CIRCUIT ALGORITHMS
1 The Travelling Salesman Problem (TSP) H.P. Williams Professor of Operational Research London School of Economics.
Traveling Salesman Problem
Section 14.3 Hamilton Paths, and Hamilton Circuits
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory.
Genome Assembly.
Foundations of Discrete Mathematics
A path that uses every vertex of the graph exactly once.
The travelling salesman problem
Nearest Neighbor Repetitive Nearest Neighbor (Unit 10) SOL: DM.2
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Hamilton Paths and Hamilton Circuits
Traveling Salesman Problems Nearest Neighbor Method
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Slide 13-1 Unit 13B The Traveling Salesman Problem

Copyright © 2008 Pearson Education, Inc. Slide 13-2 Hamiltonian Circuits A Hamiltonian circuit is a path that passes through every vertex of a network exactly once and returns to the starting vertex. The paths indicated by arrows in (a) and (b) are Hamiltonian circuits, while (c) has no Hamiltonian circuits. 13-B

Copyright © 2008 Pearson Education, Inc. Slide 13-3 The Traveling Salesman Problem 13-B Which path is a Hamilton circuit? a) b) c) d) A B C D

Copyright © 2008 Pearson Education, Inc. Slide 13-4 The Traveling Salesman Problem 13-B Which path is a Hamilton circuit? a) b) c) d) A B C D

Copyright © 2008 Pearson Education, Inc. Slide 13-5 Hamiltonian Circuits in Complete Networks The number of Hamiltonian Circuits in a complete network of order n is. 13-B The twelve Hamiltonian circuits for a complete network of order 5.

Calculating the Number of Hamiltonian Circuits  Network of order 3:  Network of order 4:  Network of order 5:  Network of order 6:  Network of order 7: Copyright © 2008 Pearson Education, Inc. Slide 13-6

Copyright © 2008 Pearson Education, Inc. Slide 13-7 The Traveling Salesman Problem 13-B How many Hamilton circuits are possible in a complete network of order 8? a) 7!/2 b) 8!/2 c) 8! d) 9!/2

Copyright © 2008 Pearson Education, Inc. Slide 13-8 The Traveling Salesman Problem 13-B How many Hamilton circuits are possible in a complete network of order 8? a) 7!/2 b) 8!/2 c) 8! d) 9!/2

Copyright © 2008 Pearson Education, Inc. Slide 13-9 Solving Traveling Salesman Problems The solution to a traveling salesman problem is the shortest path (smallest total of the lengths) that starts and ends in the same place and visits each city once. 13-B

Copyright © 2008 Pearson Education, Inc. Slide Five National Parks – Planning a Vacation 13-B

Copyright © 2008 Pearson Education, Inc. Slide Hamiltonian Circuits and Five National Parks 13-B Map of the five national parks and a complete network representing the parks.

Copyright © 2008 Pearson Education, Inc. Slide The circuit in (a) has a total length of 664 miles, while (b) has a total length of 499 miles. Hamiltonian Circuits and Five National Parks

Copyright © 2008 Pearson Education, Inc. Slide The Nearest Neighbor Method 13-B Beginning at any vertex, travel to the nearest vertex that has not yet been visited. Continue this process of visiting “nearest neighbors” until the circuit is complete. The solution to the national park network using the nearest neighbor method starting at Bryce has a total length of 515 miles.

Copyright © 2008 Pearson Education, Inc. Slide The Traveling Salesman Problem 13-B Starting at vertex A, which vertex would be the next one visited using the nearest neighbor algorithm? a) It doesn’t matter b) B c) C d) D AB CD

Copyright © 2008 Pearson Education, Inc. Slide The Traveling Salesman Problem 13-B Starting at vertex A, which vertex would be the next one visited using the nearest neighbor algorithm? a) It doesn’t matter b) B c) C d)D Continue with the nearest Neighbor Algorithm AB CD

Copyright © 2008 Pearson Education, Inc. Slide The Nearest Neighbor Method and the Traveling Salesman Problem 13-B Courtesy of Bill Cook, David Applegate and Robert Bixby, Rice University and Vasek Chvatal, Rutgers University. The near-optimal solution to finding the shortest path among 13,509 cities with populations over 500.