Planar straight line graph A planar straight line graph (PSLG) is a planar embedding of a planar graph G = (V, E) with: 1.each vertex v  V mapped to a.

Slides:



Advertisements
Similar presentations
Planar Subdivision Induced by planar embedding of a graph. Connected if the underlying graph is. edge vertex hole in f face f disconnected subdivision.
Advertisements

Polygon Triangulation
Comments We consider in this topic a large class of related problems that deal with proximity of points in the plane. We will: 1.Define some proximity.
Map Overlay Algorithm. Birch forest Wolves Map 1: Vegetation Map 2: Animals.
2/14/13CMPS 3120 Computational Geometry1 CMPS 3120: Computational Geometry Spring 2013 Planar Subdivisions and Point Location Carola Wenk Based on: Computational.
Computational Geometry Seminar Lecture #10 3-quasi planar and 4-quasi planar graphs David Malachi.
1 Constructing Convex 3-Polytopes From Two Triangulations of a Polygon Benjamin Marlin Dept. of Mathematics & Statistics McGill University Godfried Toussaint.
Mesh Representation, part II based on: Data Structures for Graphics, chapter 12 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
CHAPTER 5: CONVEX POLYTOPES Anastasiya Yeremenko 1.
Steps in DP: Step 1 Think what decision is the “last piece in the puzzle” –Where to place the outermost parentheses in a matrix chain multiplication (A.
11-1 Space Figures and Cross Sections
Lecture 8 : Arrangements and Duality Computational Geometry Prof. Dr. Th. Ottmann 1 Duality and Arrangements Duality between lines and points Computing.
Computing the Delaunay Triangulation By Nacha Chavez Math 870 Computational Geometry; Ch.9; de Berg, van Kreveld, Overmars, Schwarzkopf By Nacha Chavez.
Chapter 4: Straight Line Drawing Ronald Kieft. Contents Introduction Algorithm 1: Shift Method Algorithm 2: Realizer Method Other parts of chapter 4 Questions?
Voronoi Diagrams.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Chapter 4: 3D Convex Hulls Monday, 2/23/04.
W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 Graph theory and routing (initial background) E E Lecture 4.
Drawing of G. Planar Embedding of G Proposition Proof. 1. Consider a drawing of K 5 or K 3,3 in the plane. Let C be a spanning cycle. 2. If the.
Curve Curve: The image of a continous map from [0,1] to R 2. Polygonal curve: A curve composed of finitely many line segments. Polygonal u,v-curve: A polygonal.
Computational Geometry Piyush Kumar (Lecture 4: Planar Graphs, Polygons and Art Gallery) Welcome to CIS5930.
7.1 Review of Graphs and Slopes of Lines
Lesson 1-3 Formulas Lesson 1-3: Formulas.
Recall that the equations for a parabola are given by ...
UNC Chapel Hill M. C. Lin Point Location Chapter 6 of the Textbook –Review –Algorithm Analysis –Dealing with Degeneracies.
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Mesh Representation, part I
UNC Chapel Hill M. C. Lin Point Location Reading: Chapter 6 of the Textbook Driving Applications –Knowing Where You Are in GIS Related Applications –Triangulation.
Planar Graphs: Euler's Formula and Coloring Graphs & Algorithms Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
Line Arrangement Chapter 6. Line Arrangement Problem: Given a set L of n lines in the plane, compute their arrangement which is a planar subdivision.
Straight line drawings of planar graphs – part II Roeland Luitwieler.
Planar Subdivision Induced by planar embedding of a graph. Connected if the underlying graph is. edge vertex disconnected subdivision Complexity = #vertices.
Module 5 – Networks and Decision Mathematics Chapter 23 – Undirected Graphs.
Introduction to Planarity Test W. L. Hsu. Plane Graph A plane graph is a graph drawn in the plane in such a way that no two edges intersect A plane graph.
V Spanning Trees Spanning Trees v Minimum Spanning Trees Minimum Spanning Trees v Kruskal’s Algorithm v Example Example v Planar Graphs Planar Graphs v.
How to Cut Pseudoparabolas into Segments Seminar on Geometric Incidences By: Almog Freizeit.
Data Structures & Algorithms Graphs
8-10 Translations, Reflections, and Rotations Course 2 Warm Up Warm Up Problem of the Day Problem of the Day Lesson Presentation Lesson Presentation.
Line Segment Intersection Computational Geometry, WS 2006/07 Lecture 3 – Part III Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für.
Arrangements and Duality Sanjay Sthapit Comp290 10/6/98.
Space Figures & Nets, Surface Areas of Prisms & Cylinders Unit 5, Lesson 1 chapter%20ten.ppt.
MAT 2720 Discrete Mathematics Section 8.7 Planar Graphs
Planar Graphs Graph Coloring
Arrangements and Duality Motivation: Ray-Tracing Fall 2001, Lecture 9 Presented by Darius Jazayeri 10/4/01.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness)
Planar Graphs Lecture 10: Oct 21. This Lecture Today we will talk about planar graphs, and how to color a map using 6 colors. Planar graphs Euler’s formula.
MAT 2720 Discrete Mathematics Section 8.2 Paths and Cycles
Graphs Basic properties.
Chapter 9.7 Planar Graphs These class notes are based on material from our textbook, Discrete Mathematics and Its Applications, 6th ed., by Kenneth H.
February 17, 2005Lecture 6: Point Location Point Location (most slides by Sergi Elizalde and David Pritchard)
Chapter 11: Surface Area & Volume
polyhedron a three- dimensional figure whose surfaces are polygons faces edge vertex.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
The coordinate plane is formed by the intersection of two perpendicular number lines called axes. The point of intersection, called the origin, is at 0.

Outline 1 Properties of Planar Graphs 5/4/2018.
Andrew's Monotone Chain Convex Hull Algorithm
Geometric Graphs and Quasi-Planar Graphs
Computational Geometry 2
Planarity and Euler’s Formula
Depth Estimation via Sampling
Chapter 5 Linear Inequalities and Linear Programming
12/1/2018 Lesson 1-3 Formulas Lesson 1-3: Formulas.
and 2 units to the left of point B. Count down 5 units from point B
MAT 2720 Discrete Mathematics
Planarity.
Overlay of Two Subdivisions
Introduction to Graph Theory
Graph Vocabulary.
Agenda Review Lecture Content: Shortest Path Algorithm
Presentation transcript:

Planar straight line graph A planar straight line graph (PSLG) is a planar embedding of a planar graph G = (V, E) with: 1.each vertex v  V mapped to a distinct point in the plane, 2.and each edge e  E mapped to a segment between the points for the endpoint vertices of the edge such that no two segments intersect, except at their endpoints. edge (14) vertex (10) face (6) Observe that PSLG is defined by mapping a mathematical object (planar graph) to a geometric object (PSLG). That mapping introduces the notion of coordinates or location, which was not present in the graph (despite its planarity). We will see later that PSLGs will be useful objects. For now we focus on a data structure to represent a PSLG.

Doubly connected edge list (DCEL) The DCEL data structure represents a PSLG. It has one entry for each edge e in the PSLG. Each entry has 6 fields: V1Origin of the edge V2Terminus (destination) of the edge; implies an orientation F1Face to the left of edge, relative to V1V2 orientation F2Face to the right of edge, relative to V1V2 orientation P1Index of entry for first edge encountered after edge V1V2, when proceeding counterclockwise around V1 P2Index of entry for first edge after edge V1V2, when proceeding counterclockwise around V2 v3v3 v1v1 v2v2 v4v4 e3e3 e5e5 e1e1 e4e4 e2e2 f2f2 f3f3 f1f1 f4f4 Example (both PSLG and DCEL are partial)

F1 F2 F3 F4 F5 F6 Edge V1 V2 LeftF RightF PredE NextE F6 F F6 F F6 F F3 F F5 F F5 F F5 F F6 F F1 F F1 F F4 F F4 F F2 F1 2 10

Data structures If the PSLG has N vertices, M edges and F faces then we know N - M +F = 2 by Euler’s formula. DCEL can be described by six arrays: V1[1:M], V2[1:M], LeftF[1:M] Right[1:M], PredE[1:M] and NextE[1:M]. Since both the number of faces and edges are bounded by a linear function of N, we need O(N) storage for all these arrays. Define array HV[1:N] with one entry for each vertex; entry HV[i] denotes the minimum numbered edge that is incident on vertex v i and is the first row or edge index in the DCEL where v i is in V1 or V2 column. Thus for our example in the preceding slide HV=(1,1,2,3,7,5,6,10,4]. Similarly, define array HF[1:F] where F= M-N+2, with one entry for each face; HF[i] is the minimum numbered edge of all the edges that make the face HF[i] and is the first row or edge index in the DCEL where Fi i is in LeftF or RightF column. For our example, HF=(1,2,3,6,5,1). Both HV and HF can be filled in O(N) time each by scanning DCEL.

1procedure EdgesIncident(j) 2begin 3a = HV[j]/* Get first DCEL entry for v j, a is index. */ 4a 0 = a/* Save starting index. */ 5A[1] = a 6i = 2/* i is index for A */ 7if (V1[a] = j) then /* vertex j is the origin */ 8a =PredE[a]/* Go on to next incident edge. */ 9else /* vertex j is the destination vertex of edge a */ 10a =NextE[a]/* Go on to next incident edge. */ 11endif 12while (a  a 0 ) do/* Back to starting edge? */ 13A[i] = a 14if (V1[a] = j) then 15a = PredE[a]/* Go on to next incident edge. */ 16else 17a = NextE[a]/* Go on to next incident edge. */ 18endif 19i = i endwhile 21end a NextE[a] PredE[a] V1[a] V2[a] DCEL operations Procedure EdgesIncident use a DCEL to report the edges incident to a vertex vj in a PSLG. The edges incident to vj are given as indexes to the DCEL entries for those edges in array A [1: 3N-6] since M<= 3N-6.

If we make the following changes, it will become a procedure Faceincident[j] giving all the edges that constitute a face: 3: a = HF[j] And sustitute HV by HF and V1 by F1. A will have a size A[1:N]. Both EdgesIncident and Faceincident requires time proportional to the number of incident edges reported. How does that relate to N, the number of vertices in the PSLG? We have these facts about planar graphs (and thus PSLGs): (1)v - e + f = 2Euler’s formula (2)e  3v - 6 (3)f  2/3e (4)f  2v - 4 wherev = number of vertices = N e = number of edges=M f = number of faces=F v  O(N) by definition  e  O(N) by (2)  EdgesIncident requires time  O(N) and  DCEL requires storage  O(N), one entry per edge.