1/29/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries Carola Wenk.

Slides:



Advertisements
Similar presentations
Polygon Triangulation
Advertisements

2/14/13CMPS 3120 Computational Geometry1 CMPS 3120: Computational Geometry Spring 2013 Planar Subdivisions and Point Location Carola Wenk Based on: Computational.
 Distance Problems: › Post Office Problem › Nearest Neighbors and Closest Pair › Largest Empty and Smallest Enclosing Circle  Sub graphs of Delaunay.
1/13/15CMPS 3130/6130: Computational Geometry1 CMPS 3130/6130: Computational Geometry Spring 2015 Convex Hulls Carola Wenk.
Brute-Force Triangulation
EECS 4101/5101 Prof. Andy Mirzaian. References: [M. de Berge et al ’00] chapter 3 [Preparata-Shamos’85] chapter 6 [O’Rourke’98] chapter 1 [M. de Berge.
2/3/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries II Carola Wenk.
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.
Fundamentals of computational geometry M. Ramanathan STTP CAD 2011.
UNC Chapel Hill M. C. Lin Polygon Triangulation Chapter 3 of the Textbook Driving Applications –Guarding an Art Gallery –3D Morphing.
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann Triangulation (Naive)
POLYGON TRIANGULATION POLYGON TRIANGULATION THE ART GALERY PROBLEM SİNEM GETİR COMPUTER GRAPHIC SEMINAR FEBRUARY 4, 2009.
9/12/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries II Carola Wenk.
I. The Problem of Molding Does a given object have a mold from which it can be removed? object not removable mold 1 object removable Assumptions The object.
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.
Convex Hulls in 3-space Jason C. Yang.
Computing the Fréchet Distance Between Folded Polygons
Feb Polygon Triangulation Shmuel Wimer Bar Ilan Univ., School of Engineering.
ADA: 16. CG Topics1 Objective o an examination of four important CG topics o just a taster of a very large research area Algorithm Design and Analysis.
3/5/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Delaunay Triangulations II Carola Wenk Based on: Computational.
Face Guards for Art Galleries Diane Souvaine, Raoul Veroy, and Andrew Winslow Tufts University.
G UARDING A RT G ALLERY By: Venkatsai Bhimanthini Fall’2014.
Applied Combinatorics, 4th Ed. Alan Tucker
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2010 Lecture 2 Polygon Partitioning Thursday,
3. Delaunay triangulation
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 l-Monotone Convex polygons are easy to triangulate. Unfortunately the partition.
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 Polygon Triangulation Motivation: Guarding art galleries Art gallery theorem.
Duality and Arrangements Computational Geometry, WS 2007/08 Lecture 6 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Computational Geometry Seminar Lecture 1
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann Polygon Triangulation Motivation: Guarding art galleries Art gallery theorem.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Lecture 2 Chapter 2: Polygon Partitioning.
Lecture 8 : Arrangements and Duality Computational Geometry Prof. Dr. Th. Ottmann 1 Duality and Arrangements Duality between lines and points Computing.
Art Gallery Problems Prof. Silvia Fernández. Star-shaped Polygons A polygon is called star-shaped if there is a point P in its interior such that the.
Polygon Triangulation Computational Geometry, WS 2007/08 Lecture 9 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2007 Lecture 2 Chapter 2: Polygon Partitioning.
Polygon Triangulation Computational Geometry, WS 2006/07 Lecture 8, Part 2 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Art Gallery Theorem Computational Geometry, WS 2006/07 Lecture 8, Part 1 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
The Art Gallery Problem
Brute-Force Triangulation
Computational Geometry Piyush Kumar (Lecture 4: Planar Graphs, Polygons and Art Gallery) Welcome to CIS5930.
The Art Gallery Problem
9/7/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries Carola Wenk.
4/21/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Motion Planning Carola Wenk.
AMS 345/CSE 355 Computational Geometry
Triangulating a monotone polygon
CENG 789 – Digital Geometry Processing 02- Polygons and Triangulations Asst. Prof. Yusuf Sahillioğlu Computer Eng. Dept,, Turkey.
1 Triangulation Supplemental From O’Rourke (Chs. 1&2) Fall 2005.
Art gallery theorems for guarded guards T.S. Michael, Val Pinciub Computational Geometry 26 (2003) 247–258.
Arrangements and Duality Sanjay Sthapit Comp290 10/6/98.
Computational Geometry Polygon Triangulation and The Art Gallery Problem Joachim Gudmundsson NICTA, Sydney.
CMPS 3130/6130 Computational Geometry Spring 2015
The Art Gallery Problem Bart Verzijlenberg. Agenda Problem Problem Chvátal’s Classical Art Gallery Theorem Chvátal’s Classical Art Gallery Theorem Proof.
UNC Chapel Hill M. C. Lin Delaunay Triangulations Reading: Chapter 9 of the Textbook Driving Applications –Height Interpolation –Constrained Triangulation.
Contest Algorithms January 2016 Triangulation & the Art Gallery Problem Contest Algorithms1.
9/8/10CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2010 Triangulations and Guarding Art Galleries Carola Wenk.
3/3/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Delaunay Triangulations I Carola Wenk Based on: Computational.
Polygon Triangulation
4/9/13CMPS 3120 Computational Geometry1 CMPS 3120: Computational Geometry Spring 2013 Motion Planning Carola Wenk.
CMPS 3130/6130 Computational Geometry Spring 2017
3. Polygon Triangulation
CENG 789 – Digital Geometry Processing 02- Polygons and Triangulations
Tucker, Applied Combinatorics, Sec 2.4
The Art Gallery Problem
The Art Gallery Problem
Polygon Triangulation
Convex Sets & Concave Sets
I. The Problem of Molding
Guessing a card Alice hides a card x
Triangulation of a polygon
Computational Geometry
Presentation transcript:

1/29/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries Carola Wenk

1/29/15CMPS 3130/6130 Computational Geometry2 Guarding an Art Gallery Problem: Given the floor plan of an art gallery as a simple polygon P in the plane with n vertices. Place (a small number of) cameras/guards on vertices of P such that every point in P can be seen by some camera. Region enclosed by simple polygonal chain that does not self-intersect.

1/29/15CMPS 3130/6130 Computational Geometry3 Guarding an Art Gallery There are many different variations: –Guards on vertices only, or in the interior as well –Guard the interior or only the walls –Stationary versus moving or rotating guards Finding the minimum number of guards is NP-hard (Aggarwal ’84) First subtask: Bound the number of guards that are necessary to guard a polygon in the worst case.

1/29/15CMPS 3130/6130 Computational Geometry4 Guard Using Triangulations Decompose the polygon into shapes that are easier to handle: triangles A triangulation of a polygon P is a decomposition of P into triangles whose vertices are vertices of P. In other words, a triangulation is a maximal set of non-crossing diagonals. diagonal

1/29/15CMPS 3130/6130 Computational Geometry5 Guard Using Triangulations A polygon can be triangulated in many different ways. Guard polygon by putting one camera in each triangle: Since the triangle is convex, its guard will guard the whole triangle.

1/29/15CMPS 3130/6130 Computational Geometry6 Triangulations of Simple Polygons Theorem 1: Every simple polygon admits a triangulation, and any triangulation of a simple polygon with n vertices consists of exactly n-2 triangles. Proof: By induction. n=3: n>3: Let u be leftmost vertex, and v and w adjacent to v. If vw does not intersect boundary of P: #triangles = 1 for new triangle + (n-1)-2 for remaining polygon = n-2 u w v P

1/29/15CMPS 3130/6130 Computational Geometry7 Triangulations of Simple Polygons Theorem 1: Every simple polygon admits a triangulation, and any triangulation of a simple polygon with n vertices consists of exactly n-2 triangles. If vw intersects boundary of P: Let u’  u be the the vertex furthest to the left of vw. Take uu’ as diagonal, which splits P into P 1 and P 2. #triangles in P = #triangles in P 1 + #triangles in P 2 = |P 1 |-2 + |P 2 |-2 = |P 1 |+|P 2 |-4 = n+2-4 = n-2 u w v u’ P P1P1 P2P2

1/29/15CMPS 3130/6130 Computational Geometry8 3-Coloring A 3-coloring of a graph is an assignment of one out of three colors to each vertex such that adjacent vertices have different colors.

1/29/15CMPS 3130/6130 Computational Geometry9 3-Coloring Lemma Lemma: For every triangulated polgon there is a 3-coloring. Proof: Consider the dual graph of the triangulation: –vertex for each triangle –edge for each edge between triangles

1/29/15CMPS 3130/6130 Computational Geometry10 3-Coloring Lemma Lemma: For every triangulated polgon there is a 3-coloring. The dual graph is a tree (connected acyclic graph): Removing an edge corresponds to removing a diagonal in the polygon which disconnects the polygon and with that the graph.

1/29/15CMPS 3130/6130 Computational Geometry11 3-Coloring Lemma Lemma: For every triangulated polgon there is a 3-coloring. Traverse the tree (DFS). Start with a triangle and give different colors to vertices. When proceeding from one triangle to the next, two vertices have known colors, which determines the color of the next vertex.

1/29/15CMPS 3130/6130 Computational Geometry12 Art Gallery Theorem Theorem 2: For any simple polygon with n vertices guards are sufficient to guard the whole polygon. There are polygons for which guards are necessary. n3n3    n3n3    Proof: For the upper bound, 3-color any triangulation of the polygon and take the color with the minimum number of guards. Lower bound: n3n3    spikes Need one guard per spike.

1/29/15CMPS 3130/6130 Computational Geometry13 Triangulating a Polygon There is a simple O(n 2 ) time algorithm based on the proof of Theorem 1. There is a very complicated O(n) time algorithm (Chazelle ’91) which is impractical to implement. We will discuss a practical O(n log n) time algorithm: 1.Split polygon into monotone polygons (O(n log n) time) 2.Triangulate each monotone polygon (O(n) time)

1/29/15CMPS 3130/6130 Computational Geometry14 Monotone Polygons A simple polygon P is called monotone with respect to a line l iff for every line l’ perpendicular to l the intersection of P with l’ is connected. –P is x-monotone iff l = x-axis –P is y-monotone iff l = y-axis l’ l x-monotone (monotone w.r.t l )

1/29/15CMPS 3130/6130 Computational Geometry15 Monotone Polygons A simple polygon P is called monotone with respect to a line l iff for every line l’ perpendicular to l the intersection of P with l’ is connected. –P is x-monotone iff l = x-axis –P is y-monotone iff l = y-axis l’ l NOT x-monotone (NOT monotone w.r.t l )

1/29/15CMPS 3130/6130 Computational Geometry16 Monotone Polygons A simple polygon P is called monotone with respect to a line l iff for every line l’ perpendicular to l the intersection of P with l’ is connected. –P is x-monotone iff l = x-axis –P is y-monotone iff l = y-axis l NOT monotone w.r.t any line l l’

1/29/15CMPS 3130/6130 Computational Geometry17 Test Monotonicity How to test if a polygon is x-monotone? –Find leftmost and rightmost vertices, O(n) time → Splits polygon boundary in upper chain and lower chain –Walk from left to right along each chain, checking that x- coordinates are non-decreasing. O(n) time.

1/29/15CMPS 3130/6130 Computational Geometry18 Triangulating a Polygon There is a simple O(n 2 ) time algorithm based on the proof of Theorem 1. There is a very complicated O(n) time algorithm (Chazelle ’91) which is impractical to implement. We will discuss a practical O(n log n) time algorithm: 1.Split polygon into monotone polygons (O(n log n) time) 2.Triangulate each monotone polygon (O(n) time)