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

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

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

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

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

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

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

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

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

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

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

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

Planar Upward Drawings

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

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

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

Last time: introduced our first computational model the DFA.

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

COMP108 Algorithmic Foundations

Synchronization of regular automata

XV Quantum Electrodynamics

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

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

Constructive Geometric Constraint Solving

Winter 2016 COMP-250: Introduction to Computer Science. Lecture 23, April 5, 2016

CS September 2018

TURFGRASS DISEASE RESEARCH REPORT J. M. Vargas, Jr. and R. Detweiler Department of Botany and Plant Pathology Michigan State University

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

QUESTIONS BEGIN HERE!

DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski

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

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

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

CS 241 Analysis of Algorithms

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

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

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

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

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

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

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

Quartets and unrooted level-k networks

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...

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

Multi-Section Coupled Line Couplers

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

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

1 Introduction to Modulo 7 Arithmetic

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

Designing A Uniformly Loaded Arch Or Cable

Garnir Polynomial and their Properties

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

QUESTIONS BEGIN HERE!

Notes on Finite Automata Department of Computer Science Professor Goldberg Textbooks: Introduction to the Theory of Computation by Michael Sipser

DFA (Deterministic Finite Automata) q a

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

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

MATHEMATICS FOR MANAGEMENT BBMP1103

On-Line Construction. of Suffix Trees. Overview. Suffix Trees. Notations. goo. Suffix tries

CSI35 Chapter 11 Review

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

MAT 1275: Introduction to Mathematical Analysis

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

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

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

Present state Next state Q + M N

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

What do you know? Listen and find. Listen and circle. Listen and chant. Listen and say. Lesson 1. sheep. horse

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

ADORO TE DEVOTE (Godhead Here in Hiding) te, stus bat mas, la te. in so non mor Je nunc. la in. tis. ne, su a. tum. tas: tur: tas: or: ni, ne, o:

Seven-Segment Display Driver

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

Chapter 9. Graphs. 9.1 Graphs

12. Traffic engineering

Formal Concept Analysis

Trees as operads. Lecture A formalism of trees

46 D b r 4, 20 : p t n f r n b P l h tr p, pl t z r f r n. nd n th t n t d f t n th tr ht r t b f l n t, nd th ff r n b ttl t th r p rf l pp n nt n th

1 Finite Automata and Regular Expressions

Problem solving by search

Designing A Concrete Arch Bridge

More on FT. Lecture 10 4CT.5 3CT.3-5,7,8. BME 333 Biomedical Signals and Systems - J.Schesser

Polygons POLYGONS.

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

ELEG 413 Lecture #6. Mark Mirotznik, Ph.D. Professor The University of Delaware

ME 522 PRINCIPLES OF ROBOTICS. FIRST MIDTERM EXAMINATION April 19, M. Kemal Özgören

Walk Like a Mathematician Learning Task:

22 t b r 2, 20 h r, th xp t d bl n nd t fr th b rd r t t. f r r z r t l n l th h r t rl T l t n b rd n n l h d, nd n nh rd f pp t t f r n. H v v d n f

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

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

The University of Sydney MATH 2009

EECE 301 Signals & Systems Prof. Mark Fowler

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


n

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

² Ý ² ª ² Þ ² Þ Ң Þ ² Þ. ² à INTROIT. huc. per. xi, sti. su- sur. sum, cum. ia : ia, ia : am, num. VR Mi. est. lis. sci. ia, cta. ia.

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

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

Lecture 11 Waves in Periodic Potentials Today: Questions you should be able to address after today s lecture:

Multipoint Alternate Marking method for passive and hybrid performance monitoring

Transcription:

Mr Funtins Grphs, Pruts, & Rltins Unirt Grphs An unirt grph is pir f 1. A st f ns 2. A st f gs (whr n g is st f tw ns*) Friy, Sptmr 2, 2011 Ring: Sipsr 0.2 ginning f 0.4; Stughtn 1.1.5 ({,,,,}, {{,}, {,}, {,}, {,}, {,}, {,}}) CS235 Lngugs n Autmt Dprtmnt f Cmputr Sin Wllsly Cllg *This finitin s nt llw s-ll slf-gs frm n t itslf. W ul xtn th finitin t llw slf-gs, ut w wn t tht hr. Grphs, Pruts, & Rltins 3-2 Dgr Th gr f n is th numr gs t tht n. gr() = gr() = gr() = 3 gr() = 2 A Thrm Fr vry grph G, th sum f th grs f ll th ns in G is n vn numr. Sm sy ns Sm nt s sy gr() = 1 sum = 2 + 2 + 2 = 6 sum = 1 + 3 + 3 + 4 + 4 + 2 + (7*1) = 24 Grphs, Pruts, & Rltins 3-3 Grphs, Pruts, & Rltins 3-4

Ptin Grsshppr Right, s ff w g thn Fining prfs tks tim. Cnsir lts f (smll) xmpls t gin intuitin. Cm k t it. Lt th unnsius slf hlp yu. Us simpl, lr piturs n/r txt. B nis. Brvity hlps yu xprss high-lvl is withut gtting lst in th til. Thrm. Fr vry grph G, th sum f th grs f ll th ns in G is n vn numr. Prf. 1. Evry g in G is nnt t tw ns. 2. Eh g ntriuts n t th gr f h n t whih it is nnt. 3. Thrfr h g ntriuts tw t th sum f th grs f ll th ns. 4. Erg, if G ntins gs, thn th sum f th grs f ll th ns f G is 2, whih is n vn numr. Grphs, Pruts, & Rltins 3-5 Grphs, Pruts, & Rltins 3-6 A Prf y Cnstrutin A grph is 3-rgulr iff vry n hs gr 3. Pths A pth is squn f ns nnt y gs. Thrm. Fr h vn numr n grtr thn 2, thr xists 3-rgulr grph with n ns. Prf. Lt n n vn numr grtr thn 2. Cnstrut G = (V, E) with n ns s fllws... On nstrutin tht wrks fr n=8 pth (,,,) pth (,,,,,) Grphs, Pruts, & Rltins 3-7 Grphs, Pruts, & Rltins 3-8

Cyls A yl is pth ginning n ning t th sm n. A simpl yl rpts n ns xpt th first/lst. Cnntnss A grph is nnt iff thr is pth twn vry tw ns. simpl yl (,,,) nnt grph unnnt grph Grphs, Pruts, & Rltins 3-9 Grphs, Pruts, & Rltins 3-10 Trs A tr is nnt grph withut ny simpl yls. On f ths is tr: Pirs n Crss Pruts (, ) nts pir = n (rr) squn f tw lmnts. is th first (r lft) lmnt f th pir: first( (,) ) = is th sn (r right) lmnt f th pir: sn( (,) ) = Fr ny tw sts A n B, A x B = {(,)! A n! B }. This is ll th rss prut r Crtsin prut f A n B. E.g., Supps Sign = {-,0,+} Thn Bl x Sign = { (T, -), (F, -), - T F (T, 0), (F, 0), (T, +), (F, +) } 0 + Th siz f finit st S is writtn S. Wht is A x B in trms f A n B? Grphs, Pruts, & Rltins 3-11 Grphs, Pruts, & Rltins 3-12

Dirt Grphs An irt grph is pir f 1. A st f ns 2. A st f irt gs (whr h g is pir f tw ns*) ( {,,,,}, {(,), (.), (,), (,), (,), (,), (,), (,)} ) *This finitin s llw slf-gs frm n t itslf. Out-Dgr n In-Dgr In irt grph: A n s ut-gr is th numr gs lving it. A n s in-gr is th numr f gs ntring it. ut-gr() = 0 ut-gr() = 1 ut-gr() = ut-gr() = 2 ut-gr() = 3 in-gr() = 0 in-gr() = 1 in-gr() = in-gr() = 2 in-gr() = 3 Grphs, Pruts, & Rltins 2-13 Grphs, Pruts, & Rltins 2-14 Tupls n Gnrl Crss Pruts W n tk th rss prut f ny numr f sts. An lmnt f A 1 x A 2 x x A k is ll k-tupl. Fr smll k, k-tupls hv spil nms: k k-tupl k k-tuipl 0 unit 5 quintupl, pntupl 1 singltn 6 sxtupl, hxtupl 2 pir, upl 7 sptupl 3 tripl 8 tupl 4 qurupl 9 nnupl A k stns fr A x A x x A (k tims). A 1 is nsir synnym fr A. A 0 is nsir synnym fr Unit = {unit} ( 1-lmnt st)! Chrtrs n Strings Fr th tim ing*, w ll fin Chr = {,,,, A, B, C,.., 0, 1, 2, } String = { s s! Chr k fr sm k! Nt} Th lngth f string is th siz f its tupl. Strings r usully writtn using ul-qut nttin r n-qut nttin rthr thn s tupls: tupl ul-qut n-qut lngth (C, S, 2, 3, 5) CS235 CS235 5 () 1 () " 0 * Ltr w ll s tht Strings n prmtriz vr n lpht. Grphs, Pruts, & Rltins 3-15 Grphs, Pruts, & Rltins 3-16

Binry Rltins A inry rltin n A n B is ny sust f A x B. Exmpls: ntinschr = {(s, ) s! String,! Chr, is hr in s} issqrtof = {(i, n) i! Int, n! Nt, i 2 = n} Sm Binry Rltin Dfinitins Th invrs f inry rltin R n A n B is th rltin R -1 = {(,)! B,! A, n (, )! R). E.g. ntinschr -1 qu, 9 issqrtof -1-3 lst = {(, ),! Nt n # 2} smln = {(s, t) s, t! String, lngth(s) = lngth(t)} If R is inry rltin, (, )! R is ftn rvit s R (infix nttin) r R(,) (prfix nttin). E.g. qu ntinschr r ntinschr( qu, ) -3 issqrtof 9 r issqrtof(-3, 9) 5 lst 3 r lst(5, 3) A inry rltin n A is ny sust f A x A. E.g., lst n Nt, smln n String Rltins n gnrliz t ny numr f sts. Grphs, Pruts, & Rltins 3-17 A inry rltin R n A is: rflxiv iff R fr ll!a. symmtri iff x R y implis y R x. trnsitiv iff (x R y n y R z) implis x R z. An quivln rltin is n tht s rflxiv, symmtri, n trnsitiv. Rltin rflxiv? symmtri? trnsitiv? quiv. rl.? = n Int < n Int lst smln Grphs, Pruts, & Rltins 3-18 Clsurs f Binry Rltins Supps R is inry rltin n A. Th rflxiv lsur RC f R is th smllst suprst f R tht s rflxiv: RC = R U {(, )! A}. Th trnsitiv lsur TC f R is th smllst suprst f R tht s trnsitiv. I.., it is th smllst rltin TC suh tht (1) R $ TC n (2) (x, y)! TC n (y, z)! TC implis (x, z)! TC. Th rflxiv trnsitiv lsur f R is th rflxiv lsur f th trnsitiv lsur f R. E.g. Simpl = {(0,5), (5, 3), (3, 8)} (A = {0, 3, 5, 8}) isonlss = {(i, i+1) i! Int} Rltin Rfl. Cls. Trns. Cls. Rfl. Trns. Cls, Simpl isonlss Grphs, Pruts, & Rltins 3-19