Computational Geometry Polygon Triangulation and The Art Gallery Problem Joachim Gudmundsson NICTA, Sydney.

Slides:



Advertisements
Similar presentations
Order-k Voronoi Diagram in the Plane
Advertisements

Polygon Triangulation
 Distance Problems: › Post Office Problem › Nearest Neighbors and Closest Pair › Largest Empty and Smallest Enclosing Circle  Sub graphs of Delaunay.
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.
C o m p u t i n g C O N V E X H U L L S by Kok Lim Low 10 Nov 1998 COMP Presentation.
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)
9/12/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries II Carola Wenk.
The Divide-and-Conquer Strategy
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.
The Maths of Pylons, Art Galleries and Prisons Under the Spotlight John D. Barrow.
Feb Polygon Triangulation Shmuel Wimer Bar Ilan Univ., School of Engineering.
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
Delaunay Triangulation Computational Geometry, WS 2006/07 Lecture 11 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 Polygon Triangulation Motivation: Guarding art galleries Art gallery theorem.
By Dor Lahav. Overview Straight Skeletons Convex Polygons Constrained Voronoi diagrams and Delauney triangulations.
Computational Geometry Seminar Lecture 1
Lecture 10 : Delaunay Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 Overview Motivation. Triangulation of Planar Point Sets. Definition.
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.
Center for Graphics and Geometric Computing, Technion 1 Computational Geometry Chapter 9 Delaunay Triangulation.
Copyright 2002 Joseph O’Rourke. DIMACS Connect Institute Keynote Address, May 4, Unsolved Problems in Visibility Joseph O’Rourke Smith College 
Randomized Planning for Short Inspection Paths Tim Danner Lydia E. Kavraki Department of Computer Science Rice University.
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.
Art Gallery Theorem Computational Geometry, WS 2006/07 Lecture 8, Part 1 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Caracterização e Vigilância de algumas Subclasses de Polígonos Ortogonais Ana Mafalda Martins Universidade Católica Portuguesa CEOC Encontro Anual CEOC.
The Art Gallery Problem Presentation for MA 341 Joseph Dewees December 1, 1999.
The Art Gallery Problem
1 What is Computational Geometry Ref: Godfried T. Toussaint.
Brute-Force Triangulation
Computational Geometry Piyush Kumar (Lecture 4: Planar Graphs, Polygons and Art Gallery) Welcome to CIS5930.
The Art Gallery Problem
Graph Theory Ch6 Planar Graphs. Basic Definitions  curve, polygon curve, drawing  crossing, planar, planar embedding, and plane graph  open set  region,
9/7/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries Carola Wenk.
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.:
Ch. 6 - Approximation via Reweighting Presentation by Eran Kravitz.
C o m p u t i n g C O N V E X H U L L S. Presentation Outline 2D Convex Hulls –Definitions and Properties –Approaches: Brute Force Gift Wrapping QuickHull.
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.
Approximation algorithms for TSP with neighborhoods in the plane R 郭秉鈞 R 林傳健.
Computational Geometry Piyush Kumar (Lecture 10: Point Location) Welcome to CIS5930.
6/4/ : Analyzing Polygons 3.8: Analyzing Polygons with Coordinates G1.1.5: Given a line segment in terms of its endpoints in the coordinate plane,
Art gallery theorems for guarded guards T.S. Michael, Val Pinciub Computational Geometry 26 (2003) 247–258.
Pylon of the Month Rigidity  Division leads to more boundary  cut Division Can be Dangerous.
Order-k Voronoi diagram in the plane Dominique Schmitt Université de Haute-Alsace.
Institute of Information Science Academia Sinica 1 1 Introduction to Geomtric Computing D. T. Lee Institute of Information Science Academia Sinica October.
1/29/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries Carola Wenk.
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.
Open Guard Edges and Edge Guards in Simple Polygons Csaba Tóth, Godfried Toussaint, and Andrew Winslow.
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.
Polygon Triangulation
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
Presentation transcript:

Computational Geometry Polygon Triangulation and The Art Gallery Problem Joachim Gudmundsson NICTA, Sydney

Brief History: Algorithms and CG Algorithms: 300 BC: Euclid designed an algorithm for GCD. 780 AD: al-Khowarizmi – the word “Algorithm” is derived from his name. … Babbage, Cantor, Hilbert, Church, Gödel … 1936: Turing developed a machine that provides a formal and rigorous definition of an algorithm Computational Geometry: 1644: Descartes wrote about Voronoi diagrams 1759: Euler & Vandermonde discussed Euclidean TSP 1978: Shamos wrote his thesis which defines the start of modern CG 1985: Preparata & Shamos wrote the first CG textbook

Art Gallery - definitions Input: An Art Gallery = A simple polygon with n line segments Polygon: A region of the plane bounded by a set of straight line segments forming a closed curve. Simple: A polygon which does not self-intersect. edges vertices

Art Gallery Question: How many guards are needed to guard an art gallery? Victor Klee posed this problem to Václav Chvátal in Guard: (camera, motion sensors, fire detectors, …) - 2  range visibility - infinite distance - cannot see through walls x can see y iff – (x,y)  P x y z

Art Gallery Question: How many guards are needed to guard an art gallery? n=6 G(n) = the smallest number of guards that suffice to guard any polygon with n vertices. Is G(n)  n? If we place one guard on each vertex?

A lower bound n=3 n=4 n=5 n=6

A lower bound n=6 n=9 n=3k

A conjecture We have shown: G(n)   n/3  Conjecture: G(n) =  n/3  Proved by Chvátal in “Steve Fisk learned of Klee's question from Chvátal's article, but found the proof unappealing. He continued thinking about the problem and came up with a solution while dozing off on a bus travelling somewhere in Afghanistan.” An elegant proof was given by Fisk in Included in “Proofs from the book”.

A first upper bound Prove that G(n)  n-2. Decompose P into pieces that are easy to guard. For example triangles! How can we use a triangulation of P to place a set of guards? #guards = #triangles

Triangulation A triangulation can be obtained by adding a maximal number of non-intersecting diagonals within P. A diagonal of P is a line segment between two vertices of P that are clearly visible to each other. BUT! 1.Does a triangulation always exist? 2. What is the number of triangles?

Number of triangles Does a triangulation always exist? Is there always a diagonal? Lemma: Every simple polygon with >3 vertices has a diagonal. v a b v a b v a b q

Number of triangles Theorem: Every simple polygon admits a triangulation. Proof by induction: Base case: n=3 Induction hyp.: n  m Induction step: n=m+1 mm mm

Number of triangles Theorem: Every triangulation of P of n vertices consists of x triangles. Conjecture: x = n-2 What’s x?

Number of triangles Proof by induction: Base case (n = 3): Ind. hyp. (n  m): n-2 triangles Ind. step (n = m+1): P1 P2

Number of triangles According to ind. hyp. #triangles in P1 is m1-2 #triangles in P2 is m2-2 P1 P2 |P1| = m1 |P2| = m2 m1+m2 = n + 2 (m1-2) + (m2-2) = m1 + m2 - 4 = n – 2 QED Theorem: Every triangulation of P consists of n-2 triangles.

Back to the Art Gallery How do we place the guards? G(n)  #guards = #triangles = n-2 G(n)   n/3 

3-colouring Idea: Assign a colour to each vertex such that no two adjacent vertices have the same colour. #yellow = 7 #green = 5 #red = 6  #guards   n/3  Why? Place guards on the green vertices.

3-colouring Does a 3-colouring always exist? Definition: Three consecutive vertices a, b and c of P form an ear of P if ac is a diagonal of P, where b is the ear tip. ear tip a b c

3-colouring Theorem: Every polygon with n>3 vertices has at least two non-overlapping ears. Consider the dual D(T) of the triangulation T. D(T) is a binary tree. Every tree has at least two vertices of degree 1  T has at least two ears.

3-colouring Theorem: The triangulation of a simple polygon may be 3-coloured. Proof by induction: Base case (n=3): Ind. hyp. (n  m): Ind. step (n=m+1): Polygon has an ear.

Main results Theorem: 1.Every simple polygon can be triangulated. 2.Every simple polygon with n vertices can be guarded with  n/3  guards. A triangulation exists but how can we compute it?

Questions Questions: 1.Construct a simple polygon P and a placement of guards such that the guards see every point of the perimeter of P, but there is at least one point interior to P not seen by any guard. 2.Edge guards? Find a lower bound. 3.Construct a polygon P and a watchman route of a guard such that the guard sees the perimeter of P but there is at least one point interior to P not seen.

Triangulation algorithm 1 Theorem: Every polygon has a diagonal. Algorithm 1: while P not triangulated do (x,y) := find_valid_diagonal(P) output (x,y) Time complexity: #iterations = O(n) #diagonals = O(n 2 ) Test a diagonal = O(n)  O(n 4 ) Testing a diagonal? O(n)

Triangulation algorithm 2 Theorem: Every polygon has at least two non-overlapping ears. Algorithm 2: while n > 3 do locate a valid ear tip v2 output diagonal (v1,v3) delete v2 from P n-3 O(n 2 ) O(1) Total: O(n 3 ) v2 v3 v1

Triangulation algorithm 3 Algorithm 3: compute all valid ears S while n > 3 do locate a valid ear tip v2 output diagonal (v1,v3) delete v2 from P delete (v0,v1,v2) from S delete (v2,v3,v4) from S check ear (v0,v1,v3) check ear (v1,v3,v4) O(n 2 ) n-3 O(1) O(n) Total: O(n 2 ) v0 v1 v2 v3 v4 v5

Triangulation algorithm 4 Observation: Some polygons are very easy to triangulate. Convex polygons Y-monotone polygons

Polygon triangulation 4 Algorithm 4: Partition P into y-monotone pieces.O(n log n) Triangulate every y-monotone polygon O(n) Theorem: Every simple polygon can be triangulated in O(n log n) time.

Polygon triangulation O(n log n) time [Garey, Johnson, Preparata & Tarjan’78] O(n loglog n) [Tarjan & van Wijk’?] O(n) [Chazelle’91] O(n) randomised [Amato, Goodrich & Ramos’00] Open problem: Is there a simple O(n)-time algorithm?