Graphs. Graphs. Graphs: Basic Terminology. Directed Graphs. Dr Papalaskari 1

Similar documents
Graphs. CSC 1300 Discrete Structures Villanova University. Villanova CSC Dr Papalaskari

Paths. Connectivity. Euler and Hamilton Paths. Planar graphs.

CS200: Graphs. Graphs. Directed Graphs. Graphs/Networks Around Us. What can this represent? Sometimes we want to represent directionality:

12/3/12. Outline. Part 10. Graphs. Circuits. Euler paths/circuits. Euler s bridge problem (Bridges of Konigsberg Problem)

5/9/13. Part 10. Graphs. Outline. Circuits. Introduction Terminology Implementing Graphs

Outline. Circuits. Euler paths/circuits 4/25/12. Part 10. Graphs. Euler s bridge problem (Bridges of Konigsberg Problem)

Section 10.4 Connectivity (up to paths and isomorphism, not including)

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

An undirected graph G = (V, E) V a set of vertices E a set of unordered edges (v,w) where v, w in V

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

CSC Design and Analysis of Algorithms. Example: Change-Making Problem

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

More Foundations. Undirected Graphs. Degree. A Theorem. Graphs, Products, & Relations

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

CSE 373. Graphs 1: Concepts, Depth/Breadth-First Search reading: Weiss Ch. 9. slides created by Marty Stepp

CS 241 Analysis of Algorithms

The University of Sydney MATH2969/2069. Graph Theory Tutorial 5 (Week 12) Solutions 2008

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

CS 461, Lecture 17. Today s Outline. Example Run

Algorithmic and NP-Completeness Aspects of a Total Lict Domination Number of a Graph

5/7/13. Part 10. Graphs. Theorem Theorem Graphs Describing Precedence. Outline. Theorem 10-1: The Handshaking Theorem

b. How many ternary words of length 23 with eight 0 s, nine 1 s and six 2 s?

Solutions to Homework 5

CS61B Lecture #33. Administrivia: Autograder will run this evening. Today s Readings: Graph Structures: DSIJ, Chapter 12

Constructive Geometric Constraint Solving

Planar Upward Drawings

1. Determine whether or not the following binary relations are equivalence relations. Be sure to justify your answers.

Outline. 1 Introduction. 2 Min-Cost Spanning Trees. 4 Example

, each of which is a tree, and whose roots r 1. , respectively, are children of r. Data Structures & File Management

0.1. Exercise 1: the distances between four points in a graph

Chapter 9. Graphs. 9.1 Graphs

COMP108 Algorithmic Foundations

Graph Theory. Vertices. Vertices are also known as nodes, points and (in social networks) as actors, agents or players.

learning objectives learn what graphs are in mathematical terms learn how to represent graphs in computers learn about typical graph algorithms

Why the Junction Tree Algorithm? The Junction Tree Algorithm. Clique Potential Representation. Overview. Chris Williams 1.

1 Introduction to Modulo 7 Arithmetic

FSA. CmSc 365 Theory of Computation. Finite State Automata and Regular Expressions (Chapter 2, Section 2.3) ALPHABET operations: U, concatenation, *

Exam 1 Solution. CS 542 Advanced Data Structures and Algorithms 2/14/2013

Outline. Computer Science 331. Computation of Min-Cost Spanning Trees. Costs of Spanning Trees in Weighted Graphs

Announcements. Not graphs. These are Graphs. Applications of Graphs. Graph Definitions. Graphs & Graph Algorithms. A6 released today: Risk

Solutions for HW11. Exercise 34. (a) Use the recurrence relation t(g) = t(g e) + t(g/e) to count the number of spanning trees of v 1

Module graph.py. 1 Introduction. 2 Graph basics. 3 Module graph.py. 3.1 Objects. CS 231 Naomi Nishimura

QUESTIONS BEGIN HERE!

Nefertiti. Echoes of. Regal components evoke visions of the past MULTIPLE STITCHES. designed by Helena Tang-Lim

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

Trees as operads. Lecture A formalism of trees

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

MAT3707. Tutorial letter 201/1/2017 DISCRETE MATHEMATICS: COMBINATORICS. Semester 1. Department of Mathematical Sciences MAT3707/201/1/2017

CSE303 - Introduction to the Theory of Computing Sample Solutions for Exercises on Finite Automata

CS September 2018

EE1000 Project 4 Digital Volt Meter

12. Traffic engineering

Steinberg s Conjecture is false

Present state Next state Q + M N

N=4 L=4. Our first non-linear data structure! A graph G consists of two sets G = {V, E} A set of V vertices, or nodes f

(2) If we multiplied a row of B by λ, then the value is also multiplied by λ(here lambda could be 0). namely

QUESTIONS BEGIN HERE!

Numbering Boundary Nodes

Announcements. These are Graphs. This is not a Graph. Graph Definitions. Applications of Graphs. Graphs & Graph Algorithms

Weighted graphs -- reminder. Data Structures LECTURE 15. Shortest paths algorithms. Example: weighted graph. Two basic properties of shortest paths

Using the Printable Sticker Function. Using the Edit Screen. Computer. Tablet. ScanNCutCanvas

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

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

Minimum Spanning Trees

NP-Completeness. CS3230 (Algorithm) Traveling Salesperson Problem. What s the Big Deal? Given a Problem. What s the Big Deal? What s the Big Deal?

CIT 596 Theory of Computation 1. Graphs and Digraphs

ECE 407 Computer Aided Design for Electronic Systems. Circuit Modeling and Basic Graph Concepts/Algorithms. Instructor: Maria K. Michael.

(a) v 1. v a. v i. v s. (b)

The Equitable Dominating Graph

Walk Like a Mathematician Learning Task:

Construction 11: Book I, Proposition 42

CSI35 Chapter 11 Review

Seven-Segment Display Driver

Last time: introduced our first computational model the DFA.

Scientific Programming. Graphs

Graph Contraction and Connectivity

A Simple Code Generator. Code generation Algorithm. Register and Address Descriptors. Example 3/31/2008. Code Generation

This chapter covers special properties of planar graphs.

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method:

CMSC 451: Lecture 2 Graph Basics Thursday, Aug 31, 2017

Aquauno Video 6 Plus Page 1

Round 7: Graphs (part I)

Lecture 20: Minimum Spanning Trees (CLRS 23)

Polygons POLYGONS.

Instructions for Section 1

Uniform 2D-Monotone Minimum Spanning Graphs

Greedy Algorithms, Activity Selection, Minimum Spanning Trees Scribes: Logan Short (2015), Virginia Date: May 18, 2016

Compression. Compression. Compression. This part of the course... Ifi, UiO Norsk Regnesentral Vårsemester 2005 Wolfgang Leister

Discovering Pairwise Compatibility Graphs

Chapter 18. Minimum Spanning Trees Minimum Spanning Trees. a d. a d. a d. f c

Integration Continued. Integration by Parts Solving Definite Integrals: Area Under a Curve Improper Integrals

IEEE TRANSACTIONS ON COMPUTATIONAL BIOLOGY AND BIOINFORMATICS, VOL. TK, NO. TK, MONTHTK YEARTK 1. Hamiltonian Walks of Phylogenetic Treespaces

# 1 ' 10 ' 100. Decimal point = 4 hundred. = 6 tens (or sixty) = 5 ones (or five) = 2 tenths. = 7 hundredths.

The Plan. Honey, I Shrunk the Data. Why Compress. Data Compression Concepts. Braille Example. Braille. x y xˆ

Decimals DECIMALS.

Section 3: Antiderivatives of Formulas

Page 1. Question 19.1b Electric Charge II Question 19.2a Conductors I. ConcepTest Clicker Questions Chapter 19. Physics, 4 th Edition James S.

Quartets and unrooted level-k networks

DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski

Transcription:

CSC 00 Disrt Struturs : Introuon to Grph Thory Grphs Grphs CSC 00 Disrt Struturs Villnov Univrsity Grphs r isrt struturs onsisng o vrs n gs tht onnt ths vrs. Grphs n us to mol: omputr systms/ntworks mthml rlons logi iruit lyout jos/prosss Qus%ons n isomorphism n yls/pths n plnrity n oloring Grphs: Bsi Trminology A grph is in s G = (V, E) with th st o vrs V n st o gs E Two vrs u n v in n unirt grph G r jnt (or nighors) i {u, v} is n g o G. Th g is si to onnt (or to inint with) u n v. orr o grph = numr o vrs G = ({v, v,,v }, {, }) grph o orr g: g onnts v n v v v v G Dirt Grphs By inion, th gs o irt grph r orr pirs. In irt grph, i w hv g = (u,v), thn u is si to jnt to v, th trminl vrtx v is si to jnt rom u, th inil vrtx = (,) = (,) = (,) = (,) = (,) Dr Pplskri

CSC 00 Disrt Struturs : Introuon to Grph Thory Typ Typs o Grphs Egs Multipl Egs? Simpl grph Unirt No No Multigrph Unirt Ys No Psuogrph Unirt Ys Ys Dirt grph Dirt No Ys Dirt multigrph Dirt Ys Ys Trminology vris sur to hk inions whn onsulng othr ooks/rls Loops? Dgr o vrtx Th gr o vrtx v is th numr o gs inint on v. Dnot g(v) A loop on v ontriuts to th g(v) Exmpl: g() = g() = g() = g() = 0 g() = Hnshking Lmm In n unirt grph, th sum o th grs o th vrs is twi th numr o gs. Thror, th sum o th grs o ll th vrs is vn. Σ g(v) = E. v V Corollry: An unirt grph hs n vn numr o vrs o o gr. Pth A wlk gins t vrtx v 0, ollows n g to v, ollows nothr g to v A wlk is rprsnt without gs whn thr r no prlll gs (v 0, v, v, v n ) Si to o lngth n A tril rom v 0 to v n is wlk with no rpt gs. A pth rom v 0 to v n is wlk with no rpt vrs. A wlk is los i it strts n ns in th sm vrtx; othrwis th wlk is si to opn Dr Pplskri

CSC 00 Disrt Struturs : Introuon to Grph Thory Ciruits n yls A iruit is los tril o lngth grtr thn. Som yls: (,,,,,) (,,,,,,) (,,,,,,) (,,,,,,) (,,,,,) A yl (or simpl iruit) is iruit rom v to v with no rpt vrtx, xpt v. -yl or tringl: yl o lngth k-yl: yl o lngth k Connt Grph A grph G is onnt i givn ny vrs v n v in G, thr is pth rom v to v. Connt onnt omponnts Not Connt Biprt Grph A simpl grph is ll ipr@t i its vrtx st V n pron into isjoint sts V n V suh tht vry g in th grph onnts vrtx in V to vrtx in V. Bipr%t V = {,,} V = {,} V V Not Bipr%t Aionl onpts (s txt) mulprt rig ut- vrtx isonnt onnt omponnt Dr Pplskri

CSC 00 Disrt Struturs : Introuon to Grph Thory Spil Grphs Cyl C n Cyl P n Whls W n Complt grph K n Complt Biprt K n,m -rgulr: ll vrs hv gr n-rgulr: ll vrs hv gr n. Tr: onnt grph with no yls Forst: grph with no yls Complmnt Lt G = (V, E) Th omplmnt G = (V, E ) whr E = {{u,v} u V n v V n {u,v} E} Exmpl: Wht is th omplmnt o G? G G Union Th union o G =(V,E ) n G =(V,E ) is th grph: G G = (V V, E E ) Exmpl: G A onnt omponnt o grph is sugrph tht is onnt. G G Sugrph H is sugrph o G i V(H) V(G) n E(H) E(G) Exmpl: G is sugrph o G G H Dr Pplskri

CSC 00 Disrt Struturs : Introuon to Grph Thory Sugrphs H is n inu sugrph o G i whnvr two vrs o H r jnt in G, thy r lso jnt in H. in othr wors, H onsists o sust o G s vrs n ll th gs twn thm A sugrph H o grph G is spnning sugrph o G i V(H) = V(G). Rprsnton o Grphs V E {{,,,, }, {{,}, {,}, {,}, {,}, {,}, {,}, {,}} 7 Ajny list Ajny mtrix :,, :, :, :,, :,, mulst rprsnton (llows rpon) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 It mns two grphs r ssnlly th sm (my rwn irntly n r-ll) Sm numr o vrs Sm numr o gs Sm gr squn G Isomorphism G Somms it is hr to tll r ths ssnlly th sm grph? nssry ut NOT suiint onions Isomorphism Dinion: Two grphs G, G r isomorphi i thr xists ijon h : V(G ) à V(G ) suh tht {v, w} E(G ) i {h(v), h(w)} E(G ) In othr wors, h is ijon twn th vrs o th two grphs tht prsrvs gs In this s, th isomorphism unon is th inty unon. h() = h() = h() = h() = h() = h() = Dr Pplskri

CSC 00 Disrt Struturs : Introuon to Grph Thory Isomorphism Dinion: Two grphs G, G r isomorphi i thr xists ijon h : V(G ) à V(G ) suh tht {v, w} E(G ) i {h(v), h(w)} E(G ) In othr wors, h is ijon twn th vrs o th two grphs tht prsrvs gs i w rnumr th vrs, th grphs r sll isomorphi, ut w gt irnt isomorphism unon h() = h() = h() = h() = h() = h() = Isomorphism It mns two grphs r ssnlly th sm (my rwn irntly n r-ll) Sm numr o vrs Sm numr o gs Sm gr squn G Somms it is hr to tll r ths ssnlly th sm grph? G nssry ut NOT suiint onions NO G is -rgulr, whrs G is not (g, vrtx hs gr ) Isomorphism G Somms it is hr to tll r ths ssnlly th sm grph? G YES è Isomorphism unon: h() = h() = h() = h() = h() = h() = Dr Pplskri