We are given a polygon with the following vertices:
\[\begin{aligned} p[0] &= (a,4),& \; p[1] &= (6,0),& \; p[2] &= (3,0),& \; p[3] &= (2,9),& \\ p[4] &= (4,6),& \; p[5] &= (7,5),& \; p[6] &= (10,5),& \; p[7] &= (13,6),& \\ p[8] &= (14,10),& \; p[9] &= (15,0),& \; p[10] &= (12,4),& \; p[11] &= (8,0), \end{aligned}\]where $a \in [5,11]$.
Triangulate the polygon using the algorithm from the lectures. Find $3$ values of the parameter $a$ (the vertices of the polygon should be in general position) for which the algorithms returns different triangulations. Note that the algorithm may compute the same trianguation in different ways. For the $3$ chosen values of $a$, draw three separate pictures showing the computed diagonals.
Prove or refute:
Not true.
Not true.
Not true: a tree with maximal degree at least 4 is not a dual graph of a triangulation.
True (with an appropriate plane drawing of the tree).
Not true.
True, since the upper polygonal path lies in entirety above the line containing the lower polygonal path.
Not true (see counterexample to claim 2).
True (see construction for claim 5).
Let $P$ be a polygon and let $S$ be a set of points. Describe a sweeping algorithm which returns $S \cap P$ in $O(n \log n)$ time, where $n$ is the size of the input (i.e., the number of vertices of $P$ plus $\vert S \vert$).
A polygon $P$ is a star polygon if there exists a point $p \in P$ which sees the entire polygon. We are given a star polygon $P$ and a point $p$ which sees the entire polygon $P$. Describe an algorithm which finds a triangulation of $P$ in linear time.
Describe an efficient algorithm for the following problem: given a polygon $P$ and a point $p \in P$ in its interior, construct the area inside $P$ which is visible from $p$.