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

Similar documents
Worksheet 28: Wednesday November 18 Euler and Topology

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

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

Introduction to Graphs

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

Chapter 3: Paths and Cycles

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

An Introduction to Graph Theory

#30: Graph theory May 25, 2009

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

6.2. Paths and Cycles

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Fundamental Properties of Graphs

Week 10: Colouring graphs, and Euler s paths. 14 and 16 November, 2018

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

CHAPTER 10 GRAPHS AND TREES. Copyright Cengage Learning. All rights reserved.

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

Introduction III. Graphs. Motivations I. Introduction IV

Section 3.4 Basic Results of Graph Theory

11.2 Eulerian Trails

11-5 Networks. Königsberg Bridge Problem

MATH 113 Section 9.2: Topology

EECS 203 Lecture 20. More Graphs

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

Intermediate Math Circles Wednesday, February 8, 2017 Graph Theory I

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

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

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?

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

Graph Theory CS/Math231 Discrete Mathematics Spring2015

3 Euler Tours, Hamilton Cycles, and Their Applications

Launch problem: Lining streets

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

Discrete mathematics

Sarah Will Math 490 December 2, 2009

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

Lecture 1: An Introduction to Graph Theory

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

Dieter Jungnickel (2008), Graphs, Networks and Algorithms, 3rd edition, which is available online via SpringerLink.

Eulerian Tours and Fleury s Algorithm

Week 11: Eulerian and Hamiltonian graphs; Trees. 21 and 23 November, 2018

Graphs: Definitions Trails, Paths, and Circuits Matrix Representations Isomorphisms. 11. Graphs and Trees 1. Aaron Tan. 30 October 3 November 2017

Characterization of Graphs with Eulerian Circuits

Eulerian Tours and Fleury s Algorithm

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

Graph Theory. 26 March Graph Theory 26 March /29

8.2 Paths and Cycles

Graph Theory

Basics of Graph Theory

Math 443/543 Graph Theory Notes 2: Transportation problems

MAT 145: PROBLEM SET 4

Math 776 Graph Theory Lecture Note 1 Basic concepts

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

Chapter 11: Graphs and Trees. March 23, 2008

Mohammad A. Yazdani, Ph.D. Abstract

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

Walking with Euler through Ostpreußen and RNA

Math 110 Graph Theory II: Circuits and Paths

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

Number Theory and Graph Theory

Circuits and Paths. April 13, 2014

1. The Highway Inspector s Problem

Graph Theory: Starting Out

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

Week 7: Introduction to Graph Theory. 24 and 26 October, 2018

14 More Graphs: Euler Tours and Hamilton Cycles

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

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

Chapter 5: The Mathematics of Getting Around

TWO CONTRIBUTIONS OF EULER

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

CS70 - Lecture 6. Graphs: Coloring; Special Graphs. 1. Review of L5 2. Planar Five Color Theorem 3. Special Graphs:

Salvador Sanabria History of Mathematics. Königsberg Bridge Problem

Exercises for Discrete Maths

Discrete Mathematics and Probability Theory Spring 2015 Vazirani Note 5

Varying Applications (examples)

Module 11. Directed Graphs. Contents

IE 102 Spring Routing Through Networks - 1

Assignment 4 Solutions of graph problems

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

Graphs And Algorithms

Introduction to Networks

of Nebraska - Lincoln

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

Simple Graph. General Graph

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

MATH 101: Introduction to Contemporary Mathematics

Today s Outline. CSE 326: Data Structures. Topic #15: Cool Graphs n Pretty Pictures. A Great Mathematician. The Bridges of Königsberg

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

FINDING THE RIGHT PATH

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

Chapter 8 Topics in Graph Theory

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

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

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

Material handling and Transportation in Logistics. Paolo Detti Dipartimento di Ingegneria dell Informazione e Scienze Matematiche Università di Siena

EULERIAN GRAPHS AND ITS APPLICATIONS

Combinatorics: The Fine Art of Counting

Transcription:

1 Eulerian Graphs Intermediate Math Circles Wednesday, February 22, 2017 Graph Theory III Let s begin this section with a problem that you may remember from lecture 1. Consider the layout of land and water given in the following map. Is it possible to start at some point on the land and cross every bridge exactly once, ultimately returning to your starting position? This is known as the Königsberg bridge problem. Its name comes from Königsberg, Prussia (now Kaliningrad, Russia), a city whose layout in the 1700 s resembled that of the above image. This question was answered in the negative by mathematician Leonhard Euler (right) in 1736. Euler s analysis of the problem used new mathematical arguments that laid the foundations of graph theory. What s more, Euler showed how to answer this question for any configuration of islands and bridges! Euler made a couple of key observations that helped to simplify the bridges problem. Firstly, the starting location is irrelevant; if there is a route that solves the problem, all landmasses must be visited and so it doesn t matter where one begins. Secondly, the movements that are made within a particular landmass are also unimportant. Leonhard Euler 1707-1783 Thus, the problem can be described using the following picture, where the circles A, B, C, and D represent the land masses and the connecting lines represent the bridges. 1

A B D C Euler s simplification of the bridge problem. To solve the problem, Euler argued as follows: if there were a way to cross every bridge exactly once and return to the starting position, then any time a bridge is used to reach a particular island, there should be another (unused) bridge that allows us to leave. This means that the bridges connected to any island must come in pairs; one to enter and one to exit. Of course, this is not the case in our picture above; there are landmasses (all of them, in fact) that are connected to an odd number of bridges. Thus, Euler provided a negative resolution to the bridge problem. 1.1 Back to Graph Theory It is likely the case that many of you noticed that Euler s simplified depiction of the bridges problem is really just a graph with vertices A, B, C, and D, and edges corresponding to the bridges. In order to state the bridges problem in a purely graph theoretic way, we will require a bit of terminology. Recall that a walk in a graph G is a route taken from one vertex to another by traversing the edges of G, and a path is a walk with no repeated vertices. Definition. Let G be a graph. (a) A walk in G is said to be closed if it starts and ends at the same vertex. (b) A trail in G is a walk with no repeated edges. (c) A circuit in G is a closed walk with no repeated edges (i.e., a closed trail). Thus, the bridges of Königsberg problem is equivalent to asking whether or not the above graph admits a circuit that includes every edge. Such a circuit will be called an Euler circuit, and a graph that contains an Euler circuit will be called Eulerian. Euler s analysis showed that no graph containing vertices of odd degree can be Eulerian. Remarkably, this is essentially the only obstruction. 2

Theorem (Euler, 1736). A graph G is Eulerian if and only if it is connected and every vertex in G has even degree. What if we re a bit less demanding? Can we find a route through Königsberg that crosses every bridge exactly once, possibly without returning to our point of departure? In our newly acquired graph theory language, this asks if there is a trail in the corresponding graph that includes every edge. Such a trail will be called an Euler trail. Suppose that G is a graph that has an Euler trail from vertex v to vertex w, but contains no Euler circuit. If we add an imaginary ghost edge from v to w, this trail can be extended to an Euler circuit. By the above result, every vertex in the new graph (i.e., with the ghost edge present) must have even degree. What changes when we remove the ghost edge? The degrees of v and w are each reduced by 1 (making them odd) and every other vertex is unaffected. Hence, any graph with an Euler trail but no Euler circuit has exactly two vertices of odd degree (acting as the starting and ending points of the trail). Conversely, we may argue in a similar manner to deduce that any connected graph with exactly 2 vertices of odd degree admits an Euler trail. Corollary. If G is a non-eulerian graph, then G contains an Euler trail if and only if G is connected and has exactly 2 vertices of odd degree. The trail necessarily starts at one of these vertices and ends at the other. By appealing to this line of reasoning it is clear that the city of Königsberg contains no Euler trail; the corresponding graph has 4 vertices of odd degree. Can you find an Euler trail if an additional bridge is added from A to B? If we also add a bridge from C to D, can you find an Euler circuit? Let s see a couple more examples. The graph on the left is Eulerian while the one on the right contains only an Euler trail (note the two vertices of odd degree). It s easy to find an Euler circuit or Euler trail once you know that one exists. Start at any vertex (if you re looking for an Euler trail, start at an odd-degree vertex). Choose any route you like, but cross an edge that disconnects the graph only when there are no other options. Remove edges as you go so that no edge is repeated. This process is known as Fleury s algorithm. Here we ve used Fleury s algorithm to produce an Euler circuit and Euler trail for the graphs in the preceding example. 3

1 9 8 10 8 9 11 2 7 2 7 6 5 3 1 6 12 3 4 4 5 13 As an exercise, try to use Euler s results to solve the other problem posed in lecture 1. Namely, decide whether or not it is possible to find a route in the following figure that runs through each door exactly once and ends back at the starting point. If it is possible, find an example. Otherwise, explain why it cannot be done. 4

2 Hamiltonian Graphs As we saw in the previous section, there is a straightforward method to decide whether or not a given graph G has an Euler circuit (i.e., a closed walk that visits every edge exactly once). It is natural to ask the same question about the vertices of G. That is, when does a graph G admit a closed walk that visits every vertex exactly once? This motivates the following definition. 1 Definition. Let G be a graph. A cycle in G is a closed walk with no repeated vertices (i.e., a closed path). With this new definition in mind, the above question can be phrased as When does a graph contain a cycle that visits every vertex? William Hamilton 1805-1865 A cycle of this kind is called a Hamiltonian cycle in honour of mathematician William Hamilton (left) who, in 1857, invented a game that asked the player to find such a cycle on the vertices and edges of a dodecahedron. A graph that admits a Hamiltonian cycle is called a Hamiltonian graph. Surprisingly this question is much harder to resolve that its counterpart in section 1. There is currently no definitive answer to the problem. For example, the graph on the left is Hamiltonian. An example of a Hamiltonian cycle is given by traversing the outside edges. v w However, the graph on the right is not Hamiltonian. To see this, observe that every edge incident to a vertex of degree 2 necessarily belongs to any Hamiltonian cycle; we must be able to both visit and depart from any given vertex. This means that all 4 of the inside edges must belong to any Hamiltonian cycle, as v and w each have degree 2. But these edges form a non-hamiltonian cycle already, and hence there is no cycle that includes all 6 vertices. In general, the more edges in a graph, the better the chance it has at a Hamiltonian cycle. The following result due to Dirac is useful when the graph in question has lots of edges relative to its number of vertices. 1 Does this definition make sense? Any closed walk must repeat a vertex (the vertex at the start/end). In a cycle we ll allow the start/end vertex to be visited twice, but no more than that! 5

Theorem (Dirac, 1952). A simple graph G with n 3 vertices is Hamiltonian if deg(v) n/2 for all vertices v in G. Evidently, the condition deg(v) n/2 for all vertices v is not necesary for a graph to exhibit a Hamiltonian cycle. Indeed, the graph on the left in the preceding example does not satisfy the conditions of Dirac s theorem, but does have a Hamiltonian cycle. An example where Dirac s theorem can be used is in the following graph. Try to find a Hamiltonian cycle explicitly. 6