Given a connected polygonal domain P , the watchman route problem is to compute a shortest path or tour for a mobile guard (the "watchman") that is required to see every point of P . While the watchman route problem is polynomially solvable in simple polygons, it is known to be NP-hard in polygons with holes.We present the first polynomial-time approximation algorithm for the watchman route problem in polygonal domains.Our algorithm has an approximation factor O(log 2 n). Further, we prove that the problem cannot be approximated in polynomial time to within a factor of c log n, for a constant c > 0, assuming that P =NP.
IntroductionA classic problem in computational geometry is the watchman route problem (WRP): Compute a shortest path/tour within a polygonal domain (polygon with holes) P so that every point of P is seen from some point of the path/tour, i.e., compute a shortest "visibility coverage tour". The WRP models a natural problem in robotics, in which a mobile robot/camera is to do a visual inspection of a domain or a part, whose geometry is given. Here, we focus on the offline setting, in which the geometry of the domain P is given; the problem has been studied extensively, both in the offline and online setting (see the surveys [24,25]).In this paper we give the first polynomial-time approximation algorithm for the WRP in polygonal domains in the plane. Our approximation factor is O(log 2 n); we also give the first hardness of approximation result for the WRP, showing that the problem cannot be approximated in polynomial time to within a factor of c log n, for a constant c > 0, assuming that P =NP. Here, n is the number of vertices of P .