Computational Geometry – Exercise Triangulation of Polygons & Linear

Computational Geometry – Exercise Triangulation of Polygons & Linear

Computational Geometry { Exercise Triangulation of Polygons & Linear Programming LEHRSTUHL FUR¨ ALGORITHMIK I · INSTITUT FUR¨ THEORETISCHE INFORMATIK · FAKULTAT¨ FUR¨ INFORMATIK Guido Bruckner¨ 23.05.2018 1 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Problem Task: Install a number of cameras in an art gallery so that every part of the galery is visible to at least one of them. 2 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Problem Task: Install a number of cameras in an art gallery so that every part of the galery is visible to at least one of them. P 7 X Assumption: Art gallery is a simple polygon P with n corners (no self-intersections, no holes) Observation: each camera observes a star-shaped region Definition: Point p 2 P is visible from c 2 P if cp 2 P NP-hard! Goal: Use as few cameras as possible! ! The number depends on the number of corners n and on the shape of P 2 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Observation of the Border Prove or falsify the following statement. Let P be a simple polygon and consider a set of cameras that together observe the complete border of P , then they also observe the complete interior of P . 3 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. The proof implies a recursive O(n2)-Algorithm! 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles Can we do better? 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles • P can be guarded by ≈ n=2 cameras placed on the diagonals 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles • P can be guarded by ≈ n=2 cameras placed on the diagonals 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles • P can be guarded by ≈ n=2 cameras placed on the diagonals • P can be observed by even smaller number of cameras placed on the corners 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Problem Simplification Observation: It is easy to guard a triangle Idea: Decompose P into triangles and guard each of them Theorem 1: Each simple polygon with n corners admits a triangulation; any such triangulation contains exactly n − 2 triangles. • P could be guarded by n − 2 cameras placed in the triangles • P can be guarded by ≈ n=2 cameras placed on the diagonals • P can be observed by even smaller number of cameras placed on the corners 4 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Theorem [Chv´atal'75] Theorem 2: For a simple polygon with n vertices, bn=3c cameras are sometimes necessary and always sufficient to guard it. 5 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Theorem [Chv´atal'75] Theorem 2: For a simple polygon with n vertices, bn=3c cameras are sometimes necessary and always sufficient to guard it. Proof: • Find a simple polygon with n corners that requires ≈ n=3 cameras! 7 X • Sufficiency on the board 5 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Theorem [Chv´atal'75] Theorem 2: For a simple polygon with n vertices, bn=3c cameras are sometimes necessary and always sufficient to guard it. Proof: • Find a simple polygon with n corners that requires ≈ n=3 cameras! 7 X • Sufficiency on the board Conclusion: Given a triangulation, the bn=3c cameras that guard the polygon can be placed in O(n) time. 5 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie The Art-Gallery-Theorem [Chv´atal'75] Theorem 2: For a simple polygon with n vertices, bn=3c cameras are sometimes necessary and always sufficient to guard it. Proof: • Find a simple polygon with n corners that requires ≈ n=3 cameras! 7 X • Sufficiency on the board Conclusion: Given a triangulation, the bn=3c cameras that guard the polygon can be placed in O(n) time. Can we do better than O(n2) described before? 5 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Triangulation of Polygons 2-step process: • Step 1: Decompose P into y-monotone polygons Definition: A polygon is y-monotone, if for any horizontal line `, the interection ` \ P is connected. ` X 7 6 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Triangulation of Polygons 2-step process: • Step 1: Decompose P into y-monotone polygons Definition: A polygon is y-monotone, if for any horizontal line `, the interection ` \ P is connected. The two paths from ` the topmost to the bottomost point X 7 bounding the polygon, never go upward 6 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Triangulation of Polygons 2-step process: • Step 1: Decompose P into y-monotone polygons Definition: A polygon is y-monotone, if for any horizontal line `, the interection ` \ P is connected. The two paths from ` the topmost to the bottomost point X 7 bounding the polygon, never go upward 6 Guido Bruckner¨ · Ubung¨ Algorithmische Geometrie Triangulation of Polygons 2-step process: • Step 1: Decompose P into y-monotone polygons Definition: A polygon is y-monotone, if for any horizontal line `, the interection ` \ P is connected.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    122 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us