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

Similar documents
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)

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

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

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

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

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

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

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

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

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

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

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

CS 241 Analysis of Algorithms

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

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

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

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

Planar Upward Drawings

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

Constructive Geometric Constraint Solving

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

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

COMP108 Algorithmic Foundations

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

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

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

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

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

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

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

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

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

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

Grade 7/8 Math Circles March 4/5, Graph Theory I- Solutions

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

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

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

The University of Sydney MATH 2009

Present state Next state Q + M N

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

Chapter 9. Graphs. 9.1 Graphs

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?

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

12. Traffic engineering

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

QUESTIONS BEGIN HERE!

Complete Solutions for MATH 3012 Quiz 2, October 25, 2011, WTT

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

CSI35 Chapter 11 Review

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

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

Minimum Spanning Trees

QUESTIONS BEGIN HERE!

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

Problem solving by search

Trees as operads. Lecture A formalism of trees

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

This chapter covers special properties of planar graphs.

Solutions to Homework 5

Quartets and unrooted level-k networks

1 Introduction to Modulo 7 Arithmetic

A 43k Kernel for Planar Dominating Set using Computer-Aided Reduction Rule Discovery

GREEDY TECHNIQUE. Greedy method vs. Dynamic programming method:

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

Garnir Polynomial and their Properties

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

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

Section 3: Antiderivatives of Formulas

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

DUET WITH DIAMONDS COLOR SHIFTING BRACELET By Leslie Rogalski

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

EE1000 Project 4 Digital Volt Meter

Seven-Segment Display Driver

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

Scientific Programming. Graphs

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

Outline. Binary Tree

Designing A Concrete Arch Bridge

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

Numbering Boundary Nodes

Discovering Pairwise Compatibility Graphs

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

arxiv: v1 [math.co] 15 Dec 2015

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

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

Graph Contraction and Connectivity

Last time: introduced our first computational model the DFA.

Computational Biology, Phylogenetic Trees. Consensus methods

Walk Like a Mathematician Learning Task:

CIT 596 Theory of Computation 1. Graphs and Digraphs

C-201 Sheet Bar Measures 1 inch

d e c b a d c b a d e c b a a c a d c c e b

Construction 11: Book I, Proposition 42

Examples and applications on SSSP and MST

Two Approaches to Analyzing the Permutations of the 15 Puzzle

10/30/12. Today. CS/ENGRD 2110 Object- Oriented Programming and Data Structures Fall 2012 Doug James. DFS algorithm. Reachability Algorithms

Transcription:

Pths.. Eulr n Hmilton Pths..

Pth D. A pth rom s to t is squn o gs {x 0, x 1 }, {x 1, x 2 },... {x n 1, x n }, whr x 0 = s, n x n = t. D. Th lngth o pth is th numr o gs in it. {, } {, } {, } {, } {, } {, } {, } p. 2

Simpl pth. Cyl D. A simpl pth is pth tht os not ontin th sm g mor thn on. D. A pth is ll yl (or iruit) i its irst n lst vrtis r th sm, n its lngth is grtr thn 0. D. A simpl syl is yl tht os not ontin th sm g mor thn on. p. 3

Pths n yls in irt grphs? Thr r similr initions or pths n yls in irt grphs. p. 4

Connt grph D. An unirt grph is ll onnt i thr is pth twn vry pir o istint vrtis o th grph. p. 5

Connt ompomnts g h j i D. A onnt omponnt o grph G is onnt sugrph o G tht is not propr sugrph o nothr onnt sugrph o G. (So, onnt omponnt is mximl onnt sugrph) Qustion: How mny onnt omponnts is in th grph? p. 6

Vrtx ut g h D. A vrtx ut V is sust o vrtis, suh tht th grph oms isonnt, i V n thir inint gs r rmov. p. 7

Vrtx ut g g h h D. A vrtx ut V is sust o vrtis, suh tht th grph oms isonnt, i V n thir inint gs r rmov. Exmpl: V = {}. This is on o thr minimum vrtx uts in this grph. Cn you in th othr two? p. 8

Vrtx ut D. A vrtx ut V is sust o vrtis, suh tht th grph oms isonnt, i V n thir inint gs r rmov. Fin vrtx ut. p. 9

Eg ut g h D. An g ut E is sust o gs, suh tht th grph oms isonnt, i th gs E r rmov. p. 10

Eg ut g h D. An g ut E is sust o gs, suh tht th grph oms isonnt, i th gs E r rmov. p. 11

Distn n imtr g h D. Th istn twn two vrtis in grph is th lngth o th shortst pth twn thm. istn(, g) = 2 D. Th imtr o grph is th istn twn th two vrtis tht r rthst prt. imtr = 3 p. 12

Eulr pth n yl D. An Eulr yl in grph G is simpl yl ontining vry g o G. Similrly, n Eulr pth in G is simpl pth ontining vry g o G. (In simpl pth (or yl), gs r not rpt) p. 13

Eulr yl Wlk ross ll th rigs on. An gt k to th originl lotion. Wht i w uil two nw rigs? p. 14

Eulr yl Wlk ross ll th rigs on. An gt k to th originl lotion. Wht i w uil two nw rigs? p. 15

Osrvtion Lt s sy tht w ross rig to th vrtx. Wht is th onition to ontinu wlking? Thr shoul t lst on mor rig t th vrtx. p. 16

Osrvtion Lt s sy tht w ross rig to th vrtx. Wht is th onition to ontinu wlking? Thr shoul t lst on mor rig t th vrtx. p. 17

Osrvtion Whn w ntr vrtx n thn lv it, w us two rigs. So, vry tim w visit vrtx, two rigs r gon. p. 18

Fining n Eulr yl I w visit vrtx, w us two rigs. I thr is n vn numr o rigs t th vrtx, thn tr our visit, thr is still n vn numr o rigs. I vrtx hs only on rig, it n only th inl point in th pth. p. 19

Nssry n suiint onition or Eulr yls Thorm. A onnt multigrph with t lst two vrtis hs n Eulr yl i n only i h o its vrtis hs vn gr. p. 20

Nssry n suiint onition or Eulr yls Thorm. A onnt multigrph with t lst two vrtis hs n Eulr yl i n only i h o its vrtis hs vn gr. j i h g Construting n Eulrin yl tks linr tim in th numr o gs! This is iint. k p. 21

Eulr pth Thorm. A onnt multigrph hs n Eulr pth ut not n Eulr yl i n only i it hs xtly two vrtis o o gr. p. 22

Iosin Puzzl A puzzl invnt in 1857 y Sir Willim Rown Hmilton: Th tsk is to trvl long th gs o ohron, visit h o 20 vrtis xtly on, n n k t th irst vrtx. p. 23

Iosin Puzzl A puzzl invnt in 1857 y Sir Willim Rown Hmilton: Th tsk is to trvl long th gs o ohron, visit h o 20 vrtis xtly on, n n k t th irst vrtx. p. 24

Iosin Puzzl A puzzl invnt in 1857 y Sir Willim Rown Hmilton: Th tsk is to trvl long th gs o ohron, visit h o 20 vrtis xtly on, n n k t th irst vrtx. p. 25

Hmilton pth g D. A simpl pth in grph G tht psss through vry vrtx xtly on is ll Hmilton pth. An simpl yl in grph G tht psss through vry vrtx xtly on is ll Hmilton yl. p. 26

Suiint onitions or yl Thorm (Dir s thorm). I G is simpl grph with n vrtis with n 3 suh tht th gr o vry vrtx in G is t lst n/2, thn G hs Hmilton yl. Thorm (Or s thorm). I G is simpl grph with n vrtis with n 3 suh tht g(u) + g(v) n or vry pir o nonjnt vrtis u n v in G, thn G hs Hmilton yl. p. 27

Algorithm or ining yl? Th st lgorithms known or ining Hmilton yl in grph or trmining tht no suh yl xists hv xponntil worst-s tim omplxity in th numr o vrtis o th grph. In t, this is n NP-omplt prolm. p. 28

Mor Hmilton yls Th mous Trvling Slsprson Prolm (TSP): Fin th shortst rout trvling slsprson shoul tk to visit givn st o itis. It rus to ining Hmilton yl on omplt grph suh tht th totl wight o th pth is th smllst. p. 29

Qustion: Is it possil to join ths houss n utilitis so tht non o th onntions ross? Hous 1 Hous 2 Hous 3 Gs Wtr Eltriity This is omplt iprtit grph, not y K 3,3. p. 30

Qustion: Is it possil to join ths houss n utilitis so tht non o th onntions ross? Hous 1 Hous 2 Hous 3 Gs Wtr Eltriity This is omplt iprtit grph, not y K 3,3. p. 31

D. A grph is ll plnr i it n rwn in th pln without ny gs rossing. Complt grph K 4 is plnr: p. 32

D. A grph is ll plnr i it n rwn in th pln without ny gs rossing. 3-imnsionl hypru grph, Q 3, is plnr: h g h g p. 33

Eulr ormul A rwing o plnr grph ivis th pln into s, rgions oun y gs o th grph. our s: 4 1 2 3 Thorm (Eulr ormul). Lt G onnt plnr simpl grph with gs n v vrtis. Lt r th numr o s in plnr rprsnttion o G. Thn v + = 2. p. 34

Thorm (Kurtowski). A grph is plnr i n only i it os not ontin suivision o K 3,3 or K 5. Wht is suivision? Insrting nw vrtx into n xisting g o grph is ll suiviing th g, n on or mor suivisions o gs rt suivision o th originl grph. K 3,3 K 5 p. 35