# Art gallery problem

The art gallery problem or museum problem is a well-studied visibility problem in computational geometry. It originates from a real-world problem of guarding an art gallery with the minimum number of guards who together can observe the whole gallery. In the geometric version of the problem, the layout of the art gallery is represented by a simple polygon and each guard is represented by a point in the polygon. A set ${\displaystyle S}$ of points is said to guard a polygon if, for every point ${\displaystyle p}$ in the polygon, there is some ${\displaystyle q\in S}$ such that the line segment between ${\displaystyle p}$ and ${\displaystyle q}$ does not leave the polygon.

## Two dimensions

Four cameras cover this gallery.

There are numerous variations of the original problem that are also referred to as the art gallery problem. In some versions guards are restricted to the perimeter, or even to the vertices of the polygon. Some versions require only the perimeter or a subset of the perimeter to be guarded.

Solving the version in which guards must be placed on vertices and only vertices need to be guarded is equivalent to solving the dominating set problem on the visibility graph of the polygon.

### Chvátal's art gallery theorem

Chvátal's art gallery theorem, named after Václav Chvátal, gives an upper bound on the minimal number of guards. It states that ${\displaystyle \left\lfloor n/3\right\rfloor }$ guards are always sufficient and sometimes necessary to guard a simple polygon with ${\displaystyle n}$ vertices.

The question about how many vertices/watchmen/guards were needed was posed to Chvátal by Victor Klee in 1973.[1] Chvátal proved it shortly thereafter.[2] Chvátal's proof was later simplified by Steve Fisk,[3] via a 3-coloring argument.[4]

### Fisk's short proof

A 3-coloring of the vertices of a triangulated polygon. The blue vertices form a set of three guards, as few as is guaranteed by the art gallery theorem. However, this set is not optimal: the same polygon can be guarded by only two guards.

Steve Fisk's proof [5] is so short and elegant that it was chosen for inclusion in Proofs from THE BOOK. The proof goes as follows:

First, the polygon is triangulated (without adding extra vertices). It is known that the vertices of the resulting triangulation graph may be 3-colored.[6] Clearly, under a 3-coloring, every triangle must have all three colors. The vertices with any one color form a valid guard set, because every triangle of the polygon is guarded by its vertex with that color. Since the three colors partition the n vertices of the polygon, the color with the fewest vertices defines a valid guard set with at most ${\displaystyle \lfloor n/3\rfloor }$ guards.

### Generalizations

Chvátal's upper bound remains valid if the restriction to guards at corners is loosened to guards at any point not exterior to the polygon.

There are a number of other generalizations and specializations of the original art-gallery theorem.[7] For instance, for orthogonal polygons, those whose edges/walls meet at right angles, only ${\displaystyle \lfloor n/4\rfloor }$ guards are needed. There are at least three distinct proofs of this result, none of them simple: by Kahn, Klawe, and Kleitman; by Lubiw; and by Sack and Toussaint.[8]

A related problem asks for the number of guards to cover the exterior of an arbitrary polygon (the "Fortress Problem"): ${\displaystyle \lceil n/2\rceil }$ are sometimes necessary and always sufficient. In other words, the infinite exterior is more challenging to cover than the finite interior.[9]

### Computational complexity

In decision problem versions of the art gallery problem, one is given as input both a polygon and a number k, and must determine whether the polygon can be guarded with k or fewer guards. This problem is ${\displaystyle \exists \mathbb {R} }$-complete, as is the version where the guards are restricted to the edges of the polygon.[10] Furthermore, most of the other standard variations (such as restricting the guard locations to vertices) are NP-hard.[11] [12]

Regarding approximation algorithms for the minimum number of guards, Eidenbenz, Stamm & Widmayer (2001) proved the problem to be APX-hard, implying that it is unlikely that any approximation ratio better than some fixed constant can be achieved by a polynomial time approximation algorithm. However, an algorithm achieving a constant approximation ratio was not known until very recently. Ghosh (1987) showed that a logarithmic approximation may be achieved for the minimum number of vertex guards by discretizing the input polygon into convex subregions and then reducing the problem to a set cover problem.[13] As Valtr (1998) showed, the set system derived from an art gallery problem has bounded VC dimension,[14] allowing the application of set cover algorithms based on ε-nets whose approximation ratio is the logarithm of the optimal number of guards rather than of the number of polygon vertices.[15] For unrestricted guards, the infinite number of potential guard positions makes the problem even more difficult. However by restricting the guards to lie on a fine grid, a more complicated logarithmic approximation algorithm can be derived under some mild extra assumptions, as shown by Bonnet & Miltzow (2016).[16] However, efficient algorithms are known for finding a set of at most ${\displaystyle \left\lfloor n/3\right\rfloor }$ vertex guards, matching Chvátal's upper bound. David Avis and Godfried Toussaint (1981) proved that a placement for these guards may be computed in O(n log n) time in the worst case, via a divide and conquer algorithm. Kooshesh & Moret (1992) gave a linear time algorithm by using Fisk's short proof and Bernard Chazelle's linear time plane triangulation algorithm.

For simple polygons that do not contain holes, the existence of a constant factor approximation algorithm for vertex and edge guards was conjectured by Ghosh. Ghosh's conjecture was initially shown to be true for vertex guards in two special sub-classes of simple polygons, viz. monotone polygons and polygons weakly visible from an edge. Krohn & Nilsson (2012) presented an approximation algorithm that computes in polynomial time a vertex guard set for a monotone polygon such that the size of the guard set is at most 30 times the optimal number of vertex guards.[17] Bhattacharya, Ghosh & Roy (2015) presented an approximation algorithm that computes in O(n2) time a vertex guard set for a simple polygon that is weakly visible from an edge such that the size of the guard set is at most 6 times the optimal number of vertex guards.[18] Subsequently, Bhattacharya, Ghosh & Pal (2017) claimed to have settled the conjecture completely by presenting constant factor approximation algorithms for guarding general simple polygons using vertex guards and edge guards. [19] For vertex guarding the subclass of simple polygons that are weakly visible from an edge, a polynomial-time approximation scheme (PTAS) was recently proposed by Katz (2018).[20]

An exact algorithm was proposed by Couto, de Rezende & de Souza (2011) for vertex guards. The authors conducted extensive computational experiments with several classes of polygons showing that optimal solutions can be found in relatively small computation times even for instances associated to thousands of vertices. The input data and the optimal solutions for these instances are available for download.[21]

## Three dimensions

An example of a polyhedron with interior points not visible from any vertex.

If a museum is represented in three dimensions as a polyhedron, then putting a guard at each vertex will not ensure that all of the museum is under observation. Although all of the surface of the polyhedron would be surveyed, for some polyhedra there are points in the interior which might not be under surveillance.[22]

## Notes

1. ^ O'Rourke (1987), p. 1.
2. ^
3. ^ Leghorn, Gemma (2010). "Mathematics professor dies of leukemia at 63". The Bowdoin Orient. Archived from the original on 2017-01-16. Retrieved 2017-01-14.
4. ^
5. ^
6. ^ To prove 3-colorability of polygon triangulations, we observe that the weak dual graph to the triangulation (the undirected graph having one vertex per triangle and one edge per pair of adjacent triangles) is a tree, since any cycle in the dual graph would form the boundary of a hole in the polygon, contrary to the assumption that it has no holes. Whenever there is more than one triangle, the dual graph (like any tree) must have a vertex with only one neighbor, corresponding to a triangle that is adjacent to other triangles along only one of its sides. The smaller polygon formed by removing this triangle has a 3-coloring by mathematical induction, and this coloring is easily extended to the one additional vertex of the removed triangle.[citation needed]
7. ^
8. ^
9. ^ O'Rourke (1987), pp. 146–154.
10. ^ Abrahamsen, Mikkel; Adamaszek, Anna; Miltzow, Tillmann (2017), The Art Gallery Problem is ${\displaystyle \exists \mathbb {R} }$-complete, arXiv:1704.06969, Bibcode:2017arXiv170406969A
11. ^ Lee, D.T.; Lin, A. (1986). "Computational complexity of art gallery problems". IEEE Transactions on Information Theory. 32 (2): 276–282. doi:10.1109/TIT.1986.1057165.
12. ^ O'Rourke, J.; Supowit, K. (1983). "Some NP-hard polygon decomposition problems". IEEE Transactions on Information Theory. 29 (2): 181–190. doi:10.1109/TIT.1983.1056648.
13. ^ Ghosh, Subir Kumar (2010). "Approximation algorithms for art gallery problems in polygons". Discrete Applied Mathematics. 158 (6): 718–722. doi:10.1016/j.dam.2009.12.004.
14. ^ Valtr, Pavl (1998), "Guarding galleries where no point sees a small area", Israel J. Math., 104 (1): 1–16, doi:10.1007/BF02897056
15. ^ Brönnimann, H.; Goodrich, M. T. (1995). "Almost optimal set covers in finite VC-dimension". Discrete & Computational Geometry. 14 (4): 463–479. doi:10.1007/BF02570718.
16. ^ Bonnet, Edouard; Miltzow, Tillmann (2016), An Approximation Algorithm for the Art Gallery Problem, arXiv:1607.05527, Bibcode:2016arXiv160705527B.
17. ^ Krohn, Erik A.; Nilsson, Bengt J. (2013). "Approximate Guarding of Monotone and Rectilinear Polygons" (PDF). Algorithmica. 66 (3): 564–594. doi:10.1007/s00453-012-9653-3.
18. ^ Bhattacharya, Pritam; Ghosh, Subir Kumar; Roy, Bodhayan (2017). "Approximability of guarding weak visibility polygons". Discrete Applied Mathematics. 228: 109–129. arXiv:1409.4621. doi:10.1016/j.dam.2016.12.015.
19. ^ Bhattacharya, Pritam; Ghosh, Subir Kumar; Pal, Sudebkumar (2017), Constant Approximation Algorithms for Guarding Simple Polygons using Vertex Guards, arXiv:1712.05492
20. ^ Katz, Matthew J. (2018), A PTAS for vertex guarding weakly-visible polygons - An extended abstract, arXiv:1803.02160
21. ^
22. ^ O'Rourke (1987), p. 255.