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

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

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

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

Worksheet 28: Wednesday November 18 Euler and Topology

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

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

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

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

An Introduction to Graph Theory

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

Evolution Module. 6.1 Phylogenetic Trees. Bob Gardner and Lev Yampolski. Integrated Biology and Discrete Math (IBMS 1300)

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

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

2 hours THE UNIVERSITY OF MANCHESTER. 23 May :45 11:45

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

Fundamental Properties of Graphs

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

We ve all seen trees. No, not that sprightly spruce in your garden, but your family tree. Rachael

MA 111 Review for Exam 3

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

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

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

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

Eulerian Tours and Fleury s Algorithm

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

Combinatorics: The Fine Art of Counting

Introduction to Graphs

Circuits and Paths. April 13, 2014

Chapter 3: Paths and Cycles

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

3 Euler Tours, Hamilton Cycles, and Their Applications

Characterization of Graphs with Eulerian Circuits

Section 3.4 Basic Results of Graph Theory

Chapter 8 Topics in Graph Theory

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

Foundations of Discrete Mathematics

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

8.2 Paths and Cycles

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

Ma/CS 6a Class 8: Eulerian Cycles

BIL694-Lecture 1: Introduction to Graphs

Using Euler s Theorem

Exercises for Discrete Maths

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

Varying Applications (examples)

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

Travel Every Edge 3. Example (Travel Every Edge 3) In the graphs above, can you find a circuit that hits every edge without repeating any edges?

11.2 Eulerian Trails

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

Introduction III. Graphs. Motivations I. Introduction IV

Combinatorics: The Fine Art of Counting

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

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?

IE 102 Spring Routing Through Networks - 1

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

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

#30: Graph theory May 25, 2009

Chapter 10: Trees. A tree is a connected simple undirected graph with no simple circuits.

Discrete mathematics

Eulerian Tours and Fleury s Algorithm

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Module 1. Preliminaries. Contents

WUCT121. Discrete Mathematics. Graphs

Graph Theory lecture notes

Math 443/543 Graph Theory Notes 2: Transportation problems

Section Summary. Introduction to Trees Rooted Trees Trees as Models Properties of Trees

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

INTRODUCTION TO GRAPH THEORY. 1. Definitions

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

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

MAS341 Graph Theory Lecture Notes

Notebook Assignments

Majority and Friendship Paradoxes

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

MATH 101: Introduction to Contemporary Mathematics

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

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

10/8/13 Comp 555 Fall

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

CS 2336 Discrete Mathematics

MAT 145: PROBLEM SET 4

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

Topic 10 Part 2 [474 marks]

6.2. Paths and Cycles

Graphs and Puzzles. Eulerian and Hamiltonian Tours.

Chapter 2 Graphs. 2.1 Definition of Graphs

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

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

EECS 203 Lecture 20. More Graphs

Chapter Summary. Introduction to Trees Applications of Trees Tree Traversal Spanning Trees Minimum Spanning Trees

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

Eulerian Paths and Cycles

An Introduction to Graph Theory

11-5 Networks. Königsberg Bridge Problem

Launch problem: Lining streets

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

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

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.

Module 2: NETWORKS AND DECISION MATHEMATICS

Transcription:

(1/22) MA284 : Discrete Mathematics Week 11: Eulerian and amiltonian graphs; Trees http://www.maths.nuigalway.ie/ niall/ma284/ amilton s Icosian Game (Library or the Royal Irish Academy) 21 and 23 November, 2018 1 Recall: Eulerian Paths and Circuits 2 amiltonian Paths and Cycles 3 Trees A property of trees Recognising trees from quite a long way away Applications: Chemistry 4 Exercises See also Chapter 4 of Levin s Discrete Mathematics: an open introduction.

Announcement (2/22) ASSIGNMENT 4 has finished, and results have been posted to Blackboard..................................................................... ASSIGNMENT 5 is Open. Deadline 5pm, 30 November. Access it at http://mathswork.nuigalway.ie/webwork2/1819-ma284 Assignment 5 has 13 questions; you have 10 attempts for each. Not all questions carry that same score. Both assignments contribute 8.5% (exactly!) to your final grade for Discrete Mathematics. For more information, see Blackboard, or http://www.maths.nuigalway.ie/ niall/ma284

Recall: Eulerian Paths and Circuits (3/22) Last week we introduced the following two ideas. Eulerian Path and Circuit An EULERIAN PAT (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. Examples:

Recall: Eulerian Paths and Circuits (4/22) We learned that these graphs could be classified/identified as follows. 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 PAT 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 (5/22) Example (MA284, 2015/16 Semester 1 Exam, Q4(a)-(ii)) Determine whether or not the following 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

amiltonian Paths and Cycles (6/22) Closely related to the idea of finding path in a graph that uses every edges ones and only once, we have the following idea: amiltonian Path A path in a graph that visits every vertex exactly once is called a AMILTONIAN PAT. These paths are named after William Rowan amilton, the Irish mathematician, who invented a board-game based on the idea. amilton s Icosian Game (Library of the Royal Irish Academy)

amiltonian Paths and Cycles (7/22) amiltonian Path A path in a graph that visits every vertex exactly once is called a AMILTONIAN PAT. amiltonian Cycles Recall that a CYCLE is a path that starts and finishes at the same vertex, but no other vertex is repeated. A AMILTONIAN CYCLE is a cycle which visits the start/end vertex twice, and every other vertex exactly once. A graph that has a amiltonian cycle is called a AMILTONIAN GRAP. Examples:

amiltonian Paths and Cycles (8/22) This is the graph based on amilton s Icosian game. We ll find a amilton path. Can you find a amilton cycle?

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

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

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

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

Trees (13/22) There s an important class of the graph that do not contain 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/Forest A graph that has no circuits is called ACYCLIC or a forest. Tree A TREE is a connected, acyclic graph. Examples:

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

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

Trees A property of trees (16/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 Recognising trees from quite a long way away (17/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 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, and has e = v 1 edges, then it is a tree.

Trees Recognising trees from quite a long way away (18/22) Example The following graph has no cycles. Determine how many components it has. Is it a tree?

Trees Applications: Chemistry (19/22) There are many, many applications, of trees in mathematics, computer science, and the applied sciences. As already mentioned, the mathematical study of trees began in Chemistry. Example Saturated hydrocarbons isomers (alkane) are of the form C n 2n+2. They have n carbon atoms, and 2n + 2 hydrogen atoms. The carbon atoms can bond with 4 other atoms, and the hydrogens with just one. Show that the graph of all such isomers are trees.

Trees Applications: Chemistry (20/22) C C C C C C C C C C C C C C C C

Exercises (21/22) Q1. Give an example, with justification, of an Eulerian graph that is not amiltonian. 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 amiltonian path in each of the graphs in Q2. (b) Neither of the graphs in Q2 have a amiltonian cycle. For each of them, find an induced sub-graph that does have a amilton cycle.

Exercises (22/22) Q4. 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