Excursions in Modern Mathematics, 7e: 5.7 - 2Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.

Slides:



Advertisements
Similar presentations
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
Advertisements

E ULERIZING G RAPHS Notes 25 - Section 5.7. E SSENTIAL L EARNINGS Students will understand and be able to use Eulerization to find optimal exhaustive.
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.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
Homework collection Thursday 3/29 Read Pages 160 – 174 Page 185: 1, 3, 6, 7, 8, 9, 12 a-f, 15 – 20.
Eulerizing Graph Ch 5.
The Mathematics of Networks
Euler and Hamilton Paths
Euler Circuit Chapter 5. Fleury’s Algorithm Euler’s theorems are very useful to find if a graph has an Euler circuit or an Euler path when the graph is.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
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. 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, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
Euler Paths & Euler Circuits
5.7 Eulerizing Graphs. Euler circuit and Euler path do not always exist. There are many graphs (in real life) that have more than 2 odd vertices. Instead.
The Mathematics of Getting Around
Which of these can be drawn without taking your pencil off the paper and without going over the same line twice? If we can find a path that goes over all.
There is a Postman who delivers mail to a certain neighborhood of streets. The postman is unwilling to walk far so he wants to find the shortest route.
Spring 2015 Mathematics in Management Science Chinese Postman Problem What is CPP? CPP & ECs & EPs Fleury’s Algorithm Eulerization.
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.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
5 The Mathematics of Getting Around
5.4 Graph Models (part I – simple graphs). Graph is the tool for describing real-life situation. The process of using mathematical concept to solve real-life.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Section 4.1, Slide 1 4 Graph Theory (Networks) The Mathematics of Relationships 4.
Aim: What is an Euler Path and Circuit?
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. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Chapter 1: Urban Services Lesson Plan
Mathematics in Management Science
CIRCUITS, PATHS, AND SCHEDULES Euler and Königsberg.
EXCURSIONS IN MODERN MATHEMATICS SIXTH EDITION Peter Tannenbaum 1.
AND.
Associated Matrices of Vertex Edge Graphs Euler Paths and Circuits Block Days April 30, May 1 and May
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.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Lecture 52 Section 11.2 Wed, Apr 26, 2006
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
Aim: Graph Theory – Paths & Circuits Course: Math Literacy Do Now: Aim: What are Circuits and Paths? Can you draw this figure without retracing any of.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Graph Theory Two Applications D.N. Seppala-Holtzman St. Joseph ’ s College.
EULER PATHS & CHINESE POSTMAN SOL: DM.2 CLASSWORK WORKSHEET HOMEWORK (DAY 59) WORKSHEET.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Çizge Algoritmaları.
Chapter 2: Business Efficiency Lesson Plan
Discrete Math: Hamilton Circuits
5 The Mathematics of Getting Around
Chapter 2: Business Efficiency Business Efficiency
Introduction to Vertex-Edge graphs (2 days)
Chapter 1: Urban Services Lesson Plan
Excursions in Modern Mathematics Sixth Edition
5 The Mathematics of Getting Around
5 The Mathematics of Getting Around
Chapter 1: Urban Services Management Science
Chapter 1: Urban Services Lesson Plan
A Survey of Mathematics with Applications
5 The Mathematics of Getting Around
7 The Mathematics of Networks
5 The Mathematics of Getting Around
5 The Mathematics of Getting Around
Presentation transcript:

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What Is a Graph? 5.3 Graph Concepts and Terminology 5.4Graph Models 5.5Euler’s Theorems 5.6Fleury’s Algorithm 5.7Eulerizing Graphs

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In this section we will finally answer some of the routing problems raised at the beginning of the chapter. Their common thread is the need to find optimal exhaustive routes in a connected graph.How is this done? Let’s first refresh our memories of what this means. We will use the term exhaustive route to describe a route that travels along the edges of a graph and passes through each and every edge of the graph at least once. Exhaustive Routes

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Such a route could be an Euler circuit (if the graph has no odd vertices) or an Euler path (if the graph has two odd vertices), but for graphs with more than two odd vertices, an exhaustive route will have to recross some of the edges. This follows from Euler’s theorems. We are interested in finding exhaustive routes that recross the fewest number of edges. Why? Exhaustive Routes

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In many applications, each edge represents a unit of cost. The more edges along the route, the higher the cost of the route. In an exhaustive route, the first pass along an edge is a necessary expense, part of the requirements of the job. Any additional pass along that edge represents a wasted expense (these extra passes are often described as deadhead travel). Thus, an exhaustive route that minimizes cost (optimal exhaustive route) is one with the fewest number of deadhead edges. Exhaustive Routes

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. We are now going to see how the theory developed in the preceding sections will help us design optimal exhaustive routes for graphs with many (more than two) odd vertices. The key idea is that we can turn odd vertices into even vertices by adding “duplicate” edges in strategic places. This process is called eulerizing the graph. Eulerizing Graphs

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph represents a 3 block by 3 block street grid consisting of 24 blocks. How can we find an optimal route that covers all the Example 5.22Covering a 3 by 3 Street Grid edges of the graph and ends back at the starting vertex? Our first step is to identify the odd vertices. This graph has eight odd vertices (B, C, E, F, H, I, K, and L), shown in red.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. When we add a duplicate copy of edges BC, EF, HI, and KL, we get this graph. This is a eulerized version of the original graph–its Example 5.22Covering a 3 by 3 Street Grid vertices are all even, so we know it has an Euler circuit. Moreover, it’s clear we couldn’t have done this with fewer than four duplicate edges

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows one of the many possible Euler circuits, with the edges numbered in the order they are traveled. The Euler circuit represents an exhaustive closed route along Example 5.22Covering a 3 by 3 Street Grid the edges of the original graph, with the four duplicate edges (BC, EF, HI, and KL) indicating the deadhead blocks where a second pass is required.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The total length of this route is 28 blocks (24 blocks in the grid plus 4 deadhead blocks), and this route is optimal–no matter how clever you are or how hard you try, if you Example 5.22Covering a 3 by 3 Street Grid want to travel along each block of the grid and start and end at the same vertex, you will have to pass through a minimum of 28 blocks!

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph in the figure represents a 4 block by 4 block street grid consisting of 40 blocks. The 12 odd vertices in the graph are shown in Example 5.23Covering a 4 by 4 Street Grid red. We want to eulerize the graph by adding the least number of edges.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows how not to do it! This graph violates the cardinal rule of eulerization–you can only duplicate edges that are part of Example 5.23Covering a 4 by 4 Street Grid the original graph. Edges DF and NL are new edges, not duplicates, so this figure is out!

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows a legal eulerization, but it is not optimal, as it is obvious that we could have accomplished the same thing by Example 5.23Covering a 4 by 4 Street Grid adding fewer duplicate edges.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This figure shows an optimal eulerization of the original graph–one of several possible. Once we have an optimal eulerization, we have the blueprint for an optimal exhaustive Example 5.23Covering a 4 by 4 Street Grid closed route on the original graph. Regardless of the specific details, we now know that the route will travel along 48 blocks–the 40 original blocks in the grid plus 8 deadhead blocks.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. In some situations we need to find an exhaustive route, but there is no requirement that it be closed–the route may start and end at different points. In these cases we want to leave two odd vertices on the graph unchanged and change the other odd vertices into even vertices by duplicating appropriate edges of the graph. Open Route

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This process is called a semi-eulerization of the graph. When we strategically choose how to do this so that the number of duplicate edges is as small as possible, we can obtain an optimal exhaustive open route. In this case the route will start at one of the two odd vertices and end at the other one. Semi-eulerization

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Let’s consider once again the 4 by 4 street grid. Imagine that your job is to design a good route for a Fourth of July parade that must pass through each of the 40 blocks of the street grid. The key is that when routing a Example 5.24Parade Route parade, you do not want the parade to start and end in the same place. In fact, for traffic control it is usually desirable to keep the starting and ending points of a parade as far from each other as possible.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The fire department has added one additional requirement to the parade route: The parade has to start at B. Your task, then, is to find a semi-eulerization of the graph that leaves B and one more odd vertex unchanged Example 5.24Parade Route (preferably a vertex far from B) and that changes all the other odd vertices into even vertices.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This semi-eulerization is optimal because it required only six duplicate edges, and this is as good as one can do. The optimal parade route could be found by finding an Euler path. Example 5.24Parade Route The only bad thing about this route is that the parade would end at P, a point a bit too close to the starting point, and the traffic control people are unhappy about that.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. A different semi-eulerization is shown here. The parade route in this case would not be optimal (it has seven deadhead blocks), Example 5.24Parade Route but because it ends at K, it better satisfies the requirement that the starting and ending points be far apart. The traffic control folks are happy now.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This is the conclusion of the routing problem first introduced in Example 5.4. A photographer needs to take photos of each of the 11 bridges in Madison County. Example 5.25The Bridges of Madison County: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. A graph model of the layout (vertices represent land masses, edges represent bridges) is shown. Example 5.25The Bridges of Madison County: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph has four odd vertices (R, L, B, and D), so some bridges are definitely going to have to be recrossed. Example 5.25The Bridges of Madison County: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. How many and which ones depends on the other parameters of the problem. (Recall that it costs $25 in toll fees to cross a bridge, so the baseline cost for crossing the 11 bridges is $275. Each recrossing is at an additional cost of $25.) The following are a few of the possible scenarios one might have to consider. Each one requires a different eulerization and will result in a different route. Example 5.25The Bridges of Madison County: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The photographer needs to start and end his trip in the same place. This scenario requires an optimal eulerization of the graph. Example 5.25The Bridges of Madison County: Part 2 This is not hard to do, and an optimal route can be found for a cost of $325.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The photographer has the freedom to choose any starting and ending points for his trip. In this case we can find an optimal semi- Example 5.25The Bridges of Madison County: Part 2 eulerization of the graph, requiring only one duplicate edge. Now an optimal route is possible at a cost of $300.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The photographer has to start his trip at B and end the trip at L. In this case we must find a semi-eulerization of the graph where B and L remain as odd vertices and R and D Example 5.25The Bridges of Madison County: Part 2 become even vertices. It is possible to do this with just two duplicate edges and thus find an optimal route that will cost $325.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This example brings us full circle to the first couple of examples of this chapter. In Example 5.1 we raised the question of finding Example 5.26The Exhausted Patrol and the Grateful No Deadhead an optimal exhaustive closed route for a security guard hired to patrol the streets of the Sunnyside subdivision and we created the graph model for this problem.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph has 18 odd vertices, shown in red. We now know that the name of the game is to find an optimal eulerization of this graph. Example 5.26The Exhausted Patrol and the Grateful No Deadhead In this case the odd vertices pair up beautifully, and the optimal eulerization requires only nine duplicate edges, shown here.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. All the answers to the security guards questions can now be answered: An optimal route will require nine deadhead blocks. Example 5.26The Exhausted Patrol and the Grateful No Deadhead The actual route can be found using trial and error or Fleury’s algorithm.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. A slightly different problem is the one facing the mail carrier delivering mail along the streets of the Sunnyside subdivision. Example 5.26The Exhausted Patrol and the Grateful No Deadhead Much to the mail carrier’s pleasant surprise, in the graph that models her situation all the vertices are even.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. This means that the optimal route is an Euler circuit, which can be found once again using Fleury’s algorithm (or trial and error if you Example 5.26The Exhausted Patrol and the Grateful No Deadhead prefer). Thanks to the lessons of this chapter, this mail carrier will not have to deadhead, for which she is extremely grateful!