Docsity

Computational Geometry - Assignment 2 | CS 8803, Assignments of Computer Science

Toggle sidebar
bg1
Computational Geometry: Homework 2. Due: 2/6/2004
1. Design an efficient algorithm to determine whether for a polygon Pwith
nvertices there is a rotation that makes it monotone.
2. Let Pbe a simple polygon and Cits convex hull. Assume that you are
given a triangulation of C(i.e. planar subdivision of Cinto triangles)
such that the union of some number of triangles in that triangulation
is equal to P. Let Qbe a convex polygon. Show that the intersection
P∩Qcan be computed in linear time (O(n+m), where nis the number
of vertices in Qand mis the number of triangles in the triangulation).
3. Prove that any polygonal region of the plane (possibly with holes) can
be triangulated. Express the number of triangles as a function of the
number of edges and number of holes.
4. Is it true that every monotone polygon has a triangulation whose dual
graph has no vertex of degree 3? (prove your claims)
5. A simple polygon is star shaped if there is a point inside it which can see
all of its edges. Design a (ideally, deterministic) linear-time algorithm
which decides whether a simple polygon is star shaped or not.
6. ntrains are moving along parallel tracks, with constant speeds vi. At time
0 the location of the i-th train is ki(say, measured from the beginning
of the tracks). Compute all trains that will lead at least for a moment
in O(nlog n) time.
7. You are given a point pinside a simple polygon Pwith nvertices. Com-
pute (as efficiently as you can) the region inside Pwhich is visible from
p.
1

Partial preview of the text

Download Computational Geometry - Assignment 2 | CS 8803 and more Assignments Computer Science in PDF only on Docsity!

Computational Geometry: Homework 2. Due: 2/6/

  1. Design an efficient algorithm to determine whether for a polygon P with n vertices there is a rotation that makes it monotone.
  2. Let P be a simple polygon and C its convex hull. Assume that you are given a triangulation of C (i.e. planar subdivision of C into triangles) such that the union of some number of triangles in that triangulation is equal to P. Let Q be a convex polygon. Show that the intersection P ∩Q can be computed in linear time (O(n+m), where n is the number of vertices in Q and m is the number of triangles in the triangulation).
  3. Prove that any polygonal region of the plane (possibly with holes) can be triangulated. Express the number of triangles as a function of the number of edges and number of holes.
  4. Is it true that every monotone polygon has a triangulation whose dual graph has no vertex of degree 3? (prove your claims)
  5. A simple polygon is star shaped if there is a point inside it which can see all of its edges. Design a (ideally, deterministic) linear-time algorithm which decides whether a simple polygon is star shaped or not.
  6. n trains are moving along parallel tracks, with constant speeds vi. At time 0 the location of the i-th train is ki (say, measured from the beginning of the tracks). Compute all trains that will lead at least for a moment in O(n log n) time.
  7. You are given a point p inside a simple polygon P with n vertices. Com- pute (as efficiently as you can) the region inside P which is visible from p.