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

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

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

Worksheet 28: Wednesday November 18 Euler and Topology

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

An Introduction to Graph Theory

Fundamental Properties of Graphs

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

Chapter 3: Paths and Cycles

Week 12: Trees; Review. 22 and 24 November, 2017

MA 111 Review for Exam 3

3 Euler Tours, Hamilton Cycles, and Their Applications

Chapter 8 Topics in Graph Theory

Discrete mathematics

Section 3.4 Basic Results of Graph Theory

Math 443/543 Graph Theory Notes 2: Transportation problems

MAT 145: PROBLEM SET 4

Foundations of Discrete Mathematics

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

Graph Traversals. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari 1

#30: Graph theory May 25, 2009

Week 9: Planar and non-planar graphs. 1st and 3rd of November, 2017

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

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

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

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

Week 9: Planar and non-planar graphs. 7 and 9 November, 2018

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Using Euler s Theorem

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

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

IE 102 Spring Routing Through Networks - 1

8.2 Paths and Cycles

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

6.2. Paths and Cycles

Introduction to Graphs

Circuits and Paths. April 13, 2014

11.2 Eulerian Trails

WUCT121. Discrete Mathematics. Graphs

EECS 203 Lecture 20. More Graphs

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

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

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

Varying Applications (examples)

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

Major Themes. 14: Graph Traversals. The Bridges of Königsberg Puzzle. Dr Papalaskari 1. Graph traversals: Euler circuit/trail.

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

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

Characterization of Graphs with Eulerian Circuits

14 More Graphs: Euler Tours and Hamilton Cycles

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

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

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MH 1301 DISCRETE MATHEMATICS TIME ALLOWED: 2 HOURS

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

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Sarah Will Math 490 December 2, 2009

Major Themes. Graph Traversals. Euler s SoluWon to The Bridges of Königsberg. The Bridges of Königsberg Puzzle. Dr Papalaskari 1

Eulerian Cycle (2A) Walk : vertices may repeat, edges may repeat (closed or open) Trail: vertices may repeat, edges cannot repeat (open)

Introduction III. Graphs. Motivations I. Introduction IV

Ma/CS 6a Class 8: Eulerian Cycles

Assignment 4 Solutions of graph problems

Graph Theory: Starting Out

Exercises for Discrete Maths

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Eulerian Tours and Fleury s Algorithm

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

An Introduction to Graph Theory

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

INTRODUCTION TO GRAPH THEORY. 1. Definitions

PATH FINDING AND GRAPH TRAVERSAL

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

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

Math 776 Graph Theory Lecture Note 1 Basic concepts

Chapter 14 Section 3 - Slide 1

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?

Eulerian Tours and Fleury s Algorithm

Module 2: NETWORKS AND DECISION MATHEMATICS

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

The Konigsberg Bridge Problem

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

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

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

Two vertices that are joined by an edge are said to be adjacent. They are also called neighbours.

Artificial Intelligence

The Traveling Salesman Problem

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

Notebook Assignments

Number Theory and Graph Theory

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

Discrete Mathematics and Probability Theory Fall 2013 Midterm #2

GRAPH THEORY and APPLICATIONS. Matchings

Worksheet for the Final Exam - Part I. Graphs

11-5 Networks. Königsberg Bridge Problem

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

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Topic 10 Part 2 [474 marks]

Let G = (V, E) be a graph. If u, v V, then u is adjacent to v if {u, v} E. We also use the notation u v to denote that u is adjacent to v.

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

Launch problem: Lining streets

Transcription:

(1/22) MA284 : Discrete Mathematics Week 11: Eulerian and Hamiltonian graphs; Trees http://www.maths.nuigalway.ie/~niall/ma284/ 15 and 17 November, 2017 Hamilton s Icosian Game (Library or the Royal Irish Academy) 1 Recall: Eulerian Paths and Circuits 2 Hamiltonian Paths and Cycles 3 Trees A property of trees How to recognise trees from quite a long way away 4 Exercises See also Chapter 4 of Levin s Discrete Mathematics: an open introduction.

Recall: Eulerian Paths and Circuits (2/22) Last week we introduced the following two ideas. Eulerian Path and Circuit An EULERIAN PATH (also called an Euler Path and an Eulerian trail) in a graph is a path which uses every edge exactly once. An EULERIAN CIRCUIT (also called an Eulerian cycle) in a graph is an Eulerian path that starts and finishes at the same vertex. If a graph has such a circuit, we say it is Eulerian. Example: Find an Eulerian circuit in this graph: c b f d e a

Recall: Eulerian Paths and Circuits (3/22) It is possible to come up with a condition that guarantees that a graph has an Eulerian path, and, addition, one that ensures that it has an Eulerian circuit. To begin with, we ll reason that although the graph below does have an Eulerian path, it does not have an Eulerian circuit. c b a f d g h

Recall: Eulerian Paths and Circuits (4/22) Suppose, first, the we have a graph that does have an Eulerian circuit. Then for every edge in the circuit that exits a vertex, there is another that enters that vertex. So every vertex must have even degree. Example

Recall: Eulerian Paths and Circuits (5/22) In fact, a stronger statement is possible. A graph has an EULERIAN CIRCUIT if and only if every vertex has even degree. Example: Show that the following graph has an Eulerian circuit f b g a d c e

Recall: Eulerian Paths and Circuits (6/22) Next suppose that a graph does not have an Eulerian circuit, but does have an Eulerian Path. Then the degree of the start and end vertices must be odd, and every other vertex has even degree. Example: a b d c

Recall: Eulerian Paths and Circuits (7/22) To summarise: Eulerian Paths and Circuits A graph has an EULERIAN CIRCUIT if and only if the degree of every vertex is even. A graph has an EULERIAN PATH if and only if it has either zero or two vertices with odd degree. Example: The Königsberg bridge graph does not have an Eulerian path:

Recall: Eulerian Paths and Circuits (8/22) Example (MA284, 2015/16 Semester 1 Exam, Q4(a)-(ii)) Determine whether or not the follow graph has an Eulerian Path and/or Eulerian circuit. If so, give an example; if not, explain why. 2 5 4 7 8 6 1 3

Hamiltonian Paths and Cycles (9/22) In the same way that might look for a path in a graph that uses every edges ones and only once (i.e., the Eulerian Paths that we have just discussed), one could look for a path that visits every vertex once and only once. Hamiltonian Path A path in a graph that visits every vertex exactly once is called a HAMILTONIAN PATH. These paths are named after William Rowan Hamilton, the Irish mathematician, who invented a board-game based on the idea. Hamilton s Icosian Game (Library of the Royal Irish Academy)

Hamiltonian Paths and Cycles (10/22) Hamiltonian Path A path in a graph that visits every vertex exactly once is called a HAMILTONIAN PATH. Hamiltonian Cycles Recall that a CYCLE is a path that starts and finishes at the same vertex. A HAMILTONIAN CYCLE is a cycle which visits the start/end vertex twice, and every other vertex exactly once. A graph that has a Hamiltonian cycle is called a HAMILTONIAN GRAPH. Examples:

Hamiltonian Paths and Cycles (11/22) This is the graph based on Hamilton s Icosian game. We ll find a Hamilton path. Can you find a Hamilton circuit?

Hamiltonian Paths and Cycles (12/22) Important examples of Hamiltonian Graphs include: cycle graphs; complete graphs; graphs of the platonic solids.

Hamiltonian Paths and Cycles (13/22) In general, the problem of finding a Hamiltonian path or cycle in a large graph is hard. However, there are two relatively simple sufficient conditions to testing if a graph is Hamiltonian. 1. Ore s Theorem A graph with v vertices, where v 3, is Hamiltonian if, for every pair of non-adjacent vertices, the sum of their degrees v.

Hamiltonian Paths and Cycles (14/22) 2. Dirac s Theorem A (simple) graph with v vertices, where v 3, is Hamiltonian if every vertex has degree v/2. Example (MA204, Semester 1 Exam, Q3(a), again) Determine whether or not the graph illustrated below... is Hamiltonian, and if so, give a Hamiltonian cycle: b c a d e f

Hamiltonian Paths and Cycles (15/22) Example (MA284, 2014/15, Semester 1 Exam, Q3(b)) Give an example, with justification, of: (i) a Hamiltonian graph that is not Eulerian; (ii) an Eulerian graph that is not Hamiltonian (exercise).

Trees (16/22) There is a very important class of the graph that does not contain any circuits: TREES. The mathematical study of trees dates to at least 1857, when Arthur Cayley used them to study certain chemical compounds. They are used in many mathematical models of decision making (such as Chess programmes), and in designing algorithms for data encoding and transmission. Acyclic A graph that has no circuits is called ACYCLIC. Tree A TREE is a connected, acyclic graph. Examples:

Trees (17/22) Which of the following are graphs of trees?

Trees (18/22) Which of the following are graphs of trees?

Trees A property of trees (19/22) If T is a tree, then e = v 1 If T is a tree (i.e., a connected acyclic graph) with v vertices, then it has v 1 edges. (We will see that the converse of this statement is also true).

Trees How to recognise trees from quite a long way away (20/22) For a very large graph, it can be difficult to determine if it is a tree just by inspection. If we know it has no circuits/cycles, then we need to verify that it is connected. The following result (the converse of the previous one) can be useful. If e = v 1, then T is a tree If graph with v vertices has no cycles/circuits, and has e = v 1 edges, then it is a tree.

Trees How to recognise trees from quite a long way away (21/22) Example The following graph has no circuits. Determine how many components it has. Is it a tree?

Exercises (22/22) Q1. Give an example, with justification, of an Eulerian graph that is not Hamiltonian. Q2. For each of the following graphs, determine if it has an Eulerian path and/or circuit. If not, explain why; otherwise give an example. (a) K n, with n even. (b) G 1 = (V 1, E 1 ) with V 1 = {a, b, c, d, e, f }, E 1 = {{a, b}, {a, f }, {c, b}, {e, b}, {c, e}, {d, c}, {d, e}, {b, f }}. (c) G 2 = (V 2, E 2 ) with V 2 = {a, b, c, d, e, f }, E 2 = {{a, b}, {a, f }, {c, b}, {e, b}, {c, e}, {d, c}, {d, e}, {b, f }, {b, d}}. Q3. (a) Find a Hamiltonian path in each of the graphs in Q2. (b) Neither of the graphs in Q2 have a Hamiltonian cycle. For each of them, find an induced sub-graph that does have a Hamilton cycle. Q4. (G 2 is from MA204 exam, 2013/2014) Determine if the follow graph has an Eulerian path and/or Eulerian circuit. If so, give an example; if not, explain why. g c i j G 1 = G 2 = e d f a b h