Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.

Slides:



Advertisements
Similar presentations
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 13 Mathematics and Business.
Advertisements

Chapter 8 Topics in Graph Theory
Introduction to Graphs
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.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
Graphs. Graph A “graph” is a collection of “nodes” that are connected to each other Graph Theory: This novel way of solving problems was invented by a.
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.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Graphs and Euler cycles Let Maths take you Further…
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved.
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.
The Bridge Obsession Problem By Vamshi Krishna Vedam.
Copyright © Cengage Learning. All rights reserved.
Can you find a way to cross every bridge only once?
Slide 14-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
1 Excursions in Modern Mathematics Sixth Edition Peter Tannenbaum.
Graph Theory Topics to be covered:
Euler Paths & Euler Circuits
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
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.
Graphs, Paths & Circuits
Chapter 14 Section 4 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Aim: What is an Euler Path and Circuit?
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 15 Graph Theory.
Lecture 10: Graph-Path-Circuit
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.
1.Quiz 5 due tomorrow afternoon in E309 from 1pm to 4pm. 2.Homework grades will be based on ten graded homework assignments (dropping the lowest one).
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
© 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.
Chapter 6: Graphs 6.1 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.
Walks, Paths and Circuits. A graph is a connected graph if it is possible to travel from one vertex to any other vertex by moving along successive edges.
M Clements Formal Network Theory. Introduction Practical problem – The Seven Bridges of Königsberg Network graphs Nodes & edges Degrees Rules/ axioms.
1) Find and label the degree of each vertex in the graph.
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.
Fleury's Algorithm Euler Circuit Algorithm
Copyright © 2009 Pearson Education, Inc. Chapter 14 Section 1 – Slide Graph Theory Graphs, Paths & Circuits.
Excursions in Modern Mathematics Sixth Edition
Çizge Algoritmaları.
Euler and Hamiltonian Graphs
Konigsberg’s Seven Bridges
Euler Circuits and Paths
Konigsberg- in days past.
Graph Theory What is a graph?.
Euler Circuits and Paths
Graphs, Paths & Circuits
5 The Mathematics of Getting Around
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Euler and Hamilton Paths
Section 14.1 Graphs, Paths, and Circuits
CHAPTER 15 Graph Theory.
Graphs, Paths, and Circuits
Warm Up – 3/19 - Wednesday Give the vertex set. Give the edge set.
A Survey of Mathematics with Applications
Presentation transcript:

Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 15: Graph Theory 15.1 Basic Concepts 15.2 Euler Circuits 15.3 Hamilton Circuits and Algorithms 15.4 Trees and Minimum Spanning Trees © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 15-2 Euler Circuits © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Euler Circuits Konigsberg’s Bridge Problem Fleury’s Algorithm .. © 2008 Pearson Addison-Wesley. All rights reserved

Konigsberg Bridge Problem .. In the early 1700s, the city of Konigsberg was the capital of East Prussia. The river Pregel ran through the city in two branches with an island between the branches (see figure on next slide). There were seven bridges joining various parts of the city. The following problem was well known. Is it possible for a citizen of Konigsberg to take a stroll through the city, crossing each bridge exactly once, and beginning and ending at the same place? .. .. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Map of Konigsberg © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Graph of the Map The vertices represent landmasses. The edges represent the bridges C g a b f B A c d e D © 2008 Pearson Addison-Wesley. All rights reserved

Euler Path and Euler Circuit An Euler path in a graph is a path that uses every edge of the graph exactly once. An Euler circuit in a graph is a circuit that uses every edge of the graph exactly once. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Recognizing Euler Circuits Consider the graph below. a) Is an Euler circuit? b) Does the graph have an Euler circuit? E F D A C B © 2008 Pearson Addison-Wesley. All rights reserved

Example: Recognizing Euler Circuits Solution a) No, it does not use edge BD. b) Yes, the circuit is an Euler circuit. E F D A C B © 2008 Pearson Addison-Wesley. All rights reserved

Euler and the Bridge Problem Leonhard Euler published a paper in 1736 that explained why it is impossible to find a walk of the required kind, and he provided a simple way for deciding whether a given graph has an Euler circuit. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Euler’s Theorem Suppose we have a connected graph. 1. If the graph has an Euler circuit, then each vertex of the graph has even degree. 2. If each vertex of the graph has even degree, then the graph has an Euler circuit. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Using Euler’s Theorem Does the graph below have an Euler circuit? C B F H A D G E Solution Yes, because the graph is connected and each vertex has even degree. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Cut Edge A cut edge in a graph is an edge whose removal disconnects a component of the graph. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Example: Cut Edges Identify the cut edges in the graph below. C B H F A D G E Solution CE and GH are cut edges, if either is removed, it would disconnect the graph. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Fleury’s Algorithm Fleury’s algorithm can be used to find an Euler circuit in any connected graph in which each vertex has even degree. An algorithm is like a recipe; follow the steps and you achieve what you need. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Fleury’s Algorithm Step 1: Start at any vertex. Go along any edge from this vertex to another vertex. Remove this edge from the graph. Step 2: You are now on a vertex on the revised graph. Choose any edge from this vertex, but not a cut edge, unless you have no other option. Go along your chosen edge. Remove this edge from the graph. © 2008 Pearson Addison-Wesley. All rights reserved

© 2008 Pearson Addison-Wesley. All rights reserved Fleury’s Algorithm Step 3: Repeat Step 2 until you have used all the edges and gotten back to the vertex at which you started. © 2008 Pearson Addison-Wesley. All rights reserved

Example: Using Fleury’s Algorithm Find an Euler circuit for the graph below. C B F E A D Solution C B F Remove BC E A D © 2008 Pearson Addison-Wesley. All rights reserved

Example: Using Fleury’s Algorithm Solution (continued) C B F Remove CF E A D C B F Remove FD E A D © 2008 Pearson Addison-Wesley. All rights reserved

Example: Using Fleury’s Algorithm Solution (continued) C B F Remove DE E A D Now it is clear to finish with © 2008 Pearson Addison-Wesley. All rights reserved

Example: Using Fleury’s Algorithm Solution (continued) The complete Euler circuit is Note that a graph that has an Euler circuit always has more than one Euler circuit. © 2008 Pearson Addison-Wesley. All rights reserved