The art gallery problem or museum problem is a well-studied
visibility problem
In geometry, visibility is a mathematical abstraction of the real-life notion of visibility.
Given a set of obstacles in the Euclidean space, two points in the space are said to be visible to each other, if the line segment that joins them does n ...
in
computational geometry. It originates from the following real-world problem:
"In an art gallery
An art gallery is a room or a building in which visual art is displayed. In Western cultures from the mid-15th century, a gallery was any long, narrow covered passage along a wall, first used in the sense of a place for art in the 1590s. The long ...
, what is 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
In geometry, a simple polygon is a polygon that does not Intersection (Euclidean geometry), intersect itself and has no holes. That is, it is a Piecewise linear curve, piecewise-linear Jordan curve consisting of finitely many line segments. The ...
and each guard is represented by a
point in the polygon. A set
of points is said to guard a polygon if, for every point
in the polygon, there is some
such that the
line segment
In geometry, a line segment is a part of a line (mathematics), straight line that is bounded by two distinct endpoints (its extreme points), and contains every Point (geometry), point on the line that is between its endpoints. It is a special c ...
between
and
does not leave the polygon.
The art gallery problem can be applied in several domains such as in
robotics
Robotics is the interdisciplinary study and practice of the design, construction, operation, and use of robots.
Within mechanical engineering, robotics is the design and construction of the physical structures of robots, while in computer s ...
, when
artificial intelligences (AI) need to execute movements depending on their surroundings. Other domains, where this problem is applied, are in
image editing
Image editing encompasses the processes of altering images, whether they are Digital photography, digital photographs, traditional Photographic processing, photo-chemical photographs, or illustrations. Traditional analog image editing is known ...
, lighting problems of a stage or installation of infrastructures for the warning of natural disasters.
Two dimensions

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
Václav (Vašek) Chvátal () is a Professor Emeritus in the Department of Computer Science and Software Engineering at Concordia University in Montreal, Quebec, Canada, and a visiting professor at Charles University in Prague. He has published ex ...
, gives an
upper bound
In mathematics, particularly in order theory, an upper bound or majorant of a subset of some preordered set is an element of that is every element of .
Dually, a lower bound or minorant of is defined to be an element of that is less ...
on the minimal number of guards. It states:
"To guard a simple polygon with vertices, guards are always sufficient and sometimes necessary."
History
The question about how many vertices/watchmen/guards were needed, was posed to Chvátal by
Victor Klee in 1973. Chvátal proved it shortly thereafter. Chvátal's proof was later simplified by Steve Fisk, via a
3-coloring argument. Chvátal has a more geometrical approach, whereas Fisk uses well-known results from
Graph theory
In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
.
Fisk's short proof

Steve Fisk's proof is so short and elegant that it was chosen for inclusion in ''
Proofs from THE BOOK
''Proofs from THE BOOK'' is a book of mathematical proofs by Martin Aigner and Günter M. Ziegler. The book is dedicated to the mathematician Paul Erdős, who often referred to "The Book" in which God keeps the most elegant proof of each mathemat ...
''.
The proof goes as follows:
First, the polygon is
triangulated (without adding extra vertices), which is possible, because the existence of triangulations is proven under certain verified conditions. The vertices of the resulting triangulation graph may be
3-colored. 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
guards.
Illustration of the proof
To illustrate the proof, we consider the polygon below. The first step is to triangulate the polygon (see ''Figure 1''). Then, one applies a proper
-colouring (''Figure 2'') and observes that there are
 red,
 blue and
 green vertices. The colour with the fewest vertices is blue or red, thus the polygon can be covered by
 guards (''Figure 3''). This agrees with the art gallery theorem, because the polygon has
 vertices, and
.
File:Triangulation of polygon.png, Figure 1
File:3-coloring of the polygon.png, Figure 2
File:Least color of 3-coloration.png, Figure 3
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. For instance, for
orthogonal polygons, those whose edges/walls meet at right angles, only
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
A sack usually refers to a rectangular-shaped bag.
Sack may also refer to:
Bags
* Flour sack
* Gunny sack
* Hacky sack, sport
* Money sack
* Paper sack
* Sleeping bag
* Stuff sack
* Knapsack
Other uses
* Bed, a slang term
* Sack (band), ...
and
Toussaint.
A related problem asks for the number of guards to cover the exterior of an arbitrary polygon (the "Fortress Problem"):
are sometimes necessary and always sufficient if guards are placed on the boundary of the polygon, while
are sometimes necessary and always sufficient if guards are placed anywhere in the exterior of the polygon. In other words, the infinite exterior is more challenging to cover than the finite interior.
Computational complexity
In
decision problem
In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question on a set of input values. An example of a decision problem is deciding whether a given natura ...
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
-complete, as is the version where the guards are restricted to the edges of the polygon. Furthermore, most of the other standard variations (such as restricting the guard locations to vertices) are
NP-hard
In computational complexity theory, a computational problem ''H'' is called NP-hard if, for every problem ''L'' which can be solved in non-deterministic polynomial-time, there is a polynomial-time reduction from ''L'' to ''H''. That is, assumi ...
.
Regarding
approximation algorithm
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
s for the minimum number of guards, proved the problem to be APX-hard, implying that it is unlikely that any
approximation ratio
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
better than some fixed constant can be achieved by a
polynomial time
In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations p ...
approximation algorithm
In computer science and operations research, approximation algorithms are efficient algorithms that find approximate solutions to optimization problems (in particular NP-hard problems) with provable guarantees on the distance of the returned sol ...
. showed that a
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
ic 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
The set cover problem is a classical question in combinatorics, computer science, operations research, and Computational complexity theory, complexity theory.
Given a Set (mathematics), set of elements (henceforth referred to as the Universe ( ...
problem. As showed, the set system derived from an art gallery problem has bounded
VC dimension
VC may refer to:
Military decorations
* Victoria Cross, a military decoration awarded by the United Kingdom and other Commonwealth nations
** Victoria Cross for Australia
** Victoria Cross (Canada)
** Victoria Cross for New Zealand
* Victorious ...
, 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. 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
logarithm
In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
ic approximation algorithm can be derived under some mild extra assumptions, as shown by . However, efficient algorithms are known for finding a set of at most
vertex guards, matching Chvátal's upper bound.
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.
gave a
linear time
In theoretical computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations ...
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. 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. presented an approximation algorithm that computes in O(n
2) 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. Subsequently, claimed to have settled the conjecture completely by presenting constant factor approximation algorithms for guarding general simple polygons using vertex guards and edge guards. For vertex guarding the subclass of simple polygons that are weakly visible from an edge, a
polynomial-time approximation scheme was proposed by .
An exact algorithm was proposed by 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.
[.]
Three dimensions
If a museum is represented in three dimensions as a
polyhedron
In geometry, a polyhedron (: polyhedra or polyhedrons; ) is a three-dimensional figure with flat polygonal Face (geometry), faces, straight Edge (geometry), edges and sharp corners or Vertex (geometry), vertices. The term "polyhedron" may refer ...
, 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 that might not be under surveillance.
See also
*
Covering a rectilinear polygon with star polygons
*
Star-shaped polygon, a class of polygon for which the art gallery problem can be solved with a single guard.
*
Illumination problem
Illumination problems are a class of mathematical problems that study the illumination of rooms with mirrored walls by point light sources.
Original formulation
The original formulation was attributed to Ernst Straus in the 1950s and has been ...
: does a single guard suffice if walls are mirrored?
Notes
References
Sources
*
*.
*.
*.
*.
*
*
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
*.
{{DEFAULTSORT:Art Gallery Problem
Computational geometry
Articles containing proofs
Covering problems
Polygons