Excursions in Modern Mathematics, 7e: 6.3 - 2Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.

Slides:



Advertisements
Similar presentations
Shortest Paths Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 9.6 Based on slides from Chuck Allison, Michael T.
Advertisements

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.
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
1 Chapter 15.3 Hamilton Paths and Hamilton Circuits Objectives 1.Understand the definitions of Hamilton paths & Hamilton circuits. 2.Find the number of.
Excursions in Modern Mathematics(Tannenbaum) and Thinking Mathematically (Blitzer)
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)
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Math 308 Discrete Mathematics Discrete Mathematics deals with “Separated” or discrete sets of objects (rather than continuous sets) Processes with a sequence.
Nyhoff, ADTs, Data Structures and Problem Solving with C++, Second Edition, © 2005 Pearson Education, Inc. All rights reserved Graphs.
Math443/543 Mathematical Modeling and Optimization
Homework collection Read Pages 175 – 184 Page 188: 21 – 26, 29 – 36, 41 – 44, 47 – 49, 51, 52, 59, 62, 63.
The Mathematics of Touring
§ Algorithms, Algorithms, Algorithms Recall that an algorithm is a set of procedures or rules that, when followed, lead to a ‘solution’ to.
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.
§ Hamiltonian Circuits and Paths; Complete Graphs A sample-return mission sent to discover signs of microbial life on Mars is scheduled to be launched.
Traveling-Salesman Problems
The Mathematics of Networks
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
Ch. 11: Optimization and Search Stephen Marsland, Machine Learning: An Algorithmic Perspective. CRC 2009 some slides from Stephen Marsland, some images.
GRAPH Learning Outcomes Students should be able to:
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
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.
IT 60101: Lecture #201 Foundation of Computing Systems Lecture 20 Classic Optimization Problems.
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.
The Traveling-Salesman Problem. Born August 4, 1805 in Dublin, Ireland Died September 2, 1865 in Dublin, Ireland Made many contributions to the Physics.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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.
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.
5 The Mathematics of Getting Around
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.3 Hamilton Paths, and Hamilton Circuits.
Chapter 2: Business Efficiency Lesson Plan Business Efficiency  Visiting Vertices-Graph Theory Problem Hamiltonian Circuits  Vacation Planning Problem.
This opportunity is funded by the United States Department of Education. Award # WEEK 2 – 6/17/13 – 6/21/13 INTRODUCTION TO OPTIMIZATION.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
6.1 Hamilton Circuits and Hamilton Path
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
Graph Theory Hamilton Paths Hamilton Circuits 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.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
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.
1 Euler and Hamilton paths Jorge A. Cobb The University of Texas at Dallas.
Mathematical modeling To describe or represent a real-world situation quantitatively, in mathematical language.
Exhaustive search Exhaustive search is simply a brute- force approach to combinatorial problems. It suggests generating each and every element of the problem.
Hamilton Paths and Hamilton Circuits
Excursions in Modern Mathematics Sixth Edition
Weighted Graphs and traveling Salesperson problem
6 The Mathematics of Touring
Chapter 2: Business Efficiency Lesson Plan
Chapter 2: Business Efficiency Lesson Plan
TransCAD Vehicle Routing 2018/11/29.
Chapter 2: Business Efficiency Business Efficiency
6.1 Hamilton Circuits and Hamilton Path
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
CSC 380: Design and Analysis of Algorithms
Presentation transcript:

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits 6.2Complete Graphs? 6.3 Traveling Salesman Problems 6.4Simple Strategies for Solving TSPs 6.5The Brute-Force and Nearest-Neighbor Algorithms 6.6Approximate Algorithms 6.7The Repetitive Nearest-Neighbor Algorithm 6.8The Cheapest-Link Algorithm

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The “traveling salesman” is a convenient metaphor for many different real-life applications. The next few examples illustrate a few of the many possible settings for a “traveling salesman” problem, starting, of course, with the traveling salesman’s “traveling salesman” problem. Traveling Salesman Problems

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Meet Willy, the traveling salesman. Willy has customers in five cities, which for the sake of brevity we will call A, B, C, D, and E. Willy needs to schedule a sales trip that will start and end at A (that’s Willy’s hometown) and goes to each of the other four cities once. We will call the trip “Willy’s sales tour.” Other than starting and ending at A, there are no restrictions as to the sequence in which Willy’s sales tour visits the other four cities. Example 6.4A Tour of Five Cities

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph shows the cost of a one-way airline ticket between each pair of cities. Like most people, Willy hates to Example 6.4A Tour of Five Cities waste money. Thus, among the many possibilities for his sales tour, Willy wants to find the optimal (cheapest) one. How? We will return to this question soon.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. It is the year An expedition to explore the outer planetary moons in our solar system is about to be launched from planet Earth. The expedition is scheduled to visit Callisto, Ganymede, Io, Mimas, and Titan (the first three are moons of Jupiter; the last two, of Saturn), collect rock samples at each, and then return to Earth with the loot. The next slide shows the mission time (in years) between any two moons. An important goal of the mission planners is to complete the mission in the least amount of time. Example 6.5Touring the Outer Moons

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. What is the optimal (shortest) tour of the outer moons? Example 6.5Touring the Outer Moons

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The figure shows seven locations on Mars where NASA scientists believe there is a good chance of finding evidence of life. Example 6.6Roving the Red Planet

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Imagine that you are in charge of planning a sample-return mission. First, you must land an unmanned rover in the Ares Vallis (A). Then you must direct the rover to travel to each site and collect and analyze soil samples. Finally, you must instruct the rover to return to the Ares Vallis landing site, where a return rocket will bring the best samples back to Earth. A Mars tour like this will take several years and cost several billion dollars, so good planning is critical. Example 6.6Roving the Red Planet

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Here are the estimated distances (in miles) that a rover would have to travel to get from one Martian site to another. What is the optimal (shortest) tour for the Mars rover? Example 6.6Roving the Red Planet

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In each case the problem is to find a tour of the sites (i.e., a trip that starts and ends at a designated site and visits each of the other sites once) and has the property of being optimal (i.e., has the least total cost). Any problem that shares these common elements (a traveler, a set of sites, a cost function for travel between pairs of sites, a need to tour all the sites, and a desire to minimize the total cost of the tour) is known as a traveling salesman problem, or TSP. Traveling Salesman Examples

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. A school bus (the traveler) picks up children in the morning and drops them off at the end of the day at designated stops (the sites). On a typical school bus route there may be 20 to 30 such stops. With school buses, total time on the bus is always the most important variable (students have to get to school on time), and there is a known time of travel (the cost) between any two bus stops. Since children must be picked up at every bus stop, a tour of all the sites (starting and ending at the school) is required. Since the bus repeats its route every day during the school year, finding an optimal tour is crucial. Routing School Buses

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Package delivery companies such as UPS and FedEx deal with TSPs on a daily basis. Each truck is a traveler that must deliver packages to a specific list of delivery destinations (the sites). The travel time between any two delivery sites (the cost) is known or can be estimated. Each day the truck must deliver to all the sites on its list (that’s why sometimes you see a UPS truck delivering at 8 P.M.), so a tour is an implied part of the requirements. Since one can assume that the driver would rather be home than out delivering packages, an optimal tour is a highly desirable goal. Delivering Packages

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In the process of fabricating integrated-circuit boards, tens of thousands of tiny holes (the sites) must be drilled in each board. This is done by using a stationary laser beam and moving the board (the traveler). To do this efficiently, the order in which the holes are drilled should be such that the entire drilling sequence (the tour) is completed in the least amount of time (optimal cost). This makes for a very high tech TSP. Fabricating Circuit Boards

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. On a typical Saturday morning, an average Joe or Jane (the traveler) sets out to run a bunch of errands around town, visiting various sites (grocery store, hair salon, bakery, post office). When gas was cheap, time used to be the key cost variable, but with the cost of gas these days, people are more likely to be looking for the tour that minimizes the total distance traveled. Fabricating Circuit Boards

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Every TSP can be modeled by a weighted graph, that is, a graph such that there is a number associated with each edge (called the weight of the edge). The beauty of this approach is that the model always has the same structure: The vertices of the graph are the sites of the TSP, and there is an edge between X and Y if there is a direct link for the traveler to travel from site X to site Y. Moreover, the weight of the edge XY is the cost of travel between X and Y. Modeling a TSP

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In this setting a tour is a Hamilton circuit of the graph, and an optimal tour is the Hamilton circuit of least total weight. In all the applications and examples we will be considering in this chapter, we will make the assumption that there is an edge connecting every pair of sites, which implies that the underlying graph model is always a complete weighted graph. The following is a summary of the preceding observations. Modeling a TSP

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ Sites  vertices of the graph. ■ Costs  weights of the edges. ■ Tour  Hamilton circuit. ■ Optimal tour  Hamilton circuit of least total cost GRAPH MODEL OF A TRAVELING SALESMAN PROBLEM