CIT 596 Theory of Computation 1. Graphs and Digraphs

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

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

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)}

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

Proportions: A ratio is the quotient of two numbers. For example, 2 3

Lecture 11 Binary Decision Diagrams (BDDs)

Logic, Set Theory and Computability [M. Coppenbarger]

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.

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

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

CS 491G Combinatorial Optimization Lecture Notes

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

Lecture 6: Coding theory

Answers and Solutions to (Some Even Numbered) Suggested Exercises in Chapter 11 of Grimaldi s Discrete and Combinatorial Mathematics

arxiv: v2 [math.co] 31 Oct 2016

I 3 2 = I I 4 = 2A

Lecture 4: Graph Theory and the Four-Color Theorem

PROPERTIES OF TRIANGLES

Comparing the Pre-image and Image of a Dilation

Algebra 2 Semester 1 Practice Final

April 8, 2017 Math 9. Geometry. Solving vector problems. Problem. Prove that if vectors and satisfy, then.

Lecture 2: Cayley Graphs

Section 1.3 Triangles

Section 2.3. Matrix Inverses

On a Class of Planar Graphs with Straight-Line Grid Drawings on Linear Area

On the Spectra of Bipartite Directed Subgraphs of K 4

Solutions to Problem Set #1

for all x in [a,b], then the area of the region bounded by the graphs of f and g and the vertical lines x = a and x = b is b [ ( ) ( )] A= f x g x dx

F / x everywhere in some domain containing R. Then, + ). (10.4.1)

Convert the NFA into DFA

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

Free groups, Lecture 2, part 1

Geometry of the Circle - Chords and Angles. Geometry of the Circle. Chord and Angles. Curriculum Ready ACMMG: 272.

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

Graph width-parameters and algorithms

Eigenvectors and Eigenvalues

The DOACROSS statement

NON-DETERMINISTIC FSA

Designing finite automata II

STRAND I: Geometry and Trigonometry. UNIT 32 Angles, Circles and Tangents: Student Text Contents. Section Compass Bearings

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

Section 4.4. Green s Theorem

Graph States EPIT Mehdi Mhalla (Calgary, Canada) Simon Perdrix (Grenoble, France)

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.

CS 573 Automata Theory and Formal Languages

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER MACHINES AND THEIR LANGUAGES ANSWERS

CHEM1611 Answers to Problem Sheet 9

1 Nondeterministic Finite Automata

Trigonometry and Constructive Geometry

Analysis of Temporal Interactions with Link Streams and Stream Graphs

Common intervals of genomes. Mathieu Raffinot CNRS LIAFA

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

Vidyalankar S.E. Sem. III [CMPN] Discrete Structures Prelim Question Paper Solution

Compression of Palindromes and Regularity.

Computing data with spreadsheets. Enter the following into the corresponding cells: A1: n B1: triangle C1: sqrt

CS 360 Exam 2 Fall 2014 Name

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Lecture 08: Feb. 08, 2019

A Study on the Properties of Rational Triangles

Directed acyclic graphs with the unique dipath property

Particle Physics. Michaelmas Term 2011 Prof Mark Thomson. Handout 3 : Interaction by Particle Exchange and QED. Recap

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

6.5 Improper integrals

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

Factorising FACTORISING.

Recent advances in analysis of evolutionary transpositions

f (x)dx = f(b) f(a). a b f (x)dx is the limit of sums

Formal Languages and Automata

APPENDIX. Precalculus Review D.1. Real Numbers and the Real Number Line

m m m m m m m m P m P m ( ) m m P( ) ( ). The o-ordinte of the point P( ) dividing the line segment joining the two points ( ) nd ( ) eternll in the r

Exercise sheet 6: Solutions

Nondeterministic Automata vs Deterministic Automata

CS 2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2014

Total score: /100 points

8.3 THE HYPERBOLA OBJECTIVES

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

Coding Techniques. Manjunatha. P. Professor Dept. of ECE. June 28, J.N.N. College of Engineering, Shimoga.

y = c 2 MULTIPLE CHOICE QUESTIONS (MCQ's) (Each question carries one mark) is...

Technische Universität München Winter term 2009/10 I7 Prof. J. Esparza / J. Křetínský / M. Luttenberger 11. Februar Solution

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Part 4. Integration (with Proofs)

Homework 3 Solutions

SEMI-EXCIRCLE OF QUADRILATERAL

( ) { } [ ] { } [ ) { } ( ] { }

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

Discrete Structures Lecture 11

8 THREE PHASE A.C. CIRCUITS

The master ring problem

MCH T 111 Handout Triangle Review Page 1 of 3

Regular expressions, Finite Automata, transition graphs are all the same!!

Euler and Hamilton Paths

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

System Validation (IN4387) November 2, 2012, 14:00-17:00

PAIR OF LINEAR EQUATIONS IN TWO VARIABLES

Necessary and sucient conditions for some two. Abstract. Further we show that the necessary conditions for the existence of an OD(44 s 1 s 2 )

Inspiration and formalism

CS261: A Second Course in Algorithms Lecture #5: Minimum-Cost Bipartite Matching

LESSON 11: TRIANGLE FORMULAE

Green s Theorem. (2x e y ) da. (2x e y ) dx dy. x 2 xe y. (1 e y ) dy. y=1. = y e y. y=0. = 2 e

Transcription:

CIT 596 Theory of Computtion 1 A grph G = (V (G), E(G)) onsists of two finite sets: V (G), the vertex set of the grph, often enote y just V, whih is nonempty set of elements lle verties, n E(G), the ege set of the grph, often enote y just E, whih is possily empty set of elements lle eges, suh tht eh ege e in E is ssigne n unorere pir (u, v) of verties, lle the en verties of e. Sometimes, it is onvenient to enote (u, v) y simply uv, or equivlently, vu.

CIT 596 Theory of Computtion 2 Consier the grph G = (V, E) suh tht V = {,,,, e} n E = {e 1, e 2, e 3, e 4, e 5, e 6, e 7, e 8 }, where e 1 (, ) e 2 (, ) e 3 (, ) e 4 (, ) e 5 (, ) e 6 (, e) e 7 (, e) e 8 (, e)

CIT 596 Theory of Computtion 3 A grph is often represente y igrm in whih verties re rwn s irles n eges s line or urve segments joining the irles representing the en verties of the ege. e 8 e 1 e e 7 e 2 e 5 e 6 e 3 e 4

CIT 596 Theory of Computtion 4 Verties re lso lle points, noes, or just ots. If e is n ege with en verties u n v then e is si to join u n v. Note tht the efinition of grph llows the possiility of the ege e hving ietil en verties, i.e., it is possile to hve vertex u joine to itself y n ege suh n ege is lle loop. If two (or more) eges hve the sme en verties then eges re lle prllel. A grph is lle simple is it hs no loops n no prllel eges.

CIT 596 Theory of Computtion 5 For n exmple of simple grph, onsier the grph G = (V, E) suh tht V = {,,, } n E = {e 1, e 2, e 3, e 4 }, where e 1 (, ) e 2 (, ) e 3 (, ) e 4 (, ) Some uthors use the term multigrph for grphs with loops n prllel eges, n reserve the term grph for simple grphs only. Sine we will el with grphs with loops very often, it is more onvenient not to mke this istintion.

CIT 596 Theory of Computtion 6 A pitoril representtion of the simple grph G in the previous slie: e 1 e 2 e 3 e 4

CIT 596 Theory of Computtion 7 The numer of verties in G is lle the orer of G. The numer of eges in G is lle the size of G. Two verties u n v of grph G re si to e jent if uv E(G). If uv E(G) then we sy tht u n v re non-jent verties. An ege e of grph G is si to e inient with or inient to the vertex v if v is n en vertex of e. In this se, we lso sy tht v is inient with or inient to e. Two eges e n f whih re inient with ommon vertex v re si to e jent.

CIT 596 Theory of Computtion 8 Let v e vertex of the grph G. The egree (v) of v is the numer of eges of G inient to v, ounting eh loop twie, i.e., it is the numer of times v is n en vertex of n ege. e For exmple, () = 1, () = 3, () = 3, () = 3, n (e) = 4 in the grph ove.

CIT 596 Theory of Computtion 9 The First Theorem of Grph Theory. For ny grph G with n e eges n n v verties v 1,..., v nv, we hve tht Chek y yourself: n v i=1 (v i ) = 2 n e. e

CIT 596 Theory of Computtion 10 A wlk in grph G is finite sequene W = v 0 e 1 v 1 e 2 v 2... v k 1 e k v k whose terms re lterntely verties n eges suh tht, for 1 i k, the ege e i hs en verties v i 1 n v i. We sy tht the ove wlk is v 0 v k wlk or wlk from v 0 to v k. The integer k, the numer of eges of the wlk, is lle the length of W. A trivil wlk is one ontining no eges.

CIT 596 Theory of Computtion 11 The sequene e 2 e 8 f e 6 e 3 e 4 e e 4 is wlk of length 6 in the grph elow. e 1 e 2 e 3 e 8 e 4 e 7 e 6 e 5 f e In simple grph, wlk is etermine y the sequene of verties only: f e.

CIT 596 Theory of Computtion 12 Given two verties u n v of grph G, u v wlk is lle lose or open epening on whether u = v or u v. If the eges e 1, e 2,..., e k of the wlk v 0 e 1 v 1 e 2 v 2... v k 1 e k v k re istint then W is lle tril. If the verties v 0, v 1,..., v k of the wlk v 0 e 1 v 1 e 2 v 2... v k 1 e k v k re istint then W is lle pth. For the grph in the previous slie, f e is f tril, ut not pth! The sequene f e is f e pth.

CIT 596 Theory of Computtion 13 A vertex u is si to e onnete to vertex v in grph G if there is pth in G from u to v. A grph G is onnete if every two verties of G re onnete; otherwise, G is isonnete. M N Connete Disonnete

CIT 596 Theory of Computtion 14 A nontrivil lose tril C = v 1 v 2... v n v 1 in grph G is lle yle if the verties v 2... v n re ll istint. A yle of length k, i.e., yle with k eges, is lle k-yle. For exmple, f is 3-yle in the grph elow: e 1 e 2 e 3 e 8 e 4 e 7 e 6 e 5 f e

CIT 596 Theory of Computtion 15 A grph G is si to e yli if it ontins no yles. A grph G is lle tree if it is onnete n yli. e The verties of egree (t most) 1 in tree re lle the leves of the tree.

CIT 596 Theory of Computtion 16 A irete grph (or simply igrph) D = (V (D), A(D)) onsists of two finite sets: V (D), the vertex set of the igrph, often enote y just V, whih is nonempty set of elements lle verties, n A(D), the r set of the igrph, often enote y just A, whih is possily empty set of elements lle rs, suh tht eh r in A is ssigne (orere) pir (u, v) of verties. If is n r in D with ssoite orere pir of verties (u, v), then is si to join u to v, u is lle the initil vertex of, n v is lle the terminl vertex of.

CIT 596 Theory of Computtion 17 For exmple, onsier the igrph D = (V (D), A(D)) suh tht V (D) = {,,,, e} n A(D) = {e 1, e 2, e 3, e 4, e 5, e 6 }, suh tht e 1 (, ), e 2 (, ), e 3 (, ), e 3 (, e), e 4 (e, ), n e 6 (e, e). e 6 e e 1 e 5 e 4 e 2 e 3

CIT 596 Theory of Computtion 18 Let D e igrph. Then irete wlk in D is finite sequene W = v 0 1 v 1... k v k, whose terms re lterntely verties n rs suh tht for 1 i k, the initil vertex of the r i is v i 1 n its terminl vertex is v i. The numer k of rs is the length of W. The wlk W given in the efinition ove is si to e v 0 v k irete wlk or irete wlk from v 0 to v k. There re similr efinitions for irete trils, irete pths, n irete yles.

CIT 596 Theory of Computtion 19 For exmple, onsier the igrph D elow: e 6 e e 1 e 5 e 4 e 2 e 3 The sequene e 1 e 3 e 4 e is e irete wlk, e irete tril, n e irete pth in D.

CIT 596 Theory of Computtion 20 A vertex v of the igrph D is si to e rehle from vertex u if there is irete pth from u to v. Given ny igrph D = (V (D), A(D)), we n otin grph G = (V (G), E(G)) from D s follows: Let V (G) = V (D) n E(G) = {e (, ) (, ) A(D)}. The grph G is the unerlying grph of D. A igrph D is si to e wekly onnete (or simply onnete) if its unerlying grph is onnete. A igrph D is si to e strongly onnete (or ionnete) if for ny pir of verties u n v in D there is irete pth from u to v.

CIT 596 Theory of Computtion 21 e 6 e 6 e e e 1 e 5 e 4 e 5 e 1 e 4 e 2 e 2 e 3 e 3 A igrph Its unerlying grph Is the ove irete grph onnete? If so, is it strongly onnete?

CIT 596 Theory of Computtion 22 Let v e vertex in igrph D. The inegree i(v) of v is the numer of rs of D tht hve v s the terminl vertex, i.e., the numer of rs tht go to to v. Similrly, the outegree o(v) of v is the numer of rs of D tht hve v s the initil vertex, i.e., the numer of rs tht go out of v. The First Theorem of Digrph Theory. Let D e igrph with n verties n q rs. If v 1,..., v n is the set of verties of D, then we hve tht n i=1 i(v i ) = n i=1 Cn you figure out the proof for this one? o(v i ) = q.