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

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.
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.
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.
Eulerian Circuits. A Warm Up Problem Jenny & John were at a Math Circles event with three other couples. As people arrived, various handshakes took place.
GRAPH Learning Outcomes Students should be able to:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
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. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
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
The Mathematics of Getting Around
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
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.
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.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 14.1 Graphs, Paths, and Circuits.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
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.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics Sixth Edition
Konigsberg’s Seven Bridges
Can you draw this picture without lifting up your pen/pencil?
Euler Paths and Circuits
Euler Paths & Euler Circuits
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
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:

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 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 Theroems

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ 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. EULER’S CIRCUIT THEOREM

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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! How to Use the Theorem

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Figure 5-15 illustrates the three possible scenarios. The graph in Fig. 5-15(a) cannot Illustration using the Theorem have an Euler circuit for the simple reason that it is disconnected.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph in Fig. 5-15(b) is connected, but we can quickly spot odd vertices (C is one Illustration using the Theorem of them; there are others). This graph has no Euler circuits.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. But the graph in Fig. 5-15(c) is connected and all the vertices are even. This graph Illustration using the Theorem does have Euler circuits.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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. Summary of the Theorem

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ 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. EULER’S PATH THEOREM

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Back to the Königsberg bridges problem. In Example 5.15 we saw that the layout of the Example 5.18The Seven Bridges of Königsberg: Part 3 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.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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.18The Seven Bridges of Königsberg: Part 3

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. One of the many possible routes is shown in Example 5.18The Seven Bridges of Königsberg: Part 3 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.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. If we are allowed to start and end in different Example 5.18The Seven Bridges of Königsberg: Part 3 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).

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph in Fig. 5-17(a) is connected, and Example 5.19Child’s Play: Part 2 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.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph in Fig. 5-17(b) is connected and Example 5.19Child’s Play: Part 2 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.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The graph in Fig. 5-17(c) has four odd Example 5.19Child’s Play: Part 2 vertices (A, B, C, and D), so it has neither an Euler path nor an Euler circuit.

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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 Example 5.19Child’s Play: Part 2 now in business–an open unicursal tracing is possible as other one). Starting anyplace else will lead to a dead end. Good to know! long as we start it at K or I (and end it at the

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 Third Theorem

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. ■ 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Euler’s Sum of Degrees Theorem