5 The Mathematics of Getting Around

Slides:



Advertisements
Similar presentations
Graph-02.
Advertisements

The 7 Bridges of Konigsberg A puzzle in need of solving.
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.
AMDM UNIT 7: Networks and Graphs
BY: MIKE BASHAM, Math in Scheduling. The Bridges of Konigsberg.
Euler Circuits and Paths
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
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.
4/17/2017 Section 8.5 Euler & Hamilton Paths ch8.5.
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.
MTH118 Sanchita Mal-Sarkar. Routing Problems The fundamental questions: Is there any proper route for the particular problem? If there are many possible.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
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.
Discrete Math Round, Round, Get Around… I Get Around Mathematics of Getting Around.
Can you find a way to cross every bridge only once?
GRAPH Learning Outcomes Students should be able to:
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Graph Theory Topics to be covered:
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
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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.
Lecture 14: Graph Theory I Discrete Mathematical Structures: Theory and Applications.
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. 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.
Vertex-Edge Graphs Euler Paths Euler Circuits. The Seven Bridges of Konigsberg.
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.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.2 Euler Paths, and Euler Circuits.
Chapter 6: Graphs 6.1 Euler Circuits
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Graph Theory Euler Paths and Euler Circuits. Euler Paths & Circuits Euler Paths and Euler Circuits (Euler is pronounced the same as Oiler) An Euler path.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
STARTER: CAN YOU FIND A WAY OF CROSSING ALL THE BRIDGES EXACTLY ONCE? Here’s what this question would look like drawn as a graph.
MAT 110 Workshop Created by Michael Brown, Haden McDonald & Myra Bentley for use by the Center for Academic Support.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Çizge Algoritmaları.
Euler Paths and Circuits
Eulerian tours Miles Jones MTThF 8:30-9:50am CSE 4140 August 15, 2016.
Konigsberg’s Seven Bridges
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Euler Circuits and Paths
Euler Paths & Euler Circuits
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
5 The Mathematics of Getting Around
Excursions in Modern Mathematics Sixth Edition
5 The Mathematics of Getting Around
Konigsberg- in days past.
Graph Theory What is a graph?.
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Euler Paths and Euler Circuits
Applied Combinatorics, 4th Ed. Alan Tucker
CHAPTER 15 Graph Theory.
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
A Survey of Mathematics with Applications
5 The Mathematics of Getting Around
5 The Mathematics of Getting Around
Presentation transcript:

5 The Mathematics of Getting Around 5.1 Euler Circuit Problems 5.2 What Is a Graph? 5.3 Graph Concepts and Terminology 5.4 Graph Models 5.5 Euler’s Theorems 5.6 Fleury’s Algorithm 5.7 Eulerizing Graphs

Euler’s Theroems In this section we are going to develop the basic theory that will allow us to determine if a graph has an Euler circuit, an Euler path, or neither. This is important because, as we saw in the previous section, what are Euler circuit or Euler path questions in theory are real-life routing questions in practice. The three theorems we are going to see next (all thanks to Euler) are surprisingly simple and yet tremendously useful.

EULER’S CIRCUIT THEOREM ■ If a graph is connected and every vertex is even, then it has an Euler circuit (at least one, usually more). ■ If a graph has any odd vertices, then it does not have an Euler circuit.

How to Use the Theorem Here is how we can use Euler’s circuit theorem. First we make sure the graph is connected. (If it isn’t, then no matter what else, an Euler circuit is impossible.) If the graph is connected, then we start checking the degrees of the vertices, one by one. As soon as we hit an odd vertex, we know that an Euler circuit is out of the question. If there are no odd vertices, then we know that the answer is yes–the graph does have an Euler circuit!

Illustration using the Theorem Figure 5-15 illustrates the three possible scenarios. The graph in Fig. 5-15(a) cannot have an Euler circuit for the simple reason that it is disconnected.

Illustration using the Theorem The graph in Fig. 5-15(b) is connected, but we can quickly spot odd vertices (C is one of them; there are others). This graph has no Euler circuits.

Illustration using the Theorem But the graph in Fig. 5-15(c) is connected and all the vertices are even. This graph does have Euler circuits.

Summary of the Theorem The basic idea behind Euler’s circuit theorem is that as we travel along an Euler circuit, every time we go through a vertex we use up two different edges at that vertex–one to come in and one to go out. We can keep doing this as long as the vertices are even. A single odd vertex means that at some point we are going to come into it and not be able to get out.

EULER’S PATH THEOREM ■ If a graph is connected and has exactly two odd vertices, then it has an Euler path (at least one, usually more). Any such path must start at one of the odd vertices and end at the other one. ■ If a graph has more than two odd vertices, then it cannot have an Euler path.

Example 5.18 The Seven Bridges of Königsberg: Part 3 Back to the Königsberg bridges problem. In Example 5.15 we saw that the layout of the bridges in the old city can be modeled by the graph in Fig. 5-16(a). This graph has four odd vertices; thus, neither an Euler circuit nor an Euler path can exist.

Example 5.18 The Seven Bridges of Königsberg: Part 3 We now have an unequivocal answer to the puzzle: There is no possible way anyone can walk across all the bridges without having to recross some of them! How many bridges will need to be recrossed? It depends. If we want to start and end in the same place, we must recross at least two of the bridges.

Example 5.18 The Seven Bridges of Königsberg: Part 3 One of the many possible routes is shown in Fig. 5-16(b). In this route the bridge connecting L and D is crossed twice, and so is one of the two bridges connecting A and R.

Example 5.18 The Seven Bridges of Königsberg: Part 3 If we are allowed to start and end in different places, we can do it by recrossing just one of the bridges. One possible route starting at A, crossing bridge LD twice, and ending at R is shown in Fig.5-16(c).

Example 5.19 Child’s Play: Part 2 The graph in Fig. 5-17(a) is connected, and the vertices are all even. By Euler’s circuit theorem we know that the graph has an Euler circuit, which implies that the original line drawing has a closed unicursal tracing.

Example 5.19 Child’s Play: Part 2 The graph in Fig. 5-17(b) is connected and has exactly two odd vertices (C and D).By Euler’s path theorem,the graph has an Euler path (open unicursal tracing). Moreover, we now know that the path has to start at C and end at D, or vice versa.

Example 5.19 Child’s Play: Part 2 The graph in Fig. 5-17(c) has four odd vertices (A, B, C, and D), so it has neither an Euler path nor an Euler circuit.

Example 5.19 Child’s Play: Part 2 The full power of Euler’s theorems is best appreciated when the graphs get bigger. The graph in Fig. 5-17(d) is not extremely big, but we can no longer “eyeball” an Euler circuit or path.

Example 5.19 Child’s Play: Part 2 On the other hand, a quick check of the degrees of the vertices shows that K and I are odd vertices and all the rest are even. We are now in business–an open unicursal tracing is possible as long as we start it at K or I (and end it at the other one). Starting anyplace else will lead to a dead end. Good to know!

Euler’s Third Theorem Euler’s circuit theorem deals with graphs with zero odd vertices, whereas Euler’s Path Theorem deals with graphs with two or more odd vertices. The only scenario not covered by the two theorems is that of graphs with just one odd vertex. Euler’s third theorem rules out this possibility–a graph cannot have just one odd vertex. In fact, Euler’s third theorem says much more.

EULER’S SUM OF DEGREES THEOREM ■ The sum of the degrees of all the vertices of a graph equals twice the number of edges (and therefore is an even number). ■ A graph always has an even number of odd vertices.

Euler’s Sum of Degrees Theorem Euler’s sum of degrees theorem is based on the following basic observation: Take any edge–let’s call it XY. The edge contributes once to the degree of vertex X and once to the degree of vertex Y, so, in all, that edge makes a total contribution of 2 to the sum of the degrees. Thus, when the degrees of all the vertices of a graph are added, the total is twice the number of edges.

Euler’s Sum of Degrees Theorem Since the total sum is an even number, it is impossible to have just one odd vertex, or three odd vertices, or five odd vertices, and so on. To put it in a slightly different way, the odd vertices of a graph always come in twos. Table 5-1is a summary of Euler’s three theorems. It shows the relationship between the number of odd vertices in a connected graph G and the existence of Euler paths or Euler circuits.

Euler’s Sum of Degrees Theorem