Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
439300 | Theoretical Computer Science | 2007 | 12 Pages |
Given a simple polygon P of n vertices, the watchman route problem asks for a shortest (closed) route inside P such that each point in the interior of P can be seen from at least one point along the route. In this paper, we present a simple, linear-time algorithm for computing a watchman route of length at most two times that of the shortest watchman route. The best known algorithm for computing a shortest watchman route takes O(n4logn) time, which is too complicated to be suitable in practice.This paper also involves an optimal O(n) time algorithm for computing the set of so-called essential cuts, which are the line segments inside the polygon P such that any route visiting them is a watchman route. It solves an intriguing open problem by improving the previous O(nlogn) time result, and is thus of interest in its own right.