CS311H: Discrete Mathematics. Graph Theory IV. A Non-planar Graph. Regions of a Planar Graph. Euler s Formula. Instructor: Işıl Dillig

Similar documents
Ma/CS 6b Class 1: Graph Recap

If you are at the university, either physically or via the VPN, you can download the chapters of this book as PDFs.

Ma/CS 6b Class 1: Graph Recap

F. R. K. Chung y. University ofpennsylvania. Philadelphia, Pennsylvania R. L. Graham. AT&T Labs - Research. March 2,1997.

Section 10.4 Hyperbolas

12/9/14. CS151 Fall 20124Lecture (almost there) 12/6. Graphs. Seven Bridges of Königsberg. Leonard Euler

10.5 Graphing Quadratic Functions

Hyperbolas. Definition of Hyperbola

1.5 Extrema and the Mean Value Theorem

Lesson 4.4. Euler Circuits and Paths. Explore This

In the last lecture, we discussed how valid tokens may be specified by regular expressions.

CS201 Discussion 10 DRAWTREE + TRIES

4-1 NAME DATE PERIOD. Study Guide. Parallel Lines and Planes P Q, O Q. Sample answers: A J, A F, and D E

2 Computing all Intersections of a Set of Segments Line Segment Intersection

COMP 423 lecture 11 Jan. 28, 2008

Today. CS 188: Artificial Intelligence Fall Recap: Search. Example: Pancake Problem. Example: Pancake Problem. General Tree Search.

Rational Numbers---Adding Fractions With Like Denominators.

6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.

MTH 146 Conics Supplement

Typing with Weird Keyboards Notes

1.1. Interval Notation and Set Notation Essential Question When is it convenient to use set-builder notation to represent a set of numbers?

Definition of Regular Expression

Announcements. CS 188: Artificial Intelligence Fall Recap: Search. Today. Example: Pancake Problem. Example: Pancake Problem

Notes for Graph Theory

The Fundamental Theorem of Calculus

Union-Find Problem. Using Arrays And Chains. A Set As A Tree. Result Of A Find Operation

Improper Integrals. October 4, 2017

Fig.25: the Role of LEX

Graph Theory and DNA Nanostructures. Laura Beaudin, Jo Ellis-Monaghan*, Natasha Jonoska, David Miller, and Greta Pangborn

Graphs with at most two trees in a forest building process

Theory of Computation CSE 105

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence Winter 2016

COMBINATORIAL PATTERN MATCHING

Unit #9 : Definite Integral Properties, Fundamental Theorem of Calculus

Answer Key Lesson 6: Workshop: Angles and Lines

APPLICATIONS OF INTEGRATION

Math 142, Exam 1 Information.

B. Definition: The volume of a solid of known integrable cross-section area A(x) from x = a

Grade 7/8 Math Circles Geometric Arithmetic October 31, 2012

INTRODUCTION TO SIMPLICIAL COMPLEXES

arxiv: v1 [math.co] 18 Sep 2015

MA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork

What are suffix trees?

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών

Dr. D.M. Akbar Hussain

such that the S i cover S, or equivalently S

Pointwise convergence need not behave well with respect to standard properties such as continuity.

arxiv:cs.cg/ v1 18 Oct 2005

Intermediate Information Structures

CS321 Languages and Compiler Design I. Winter 2012 Lecture 5

3 4. Answers may vary. Sample: Reteaching Vertical s are.

Lecture 8: Graph-theoretic problems (again)

CS 221: Artificial Intelligence Fall 2011

Tries. Yufei Tao KAIST. April 9, Y. Tao, April 9, 2013 Tries

Presentation Martin Randers

Topic 2: Lexing and Flexing

Premaster Course Algorithms 1 Chapter 6: Shortest Paths. Christian Scheideler SS 2018

this grammar generates the following language: Because this symbol will also be used in a later step, it receives the

Solving Problems by Searching. CS 486/686: Introduction to Artificial Intelligence

Lily Yen and Mogens Hansen

Homework. Context Free Languages III. Languages. Plan for today. Context Free Languages. CFLs and Regular Languages. Homework #5 (due 10/22)

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

The Complexity of Nonrepetitive Coloring

Finite Automata. Lecture 4 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 21, 2015

Unit 5 Vocabulary. A function is a special relationship where each input has a single output.

EXPONENTIAL & POWER GRAPHS

Here is an example where angles with a common arm and vertex overlap. Name all the obtuse angles adjacent to

Class-XI Mathematics Conic Sections Chapter-11 Chapter Notes Key Concepts

ΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών. Lecture 3b Lexical Analysis Elias Athanasopoulos

Subtracting Fractions

Chapter44. Polygons and solids. Contents: A Polygons B Triangles C Quadrilaterals D Solids E Constructing solids

9.1 apply the distance and midpoint formulas

9.1 PYTHAGOREAN THEOREM (right triangles)

Solutions to Math 41 Final Exam December 12, 2011

Lexical Analysis: Constructing a Scanner from Regular Expressions

Suffix Tries. Slides adapted from the course by Ben Langmead

1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)

Integration. October 25, 2016

2014 Haskell January Test Regular Expressions and Finite Automata

Lost in Translation: A Reflection on the Ballot Problem and André's Original Method

Compression Outline :Algorithms in the Real World. Lempel-Ziv Algorithms. LZ77: Sliding Window Lempel-Ziv

arxiv:math/ v2 [math.co] 28 Feb 2006

Angle Properties in Polygons. Part 1 Interior Angles

MATH 2530: WORKSHEET 7. x 2 y dz dy dx =

COMPUTER SCIENCE 123. Foundations of Computer Science. 6. Tuples

Section 3.1: Sequences and Series

Integration. September 28, 2017

Objective: Students will understand what it means to describe, graph and write the equation of a parabola. Parabolas

The Greedy Method. The Greedy Method

Suffix trees, suffix arrays, BWT

Graphing Conic Sections

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

arxiv: v1 [cs.cg] 9 Dec 2016

ON THE DEHN COMPLEX OF VIRTUAL LINKS

What do all those bits mean now? Number Systems and Arithmetic. Introduction to Binary Numbers. Questions About Numbers

12-B FRACTIONS AND DECIMALS

1 Quad-Edge Construction Operators

Slides for Data Mining by I. H. Witten and E. Frank

Pythagoras theorem and trigonometry (2)

If f(x, y) is a surface that lies above r(t), we can think about the area between the surface and the curve.

Transcription:

CS311H: Discrete Mthemtics Grph Theory IV Instructor: Işıl Dillig Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 1/25 A Non-plnr Grph Regions of Plnr Grph The plnr representtion of grph splits the plne into regions (sometimes lso clled fces): The complete grph K 5 is not plnr: R4 (outer region) c R1 R3 R2 d Why cn K 5 not e drwn without ny edges crossing? Every plnr grph hs n outer region, which is unounded. Degree of region R, written deg(r), is the numer of edges djcent to R Wht is degree of R1, R2, R3, R4? Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 3/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 4/25 Euler s Formul Euler s Formul: Let G = (V, E) e plnr connected grph with regions R. Then, the following formul lwys holds: R = E V + 2 A X W B C Y Z All plnr representtions of grph split the plne into the sme numer of regions! Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 6/25 1

Proof of Euler s Formul Cse 2: G hs t lest one cycle. Cse 1: G does not hve cycles (i.e., tree) If G hs V nodes, how mny edges does it hve? The proof is y induction on the numer of edges. Bse cse: G hs 3 edges (i.e., tringle) How mny regions does it hve? R = 1 = ( V 1) V + 2 Induction: Suppose Euler s formul holds for plnr connected grphs with e edges nd t lest one cycle. We need to show it lso holds for plnr connected grphs with e + 1 edges nd t lest one cycle. Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 7/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 8/25 An Appliction of Euler s Formul Crete G y removing one edge from the cycle hs e edges If G doesn t hve cycles, we know R = e V + 2 (cse 1) If G hs cycles, we know from IH tht R = e V + 2 Now, dd edge ck in; G hs e + 1 edges nd V vertices How mny regions does G hve? R + 1 Suppose connected plnr simple grph G hs 6 vertices, ech with degree 4. How mny regions does plnr representtion of G hve? How mny edges? How mny regions? e + 1 V + 2 = R + 1 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 9/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 10/25 Seven Bridges of Königserg Euler Circuits nd Euler Pths Given grph G, n Euler circuit is simple circuit contining every edge of G. Town of Königserg in Germny divided into four prts y the Pregel river nd hd seven ridges Euler pth is simple pth contining every edge of G. Townspeople wondered if one cn strt t point A, cross ll ridges exctly once, nd come ck to A Mthemticin Euler herd out this puzzle nd solved it Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 11/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 12/25 2

Theorem out Euler Circuits Theorem: A connected multigrph G with t lest two vertices contins n Euler circuit if nd only if ech vertex hs even degree. Let s first prove the only if prt. Euler circuit must enter nd leve ech vertex the sme numer of times. But we cn t use ny edge twice Hence, ech vertex must hve even numer of djcent edges. Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 14/25 Proof of Sufficiency Now, prove the if prt much more difficult! By strong induction on the numer of edges e Bse cse: e = 2 Induction: Suppose clim holds for every grph with e edges; show it holds for grph with e + 1 edges Consider grph G with e + 1 edges nd where every vertex hs even degree This mens G must contin cycle, sy C Now, remove ll edges in C from G to otin grph G G my not e connected, suppose it consists of connected components G 1,..., G n Ech vertex in cycle hs exctly two djcent edges tht re prt of the cycle Hence, if ll nodes in G hve even degree, then nodes in ech G i must lso hve even degree Oserve: G cnnot e tree why? Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 15/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 16/25 Now, ech G i is connected nd every vertex hs even degree By IH, ech G i hs n Euler circuit, sy C i We cn now lso uild n Euler circuit for G using these C i s Strt t some vertex v in C, trverse long C until we rech vertex v i in connected component G i Now, trverse C i nd come ck to v i Continue until we re ck t v i This is n Euler circuit ecuse we ve trversed every edge nd hven t repeted ny edges Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 17/25 3

Necessry nd Sufficient Conditions for Euler Pths Theorem: A connected multigrph G contins n Euler pth iff there re exctly 0 or 2 vertices of odd degree. Let s first prove necessity: Suppose G hs Euler pth P with strt nd end-points u nd v Cse 1: u, v re the sme then P is n Euler circuit, hence it must hve 0 vertices of degree Cse 2: u, v re distinct Except for u, v, we must enter nd leve ech vertex sme numer of times these must hve even degree Proof of Sufficiency Suppose G hs exctly 0 or 2 vertices with odd degree Cse 1: If no vertices with odd degree, must hve Euler circuit Cse 2: It hs exctly two vertices, sy u, v, with odd degree Now, dd n edge etween u, v to generte grph G All vertices in G hve even degree so G hs Euler circuit This mens G hs Euler pth with strt nd end-points u, v We must leve u one more time thn we enter it, nd we enter v one more time thn we leve it, so they hve odd degree Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 19/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 20/25 Exmple Does this grph hve Euler pth? Hmilton Pths nd Circuits A Hmilton circuit in grph G is simple circuit tht visits every vertex in G exctly once (except the strt node). Grph with n Euler pth: Note tht ll Hmilton circuits re cycles! A Hmilton pth in grph G is simple pth tht visits every vertex in G exctly once. Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 21/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 22/25 Are All Euler Circuits Also Hmilton Circuits? Not every Euler circuit is Hmilton circuit: Hmilton vs Euler Circuits Not every Hmilton circuit is n Euler circuit: c d e Does this grph hve Hmilton pth? Find grph tht hs n Euler circuit, ut no Hmilton circuit Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 23/25 Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 24/25 4

Necessry nd Sufficient Criteri for Hmilton Circuits Unlike Euler circuits, no necessry nd sufficient criteri for identifying Hmilton circuits or pths Exercise: Prove tht grph with vertex of degree 1 cnnot hve Hmilton circuit. Instructor: Işıl Dillig, CS311H: Discrete Mthemtics Grph Theory IV 25/25 5