Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Similar documents
Section Graphs, Paths, and Circuits. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

14.2 Euler Paths and Circuits filled in.notebook November 18, Euler Paths and Euler Circuits

Chapter 8 Topics in Graph Theory

SEVENTH EDITION and EXPANDED SEVENTH EDITION

Junior Circle Meeting 3 Circuits and Paths. April 18, 2010

Sections 5.2, 5.3. & 5.4

MA 111 Review for Exam 3

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

AQR UNIT 7. Circuits, Paths, and Graph Structures. Packet #

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

MATH 101: Introduction to Contemporary Mathematics

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Graph theory was invented by a mathematician named Euler in the 18th century. We will see some of the problems which motivated its study.

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Grades 7 & 8, Math Circles 31 October/1/2 November, Graph Theory

Graph Theory. 26 March Graph Theory 26 March /29

Launch problem: Lining streets

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

Networks and Graphs: Circuits, Paths, and Graph Structures VII.A Student Activity Sheet 1: Euler Circuits and Paths

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Excursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum

Introduction to Graphs

6.2. Paths and Cycles

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

Chapter 5: The Mathematics of Getting Around

Fundamental Properties of Graphs

WUCT121. Discrete Mathematics. Graphs

8.2 Paths and Cycles

Unit 7 Day 2 Section Vocabulary & Graphical Representations Euler Circuits and Paths

Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III

Street-Routing Problems

Varying Applications (examples)

11.2 Eulerian Trails

Displaying Data with Graphs. Chapter 6 Mathematics of Data Management (Nelson) MDM 4U

08. First and second degree equations

Chapter 11: Graphs and Trees. March 23, 2008

Digital Integrated CircuitDesign

Ma/CS 6a Class 8: Eulerian Cycles

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Note 5

Network Topology and Graph

Chapter 14 Section 3 - Slide 1

MATH 113 Section 9.2: Topology

Topics Covered. Introduction to Graphs Euler s Theorem Hamiltonian Circuits The Traveling Salesman Problem Trees and Kruskal s Algorithm

Graphs. Reading Assignment. Mandatory: Chapter 3 Sections 3.1 & 3.2. Peeking into Computer Science. Jalal Kawash 2010

Introduction III. Graphs. Motivations I. Introduction IV

Sarah Will Math 490 December 2, 2009

Week 11: Eulerian and Hamiltonian graphs; Trees. 15 and 17 November, 2017

Eulerian Tours and Fleury s Algorithm

An Introduction to Graph Theory

Eulerian Cycle (2A) Young Won Lim 4/26/18

a) Graph 2 and Graph 3 b) Graph 2 and Graph 4 c) Graph 1 and Graph 4 d) Graph 1 and Graph 3 e) Graph 3 and Graph 4 f) None of the above

EULERIAN GRAPHS AND ITS APPLICATIONS

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

GRAPH THEORY AND COMBINATORICS ( Common to CSE and ISE ) UNIT 1

Paths, Circuits, and Connected Graphs

Graphs And Algorithms

Euler and Hamilton circuits. Euler paths and circuits

Mohammad A. Yazdani, Ph.D. Abstract

Notes slides from before lecture. CSE 21, Winter 2017, Section A00. Lecture 9 Notes. Class URL:

Using Euler s Theorem

Chapter 1. Urban Services. Chapter Outline. Chapter Summary

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

An Interactive Introduction to Graph Theory

Eulerian Tours and Fleury s Algorithm

Graph Theory

Math 110 Graph Theory II: Circuits and Paths

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

14 Graph Theory. Exercise Set 14-1

Section 3.4 Basic Results of Graph Theory

Introduction to Engineering Systems, ESD.00. Networks. Lecturers: Professor Joseph Sussman Dr. Afreen Siddiqi TA: Regina Clewlow

Chapter 3: Paths and Cycles

Majority and Friendship Paradoxes

#30: Graph theory May 25, 2009

14 More Graphs: Euler Tours and Hamilton Cycles

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

Theory of Computing. Lecture 10 MAS 714 Hartmut Klauck

13. (a) G,G. A circuit of length 1 is a loop. 14. (a) E,E. (c) A,B,C,A. 16. (a) BF, FG

Eulerian tours. Russell Impagliazzo and Miles Jones Thanks to Janine Tiefenbruck. April 20, 2016

Undirected Network Summary

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Pre-Calculus. Slide 1 / 192. Slide 2 / 192. Slide 3 / 192. Matrices

Pre-Calculus Matrices

HW Graph Theory Name (andrewid) - X. 1: Draw K 7 on a torus with no edge crossings.

Vertex-Edge Graphs. Vertex-Edge Graphs In the Georgia Performance Standards. Sarah Holliday Southern Polytechnic State University

11-5 Networks. Königsberg Bridge Problem

Pre-Calculus. Introduction to Matrices. Slide 1 / 192 Slide 2 / 192. Slide 3 / 192. Slide 4 / 192. Slide 6 / 192. Slide 5 / 192. Matrices

MTH-129 Review for Test 4 Luczak

Graph Theory Problems Instructor: Natalya St. Clair. 1 The Seven Bridges of Königsberg Problem

Characterization of Graphs with Eulerian Circuits

Euler and Hamilton paths. Jorge A. Cobb The University of Texas at Dallas

Worksheet 28: Wednesday November 18 Euler and Topology

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

2. Line up the digits from 1 to 9 so that any two digit number made of two adjacent digits is divisible by either 7 or 13.

Module 2: NETWORKS AND DECISION MATHEMATICS

Transcription:

Section 14.1 Graphs, Paths, and Circuits

INB Table of Contents Date Topic Page # January 27, 2014 Test #1 14 January 27, 2014 Test # 1 Corrections 15 January 27, 2014 Section 14.1 Examples 16 January 27, 2014 Section 14.1 Notes 17 January 27, 2014 Section 14.2 Examples 18 January 27, 2014 Section 14.2 Notes 19 2.3-2

What You Will Learn Graphs Paths Circuits Bridges 14.1-3

Definitions A graph is a finite set of points called vertices (singular form is vertex) connected by line segments (not necessarily straight) called edges. A loop is an edge that connects a vertex to itself. A B Loop Not a vertex C D Edge Vertex 14.1-4

Example 1: Representing the Königsberg Bridge Problem Using the definitions of vertex and edge, represent the Königsberg bridge problem with a graph. Königsberg was situated on both banks and two islands of the Prigel River. From the figure, we see that the sections of town were connected with a series of seven bridges. 14.1-5

Example 1: Representing the Königsberg Bridge Problem 14.1-6

Example 1: Representing the Königsberg Bridge Problem The townspeople wondered if one could walk through town and cross all seven bridges without crossing any of the bridges twice. 14.1-7

Example 3: Representing a Floor Plan The figure shows the floor plan of the kindergarten building at the Pullen Academy. Use a graph to represent the floor plan. 14.1-9

Definitions The degree of a vertex is the number of edges that connect to that vertex. A vertex with an even number of edges connected to it is an even vertex, and a vertex with an odd number of edges connected to it is an odd vertex. 14.1-11

Definitions In the figure, vertices A and D are even and vertices B and C are odd. 14.1-12

Paths A path is a sequence of adjacent vertices and edges connecting them. C, D, A, B is an example of a path. 14.1-13

Paths A path does not need to include every edge and every vertex of a graph. In addition, a path could include the same vertices and the same edges several times. For example, on the next slide, we see a graph with four vertices. The path A, B, C, D, A, B, C, D, A, B, C, D, A, B, C starts at vertex A, circles the graph three times, and then goes through vertex B to vertex C. 14.1-14

Paths 14.1-15

Circuit A circuit is a path that begins and ends at the same vertex. Path A, C, B, D, A forms a circuit. 14.1-16

Connected Graph A graph is connected if, for any two vertices in the graph, there is a path that connects them. 14.1-17

Disconnected Graph If a graph is not connected, it is disconnected. 14.1-18

Bridge A bridge is an edge that if removed from a connected graph would create a disconnected graph. 14.1-19

Section 14.2 Euler Paths, and Euler Circuits

What You Will Learn Euler Paths Euler Circuits Euler s Theorem Fleury s Algorithm 14.2-21

Euler Path An Euler path is a path that passes through each edge of a graph exactly one time. 14.2-22

Euler Circuit An Euler circuit is a circuit that passes through each edge of a graph exactly one time. 14.2-23

Euler Path versus Euler Circuit The difference between an Euler path and an Euler circuit is that an Euler circuit must start and end at the same vertex. 14.2-24

Euler Path versus Euler Circuit Euler Path D, E, B, C, A, B, D, C, E Euler Circuit D, E, B, C, A, B, D, C, E, F, D 14.2-25

Euler s Theorem For a connected graph, the following statements are true: 1. A graph with no odd vertices (all even vertices) has at least one Euler path, which is also an Euler circuit. An Euler circuit can be started at any vertex and it will end at the same vertex. 2. A graph with exactly two odd vertices has at least one Euler path but no Euler circuits. Each Euler path must begin at one of the two odd vertices, and it will end at the other odd vertex. 3. A graph with more than two odd vertices has neither an Euler path nor an Euler circuit. 14.2-26

Example 3: Solving the Königsberg Bridge Problem Could a walk be taken through Königsberg during which each bridge is crossed exactly one time? 14.2-27

Fleury s Algorithm To determine an Euler path or an Euler circuit 1. Use Euler s theorem to determine whether an Euler path or an Euler circuit exists. If one exists, proceed with steps 2-5. 2. If the graph has no odd vertices (therefore has an Euler circuit, which is also an Euler path), choose any vertex as the starting point. If the graph has exactly two odd vertices (therefore has only an Euler path), choose one of the two odd vertices as the starting point. 3. Begin to trace edges as you move through the graph. Number the edges as you trace them. Since you can t trace any edges twice in Euler paths and Euler circuits, once an edge is traced consider it invisible. 4. When faced with a choice of edges to trace, if possible, choose an edge that is not a bridge (i.e., don t create a disconnected graph with your choice of edges). 5. Continue until each edge of the entire graph has been traced once. 14.2-30

Example 6: Crime Stoppers Problem Below is a representation of the Country Oaks subdivision of homes. The Country Oaks Neighborhood Association is planning to organize a crime stopper group in which residents take turns walking through the neighborhood with cell phones to report any suspicious activity to the police. 14.2-31

Example 6: Crime Stoppers Problem a) Can the residents of Country Oaks start at one intersection (or vertex) and walk each street block (or edge) in the neighborhood exactly once and return to the intersection where they started? b) If yes, determine a circuit that could be followed to accomplish their walk. 14.2-32

Example 6: Crime Stoppers Problem a) Does a Euler circuit exist? 14.2-33