Planar Upward Drawings

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

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

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

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.

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

COMPLEXITY OF COUNTING PLANAR TILINGS BY TWO BARS

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

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

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

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

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

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

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

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

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

CS 241 Analysis of Algorithms

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

Constructive Geometric Constraint Solving

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

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

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

1 Introduction to Modulo 7 Arithmetic

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

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

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

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

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

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

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

COMP108 Algorithmic Foundations

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

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

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

Present state Next state Q + M N

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

Trees as operads. Lecture A formalism of trees

Problem solving by search

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?

QUESTIONS BEGIN HERE!

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

The University of Sydney MATH 2009

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

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

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

Similarity Search. The Binary Branch Distance. Nikolaus Augsten.

Steinberg s Conjecture is false

QUESTIONS BEGIN HERE!

Outline. Binary Tree

Treemaps for Directed Acyclic Graphs

Solutions to Homework 5

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

Uniform 2D-Monotone Minimum Spanning Graphs

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

Register Allocation. Register Allocation. Principle Phases. Principle Phases. Example: Build. Spills 11/14/2012

Construction 11: Book I, Proposition 42

Decimals DECIMALS.

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

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

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

arxiv: v1 [math.co] 15 Dec 2015

Designing A Concrete Arch Bridge

Numbering Boundary Nodes

Graph Contraction and Connectivity

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

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

LEO VAN IERSEL TU DELFT

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

arxiv: v1 [cs.ds] 20 Feb 2008

Research Article On the Genus of the Zero-Divisor Graph of Z n

Weighted Graphs. Weighted graphs may be either directed or undirected.

Discovering Pairwise Compatibility Graphs

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

12. Traffic engineering

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

MCQ For Geometry. Similarity

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

Straight-line Grid Drawings of 3-Connected 1-Planar Graphs

CS September 2018

Tangram Fractions Overview: Students will analyze standard and nonstandard

overconstrained well constrained underconstrained a b c d e f g h i j k

Chem 104A, Fall 2016, Midterm 1 Key

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

EXAMPLE 87.5" APPROVAL SHEET APPROVED BY /150HP DUAL VFD CONTROL ASSEMBLY CUSTOMER NAME: CAL POLY SLO FINISH: F 20

CS 103 BFS Alorithm. Mark Redekopp

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

Depth First Search. Yufei Tao. Department of Computer Science and Engineering Chinese University of Hong Kong

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

EE1000 Project 4 Digital Volt Meter

Garnir Polynomial and their Properties

Multipoint Alternate Marking method for passive and hybrid performance monitoring

Analysis for Balloon Modeling Structure based on Graph Theory

This chapter covers special properties of planar graphs.

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

b.) v d =? Example 2 l = 50 m, D = 1.0 mm, E = 6 V, " = 1.72 #10 $8 % & m, and r = 0.5 % a.) R =? c.) V ab =? a.) R eq =?

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

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

CSI35 Chapter 11 Review

Transcription:

C.S. 252 Pro. Rorto Tmssi Computtionl Gomtry Sm. II, 1992 1993 Dt: My 3, 1993 Sri: Shmsi Moussvi Plnr Upwr Drwings 1 Thorm: G is yli i n only i it hs upwr rwing. Proo: 1. An upwr rwing is yli. Follow th hin rom th sour, sin it is upwr thn th Y oorint will only inrs; thror it n nvr rt yl. Not tht th rwing n not plnr. Figur 1: An upwr rwing. 2. An yli grph G hs n upwr rwing. On wy to show th xistn o n upwr rwing or G, woul to rw ll th vrtis o G long vrtil lin, with sour vrtis hving smllr Y vlu, whih woul mk th grph upwr. Th lgorithm woul s ollows: Fin th sours (vrtis with no inomming g), st it s Y vlu. 1

Do DFS srh to in th nxt vrtis (tr rmoving th sours) n ssign th nxt Y vlu to it. Although this rwing is not vry ni rwing o G, ut in it is upwr n th proo is omplt. 2 g 0 h 5 1 4 3 6 ) gs: g h 6 5 4 3 2 1 Y = 0 Figur 2: ) n yli rwing, ) it s upwr rwing. ) 2

2 Upwr Plnrity Tsting Not vry plnr DAG mits plnr upwr rwing. Thr r thr irnt lgorithms or tsting th xistn o n upwr plnr rwing o igrph, howvr thir omplxity n improv. 1. Di Bttist n Tmssi s lgorithm whih provs th igrgh is upwr plnr i n only i it is sugrph o plnr st-igrph. St-igrphs hv th ollowing hrtristis: yli plnr on sour (s) on sink (t) with g (s,t) 2. Hutton n Luiw s O(n 2 ) tim omplxity upwr plnrity tsting or singl-sour igrphs. A rnt rsrh hs improv th tim omplxity to O(n). 3. Brtolzzi, Di Bttist, Liott n Mnnino hv sign n O(n 2 ) tim lgorithm whih tsts upwr plnrity o igrphs with ix ming. this lgorithm woul xplor ltr. 2.1 Dinitions In ny upwr rwing, th inommimg n outgoing gs o h vrtx v ppr onsutivly in th str o v. S() = (numr o sours o ) = (numr o sinks o ). Smll ngls S r onir thos lss thn 180 gr. Lrg ngls L r thos grtr thn 180 gr. A pol is th sour or sink o th. In plnr stright lin upwr rwing : * Eh pol hs xtly on lrg ngl inint on it. * Eh intrnl hs S() - 1 lrg intrnl ngls. * Th xtrnl h hs S(h) + 1 lrg intrnl ngls. 2.2 Assignmnt Mol Now tht w r l to in th numr o lrg ngls or h, n ssignmnt o pols to s my xist suh tht: 3

Eh pol v is ssign to xtly on inint on v. Eh intrnl hs S() - 1 pols ssign to it. Th xtrnl h hs S(h) + 1 pols ssign to it. A onsistnt ssignmnt o pols to s n oun y using low lgorithm sussivly whih tks O(n 2 ) tim. Th prour woul to in th mximum low rom vrtis(sours n sinks) to s. Thn sssign pol to suh tht thr xists th mximum low rom th pol to. In this omputtion th supply o h pol is 1, n mn o o h is S() or S(h). Extrnl Intrnl Tru sour Tru sink # pols = s() - 1 = 2-1 = 1 # pols = s() - 1 = 1-1 = 0 # pols = s() - 1 = 3-1 = 2 # pols = s() + 1 = 2 + 1 = 3 Figur 3: Assignmnt o pols to s using low lgorithm. 2.3 Thorm An m igrph mits n upwr rwing i n only i it mits onsistnt ssignmnt o pols to s. 4

Proo: I onsistnt ssignmnt o pols to s xists (sri in Assignmnt mol stion), thn th pols ssign to h r rwn with lrg ngl in tht, n th igrph woul om upwr. Extrnl Intrnl Tru sour Tru sink ) ) Figur 4: ) Th signmnt o pols to s, ) Th rsult upwr rwing. 2.4 Anothr xmpl: Thn gin NOT vry plnr DAG mits n upwr plnr rwing. In th ollowing xmpl onsistnt ssignmnt o pols n not oun, sin th xtrnl ns two pols, ut th grph only hs on pol to or. Thror this DAG n not rwn upwr. 5

# pols = 2 # pols = 0 tru sink # pols = 0 # pols = 0 tru sour Figur 5: No upwr rwing or this grph. 6