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.

Slides:



Advertisements
Similar presentations
Polygon Triangulation
Advertisements

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.
Brute-Force Triangulation
One of the most important problems is Computational Geometry is to find an efficient way to decide, given a subdivision of E n and a point P, in which.
1 Voronoi Diagrams. 2 Voronoi Diagram Input: A set of points locations (sites) in the plane.Input: A set of points locations (sites) in the plane. Output:
Convex Hulls May Shmuel Wimer Bar Ilan Univ., Eng. Faculty Technion, EE Faculty.
By Groysman Maxim. Let S be a set of sites in the plane. Each point in the plane is influenced by each point of S. We would like to decompose the plane.
Overlay of Two Subdivisions
Convex Hulls in 3-space Jason C. Yang.
Zoo-Keeper’s Problem An O(nlogn) algorithm for the zoo-keeper’s problem Sergei Bespamyatnikh Computational Geometry 24 (2003), pp th CGC Workshop.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Convex Hulls Today: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness,
Computational Geometry -- Voronoi Diagram
17. Computational Geometry Chapter 7 Voronoi Diagrams.
Delaunay Triangulation Computational Geometry, WS 2006/07 Lecture 11 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2001 Lecture 4 Chapter 6: Arrangements Monday,
Duality and Arrangements Computational Geometry, WS 2007/08 Lecture 6 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Half-Space Intersections
1.4 Exercises (cont.) Definiton: A set S of points is said to be affinely (convex) independent if no point of S is an affine combination of the others.
Lecture 10 : Delaunay Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 Overview Motivation. Triangulation of Planar Point Sets. Definition.
Algorithm 1. (Convex Hull) - Pseudo code - Input. A set of points in the plane. Output. A list containing the vertices of Conv ( P). 1. Sort the points.
Lecture 8 : Arrangements and Duality Computational Geometry Prof. Dr. Th. Ottmann 1 Duality and Arrangements Duality between lines and points Computing.
Point Location Computational Geometry, WS 2007/08 Lecture 5 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät für.
Computing the Delaunay Triangulation By Nacha Chavez Math 870 Computational Geometry; Ch.9; de Berg, van Kreveld, Overmars, Schwarzkopf By Nacha Chavez.
Lecture 6: Point Location Computational Geometry Prof. Dr. Th. Ottmann 1 Point Location 1.Trapezoidal decomposition. 2.A search structure. 3.Randomized,
Duality and Arrangements Computational Geometry, WS 2006/07 Lecture 7 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
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.
Brute-Force Triangulation
Delaunay Triangulations Presented by Glenn Eguchi Computational Geometry October 11, 2001.
CSE53111 Computational Geometry TOPICS q Preliminaries q Point in a Polygon q Polygon Construction q Convex Hulls Further Reading.
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.
UNC Chapel Hill M. C. Lin Linear Programming Reading: Chapter 4 of the Textbook Driving Applications –Casting/Metal Molding –Collision Detection Randomized.
UNC Chapel Hill M. C. Lin Line Segment Intersection Chapter 2 of the Textbook Driving Applications –Map overlap problems –3D Polyhedral Morphing.
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 8 Arrangements and Duality.
Splitting a Face Point edge already split new vertex two new faces one new vertex six new half-edges.
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 8 Arrangements and Duality.
Arrangements and Duality Sanjay Sthapit Comp290 10/6/98.
Planar Graphs Graph Coloring
Agenda Review: –Planar Graphs Lecture Content:  Concepts of Trees  Spanning Trees  Binary Trees Exercise.
Arrangements and Duality Motivation: Ray-Tracing Fall 2001, Lecture 9 Presented by Darius Jazayeri 10/4/01.
1 / 41 Convex Hulls in 3-space Jason C. Yang. 2 / 41 Problem Statement Given P: set of n points in 3-space Return: –Convex hull of P: CH (P) –Smallest.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness)
UNC Chapel Hill M. C. Lin Delaunay Triangulations Reading: Chapter 9 of the Textbook Driving Applications –Height Interpolation –Constrained Triangulation.
Arrangements and Duality Supersampling in Ray Tracing.
February 17, 2005Lecture 6: Point Location Point Location (most slides by Sergi Elizalde and David Pritchard)
Great Theoretical Ideas in Computer Science for Some.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2010 O’Rourke Chapter 6 with some material.
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 9 Line Arrangements.
COMPSCI 102 Introduction to Discrete Mathematics.
An Introduction to Computational Geometry: Arrangements and Duality Joseph S. B. Mitchell Stony Brook University Some images from [O’Rourke, Computational.
Polygon Triangulation
1 Schnyder’s Method. 2 Motivation Given a planar graph, we want to embed it in a grid We want the grid to be relatively small And we want an efficient.
Computational Geometry
Arrangements and Duality
3. Polygon Triangulation
Outline 1 Properties of Planar Graphs 5/4/2018.
Computational Geometry
Introduction to Polygons
Algorithm design techniques Dr. M. Gavrilova
The Art Gallery Problem
CMPS 3130/6130 Computational Geometry Spring 2017
Computational Geometry Capter:1-2.1
The Art Gallery Problem
Depth Estimation via Sampling
I. The Problem of Molding
CMPS 3130/6130 Computational Geometry Spring 2017
Computational Geometry
Discrete Mathematics for Computer Science
Overlay of Two Subdivisions
Computational Geometry
Presentation transcript:

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.

Line Arrangements Problem: Given a set L of n lines in the plane, compute their arrangement which is a planar subdivision. Planar subdivision: stored in a DCEL data structure.

Theorem: The complexity of the arrangement of n lines is Θ(n 2 ) in the worst case (non-degenerate situation) – Number of vertices : Θ(n 2 ) (n-1 vertices on each line; total=n(n-1)/2; each vertex is counted twice) – Number of edges : n 2 (n edges on each line) – Number of faces : Θ(n 2 ) (follows from Euler formula : # faces - # edges + # vertices = 2) In degenerate situation when all lines pass through a single point (number of vertices = 1), the number of edges and faces are linear in n.

Line Arrangement Goal: compute this planar map (as a DCEL) Algorithm: Use an incremental algorithm: (add one line at a time and update the DCEL structure) We will construct the arrangement inside a rectangular box.

An incremental algorithm: Input: A set L of n lines in the plane and a bounding box B. Output: The DCEL structure of the arrangement A(L) inside a bounding box.

What happens when a line is added? Consider the arrangement of i lines

What happens when a line is added? Consider the arrangement of first i lines. We now insert the (i+1) th line. Without any loss of generality, suppose the inserted line is horizontal.

What happens when a line is added? Consider the arrangement of first i lines. We now insert the (i+1) th line. Faces affected

Zone Theorem Zone of a line l : The zone of a line l in an arrangement A(L) is the set of faces of A(L) whose closure intersects l. The complexity of a zone (z n ) of A(L) is the total complexity of all the faces: the total sum of edges (or vertices) of these faces. Theorem: z n ≤ 6n.

What happens when a line is added? Consider the arrangement of first i lines We now insert the (i+1) th line. Count the number of left bounding edges. Show that there are no more than 3n left bounding edges in the event of no degeneracy.

Zone Theorem (left bounding edges): Theorem: The number of left bounding edges in the zone of a line in A(L) is at most 3n.

By induction on n; for n=1, it is trivial. Suppose the zone complexity is true for any arrangement of m lines, m < n. For any n > 1: – Let l right be the rightmost line intersecting l n, the line being inserted. Without any loss of generality we assume that l n is horizontal. We now remove the line l right. – By the induction hypothesis, the zone of l n in A(L-{ l right }) has at most 3(n-1) left bounding edges. – When adding l right back, the number of left bounding edges in the zone of l n increases as follows: One new left bounding edge on l right. At most two old left bounding edges get split by l right. – The zone complexity of l n is at most 3(n-1)+3 ≤ 3n. – The theorem follows from the principle of mathematical induction.

l right l right is the line with the rightmost intersection with l n lnln

l right Remove l right lnln

All left bounding edges in the zone of l n in A(L-{ l right } ) is highlighted lnln

lnln l right Adding l right introduces two extra left bounding edges in this case

lnln Adding l right introduces two (three) extra left bounding edges l right

Zone Theorem (right bounding edges): Similarly we can show that Theorem: The number of right bounding edges in the zone of a line in A(L) is at most 3n.

Constructing the Arrangement The time insert the (i+1) th line is linear in the complexity of the zone, which is linear in the number of existing lines (i.e. i). Therefore, the total running time of the incremental algorithm is O(n 2 ) += = O(n 2 ) Finding a bounding box Finding the left entry point According to the zone theorem Note: Bound doesn’t depend on the insertion order.

Duality Most of the slides are taken from the slides of

Point-line duality

O(nlogn) O(n) Lower convex hull vertices are in increasing x-order; The corresponding dual lines are in increasing slopes.

Ham-sandwich cut Most of the slides are taken from

The intersection point of the blue median level and the red median level can be found in O(n 2 ) time.

It is possible to find the intersection point in optimal O(n) time