Connectivity in Graphs. CS311H: Discrete Mathematics. Graph Theory II. Example. Paths. Connectedness. Example

Similar documents
Solutions for HW9. Bipartite: put the red vertices in V 1 and the black in V 2. Not bipartite!

Counting Paths Between Vertices. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs. Isomorphism of Graphs

Data Structures LECTURE 10. Huffman coding. Example. Coding: problem definition

A FRACTIONAL ANALOGUE OF BROOKS THEOREM

Mid-Term Examination - Spring 2014 Mathematical Programming with Applications to Economics Total Score: 45; Time: 3 hours

CIT 596 Theory of Computation 1. Graphs and Digraphs

Graph Theory. Simple Graph G = (V, E). V={a,b,c,d,e,f,g,h,k} E={(a,b),(a,g),( a,h),(a,k),(b,c),(b,k),...,(h,k)}

Graph Algorithms. Vertex set = { a,b,c,d } Edge set = { {a,c}, {b,c}, {c,d}, {b,d}} Figure 1: An example for a simple graph

Lecture 4: Graph Theory and the Four-Color Theorem

Exercise sheet 6: Solutions

CS 491G Combinatorial Optimization Lecture Notes

Graphs Recall from last time: A graph is a set of objects, or vertices, together with a (multi)set of edges that connect pairs of vertices.

On Gallai s and Hajós Conjectures for graphs with treewidth at most 3

Global alignment. Genome Rearrangements Finding preserved genes. Lecture 18

1 PYTHAGORAS THEOREM 1. Given a right angled triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides.

Section 2.3. Matrix Inverses

Worksheet #2 Math 285 Name: 1. Solve the following systems of linear equations. The prove that the solutions forms a subspace of

Section The Precise Definition Of A Limit

22: Union Find. CS 473u - Algorithms - Spring April 14, We want to maintain a collection of sets, under the operations of:

SECTION A STUDENT MATERIAL. Part 1. What and Why.?

CISC 320 Introduction to Algorithms Spring 2014

Core 2 Logarithms and exponentials. Section 1: Introduction to logarithms

SIMPLE NONLINEAR GRAPHS

Surds and Indices. Surds and Indices. Curriculum Ready ACMNA: 233,

Continuity. Recall the following properties of limits. Theorem. Suppose that lim. f(x) =L and lim. lim. [f(x)g(x)] = LM, lim

Bases for Vector Spaces

Discrete Structures Lecture 11

adjacent side sec 5 hypotenuse Evaluate the six trigonometric functions of the angle.

CS311 Computational Structures Regular Languages and Regular Grammars. Lecture 6

Algebra 2 Semester 1 Practice Final

Lecture 11 Binary Decision Diagrams (BDDs)

Preview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms

Lecture 3. XML Into RDBMS. XML and Databases. Memory Representations. Memory Representations. Traversals and Pre/Post-Encoding. Memory Representations

18.06 Problem Set 4 Due Wednesday, Oct. 11, 2006 at 4:00 p.m. in 2-106

Numbers and indices. 1.1 Fractions. GCSE C Example 1. Handy hint. Key point

T 1 T 2 T 3 T 4 They may be illustrated by triangular patterns of numbers (hence their name) as shown:

CS 360 Exam 2 Fall 2014 Name

Welcome. Balanced search trees. Balanced Search Trees. Inge Li Gørtz

On the Power of BFS to Determine a Graphs Diameter

DA 3: The Mean Value Theorem

arxiv: v1 [cs.dm] 24 Jul 2017

6.5 Improper integrals

Convert the NFA into DFA

I 3 2 = I I 4 = 2A

Computational Biology Lecture 18: Genome rearrangements, finding maximal matches Saad Mneimneh

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.

12.4 Similarity in Right Triangles

A Primer on Continuous-time Economic Dynamics

m A 1 1 A ! and AC 6

Mathematics 10 Page 1 of 5 Properties of Triangle s and Quadrilaterals. Isosceles Triangle. - 2 sides and 2 corresponding.

GNFA GNFA GNFA GNFA GNFA

8.6 The Hyperbola. and F 2. is a constant. P F 2. P =k The two fixed points, F 1. , are called the foci of the hyperbola. The line segments F 1

Greedoid polynomial, chip-firing, and G-parking function for directed graphs. Connections in Discrete Mathematics

Section 1.3 Triangles

AQA Further Pure 2. Hyperbolic Functions. Section 2: The inverse hyperbolic functions

The Knapsack Problem. COSC 3101A - Design and Analysis of Algorithms 9. Fractional Knapsack Problem. Fractional Knapsack Problem

Factorising FACTORISING.

arxiv: v1 [cs.dm] 6 Jun 2017

H (2a, a) (u 2a) 2 (E) Show that u v 4a. Explain why this implies that u v 4a, with equality if and only u a if u v 2a.

Implication Graphs and Logic Testing

First Midterm Examination

Finite Automata-cont d

Discrete Structures, Test 2 Monday, March 28, 2016 SOLUTIONS, VERSION α

The Ellipse. is larger than the other.

The Shortest Path Problem Graph Algorithms - 3

Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem. Kleene s Theorem 2/16/15

Linear choosability of graphs

CHENG Chun Chor Litwin The Hong Kong Institute of Education

Graph Isomorphism. Graphs - II. Cayley s Formula. Planar Graphs. Outline. Is K 5 planar? The number of labeled trees on n nodes is n n-2

Monochromatic Plane Matchings in Bicolored Point Set

Graph width-parameters and algorithms

Logarithms LOGARITHMS.

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

XML and Databases. Exam Preperation Discuss Answers to last year s exam. Sebastian Maneth NICTA and UNSW

Part 4. Integration (with Proofs)

8.3 THE HYPERBOLA OBJECTIVES

6. Suppose lim = constant> 0. Which of the following does not hold?

, MATHS H.O.D.: SUHAG R.KARIYA, BHOPAL, CONIC SECTION PART 8 OF

5.2 Exponent Properties Involving Quotients

Maximum size of a minimum watching system and the graphs achieving the bound

Solutions to Problem Set #1

AP Calculus BC Chapter 8: Integration Techniques, L Hopital s Rule and Improper Integrals

CS 573 Automata Theory and Formal Languages

p-adic Egyptian Fractions

Boolean Algebra. Boolean Algebra

are fractions which may or may not be reduced to lowest terms, the mediant of ( a

(a) A partition P of [a, b] is a finite subset of [a, b] containing a and b. If Q is another partition and P Q, then Q is a refinement of P.

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Objective: To simplify quotients using the Laws of Exponents. Laws of Exponents. Simplify. Write the answer without negative exponents. 1.

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

CS241 Week 6 Tutorial Solutions

COMPUTING THE QUARTET DISTANCE BETWEEN EVOLUTIONARY TREES OF BOUNDED DEGREE

Logarithms. Logarithm is another word for an index or power. POWER. 2 is the power to which the base 10 must be raised to give 100.

ECE Microwave Engineering

approaches as n becomes larger and larger. Since e > 1, the graph of the natural exponential function is as below

Lecture 6: Coding theory

Lesson 4.1 Triangle Sum Conjecture

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Matrix- System of rows and columns each position in a matrix has a purpose. 5 Ex: 5. Ex:

Transcription:

Connetiit in Grphs CSH: Disrete Mthemtis Grph Theor II Instrtor: Işıl Dillig Tpil qestion: Is it possile to get from some noe to nother noe? Emple: Trin netork if there is pth from to, possile to tke trin from to n ie ers. If it s possile to get from to, e s n re onnete n there is pth eteen n Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Pths Emple A pth eteen n is seqene of eges tht strts t erte, moes long jent eges, n ens in. Emple:,,, is pth, t,, n,, re not Consier grph ith erties {,, z, } n eges (, ), (, ), (, z), (, z) Wht re ll the simple pths from z to? Length of pth is the nmer of eges trerse, e.g., length of,,, is A simple pth is pth tht oes not repet n eges Wht re ll the simple pths from to? Ho mn pths (n e non-simple) re there from to?,,, is simple pth t,, is not Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Conneteness Emple A grph is onnete if there is pth eteen eer pir of erties in the grph Emple: This grph not onnete; e.g., no pth from to Proe: Sppose grph G hs etl to erties of o egree, s n. Then G ontins pth from to. A onnete omponent of grph G is miml onnete sgrph of G Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II /

Cirits Cles A irit is pth tht egins n ens in the sme erte.,,,, n,,, re oth irits A simple irit oes not ontin the sme ege more thn one,,, is simple irit, t,,,, is not Length of irit is the nmer of eges it ontins, e.g., length of,,, is A le is simple irit ith no repete erties other thn the first n lst ones. For instne,,,,,,, is irit t not le Hoeer,,,, is le In this lss, e onl onsier irits of length or more Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 7/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 8/ Emple Proe: If grph hs n o length irit, then it lso hs n o length le. Hh? Rell tht not eer irit is le. Aoring to this theorem, if e n fin n o length irit, e n lso fin o length le. Proof Proe: If grph hs n o length irit, then it lso hs n o length le. Proof strong intion on the length of the irit. Emple:,,,,, is n o length irit, t grph lso ontins o length le Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 9/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 0/ Proof, ont. Proof, ont. Proe: If grph hs n o length irit, then it lso hs n o length le. Proe: If grph hs n o length irit, then it lso hs n o length le. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II /

Colorilit n Cles Emple Proe: If grph is -olorle, then ll les re of een length. Is this grph -olorle? Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Distne Beteen Verties More Colorilit n Cles The istne eteen to erties n is the length of the shortest pth eteen n Wht is the istne eteen n? Proe: If grph hs no o length les, then grph is -olorle. To proe this, e first onsier n lgorithm for oloring the grph ith to olors. Wht is the istne eteen n? Wht is the istne eteen n? Then, e ill sho tht this lgorithm orks if grph oes not he o length les. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / The Algorithm Pik n erte in the grph. If erte hs o istne from, olor it le Otherise, olor it re Proof We ill no proe: If the grph oes not he o length les, the lgorithm is orret. Corretness of the lgorithm implies grph is -olorle. e Proof ontrition. f Sppose grph oes not he o length les, t the lgorithm proes n inli oloring. Mens there eist to erties n tht re ssigne the sme olor. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 7/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 8/

Proof, ont. Cse : The re oth ssigne re Ptting It All Together We kno n, m re oth een n m This mens e no he n o-length irit inoling n, m B theorem from erlier, this implies tht grph hs o length le, i.e., ontrition Theorem: A grph is -olorle if n onl if it oes not he o-length les Corollr: A grph is iprtite if n onl if it oes not he o-length les Emple: Consier grph G ith erties,,,, e, f Is G prtitle if its eges re (, f ), (e, f ), (e, ), (, ), (, )? Cse is etl the sme. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 9/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 0/ Trees A tree is onnete nirete grph ith no les. Ft Aot Trees Emples n non-emples: Theorem: An nirete grph G is tree if n onl if there is niqe simple pth eteen n to of its erties. 7 7 e An nirete grph ith no les is forest. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Lees of Tree Gien tree, erte of egree is lle lef. Internl noes Lees Importnt ft: Eer tree ith more thn noes hs t lest to lees. 7 Wh is this tre? Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II /

Nmer of Eges in Tree Roote Trees Theorem: A tree ith n erties hs n eges. Proof is intion on n Bse se: n = Intion: Assme propert for tree ith n erties, n sho tree T ith n + erties hs n eges Constrt T remoing lef from T ; T is tree ith n erties (tree ese onnete n no les) B IH, T hs n eges A roote tree hs esignte root erte n eer ege is irete from the root. Verte is prent of erte if there is n ege from to ; n is lle hil of Verties ith the sme prent re lle silings Verte is n nestor of if is s prent or n nestor of s prent. Verte is esennt of if is s nestor A lef k: n + erties n n eges Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Qestions ot Roote Trees Strees Sppose tht erties n re silings in roote tree. Gien roote tree n noe, the stree roote t inles n its esennts. Whih sttements ot n re tre?. The mst he the sme nestors. The n he ommon esennt. If is lef, then mst lso e lef Leel of erte is the length of the pth from the root to. The height of tree is the mimm leel of its erties. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 7/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 8/ Tre-Flse Qestions. To silings n mst e t the sme leel.. A lef erte oes hot he stree.. The strees roote t n n he the sme height onl if n re silings. m-r Trees A roote tree is lle n m-r tree if eer erte hs no more thn m hilren. An m-r tree here m = is lle inr tree. A fll m-r tree is tree here eer internl noe hs etl m hilren. Whih re fll inr trees?. The leel of the root erte is. Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 9/ Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II 0/

Usefl Theorem Corollr Theorem: An m-r tree of height h ontins t most m h lees. Proof is intion on height h. Corollr: If m-r tree hs height h n n lees, then h log m n Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Qestions Blne Trees An m-r tree is lne if ll lees re t leels h or h Wht is mimm nmer of lees in inr tree of height? If inr tree hs 00 lees, ht is loer on on its height? If inr tree hs lees, ht is n pper on on its height? Eer fll tree mst e lne. tre or flse? Eer lne tree mst e fll. tre or flse? Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II / Instrtor: Işıl Dillig, CSH: Disrete Mthemtis Grph Theor II /