|
|
Line 1: |
Line 1: |
| 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 computational geometry version of the problem the layout of the art gallery is represented by a [[simple polygon]] and each guard is represented by a [[point (geometry)|point]] in the polygon. A set <math>S</math> of points is said to guard a polygon if, for every point <math>p</math> in the polygon, there is some <math>q\in S</math> such that the [[line segment]] between <math>p</math> and <math>q</math> does not leave the polygon. | | Greetings. The author's title is Phebe and she feels comfortable when people use the complete title. For a whilst she's been in South Dakota. Managing people is his occupation. One of the issues she enjoys most is to do aerobics and now she is attempting to earn cash with it.<br><br>My web page ... [http://www.hnrztx.net/home/space.php?uid=53937&do=blog&id=50168 std testing at home] |
| | |
| ==Two dimensions==
| |
| [[File:Art gallery problem.svg|thumb|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 <math>\left\lfloor n/3 \right\rfloor</math> guards are always sufficient and sometimes necessary to guard a simple polygon with <math>n</math> vertices.
| |
| | |
| The question about how many vertices/watchmen/guards were needed was posed to Chvátal by [[Victor Klee]] in 1973.<ref>{{harvtxt|O'Rourke|1987}}, p. 1.</ref> Chvátal proved it shortly thereafter.<ref>{{harvtxt|Chvátal|1975}}.</ref> Chvátal's proof was later simplified by Steve Fisk, via a [[graph coloring|3-coloring]] argument.<ref>{{harvtxt|Fisk|1978}}.</ref>
| |
| | |
| === Fisk's short proof ===
| |
| [[File:Triangulation 3-coloring.svg|thumb|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.]]
| |
| {{harvtxt|Fisk|1978}} proves the art gallery theorem as follows.
| |
| | |
| First, the polygon is [[Polygon triangulation|triangulated]] (without adding extra vertices). The vertices of the polygon are then [[Graph coloring|3-colored]] in such a way that every triangle has all three colors. To find a 3-coloring, it is helpful to observe that the [[dual graph]] to the triangulation (the [[undirected graph]] having one vertex per triangle and one edge per pair of adjacent triangles) is a [[Tree (graph theory)|tree]], for 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 simpler 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.
| |
| | |
| Once a 3-coloring is found, 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 forms a valid guard set with at most <math>\lfloor n/3\rfloor</math> 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.<ref>{{harvtxt|Shermer|1992}}.</ref> For instance, for [[orthogonal polygons]], those whose edges/walls meet at right angles, only <math>\lfloor n/4 \rfloor</math> guards are needed. There are at least three distinct proofs of this result, none of them simple: by Kahn, [[Maria Klawe|Klawe]], and [[Daniel Kleitman|Kleitman]]; by [[Anna Lubiw|Lubiw]]; and by [[Jörg-Rüdiger Sack|Sack]] and [[Godfried Toussaint|Toussaint]].<ref>{{harvtxt|O'Rourke|1987}}, pp. 31–80; {{harvtxt|Kahn|Klawe|Kleitman|1983}}; {{harvtxt|Lubiw|1985}}; {{harvtxt|Sack|Toussaint|1988}}.</ref>
| |
| | |
| A related problem asks for the number of guards to cover the exterior of an arbitrary polygon (the "Fortress Problem"): <math>\lceil n/2 \rceil</math> are sometimes necessary and always sufficient. In other words, the infinite exterior is more challenging to cover than the finite interior.<ref>{{harvtxt|O'Rourke|1987}}, pp. 146–154.</ref>
| |
| | |
| ===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 and all of its standard variations (such as restricting the guard locations to vertices or edges of the polygon) are [[NP-hard]].<ref>{{harvtxt|O'Rourke|1987}}, pp. 239–242; {{harvtxt|Aggarwal|1984}}; {{harvtxt|Lee|Lin|1986}}.</ref>
| |
| Regarding [[approximation algorithm]]s for the minimum number of guards, {{harvtxt|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, a constant approximation ratio is not known. Instead, a [[logarithm]]ic approximation may be achieved for the minimum number of vertex guards by reducing the problem to a [[set cover]] problem.<ref>{{harvtxt|Ghosh|1987}}.</ref> As {{harvtxt|Valtr|1998}} showed, the set system derived from an art gallery problem has bounded [[VC dimension]], allowing the application of set cover algorithms based on [[ε-net (computational geometry)|ε-nets]] whose approximation ratio is the logarithm of the optimal number of guards rather than of the number of polygon vertices.<ref>{{harvtxt|Brönnimann|Goodrich|1995}}.</ref>
| |
| For unrestricted guards, the infinite number of potential guard positions makes the problem even more difficult.<ref>{{harvtxt|Deshpande|Kim|Demaine|Sarma|2007}}</ref>
| |
| | |
| However, efficient algorithms are known for finding a set of at most <math>\left\lfloor n/3 \right\rfloor</math> vertex guards, matching Chvátal's upper bound.
| |
| {{harvs|first1=David|last1=Avis|author1-link=David Avis|first2=Godfried|last2=Toussaint|author2-link=Godfried Toussaint|year=1981|txt}} 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]].
| |
| {{harvtxt|Kooshesh|Moret|1992}} gave a [[linear time]] algorithm by using Fisk's short proof and [[Bernard Chazelle]]'s linear time plane triangulation algorithm.
| |
| | |
| An exact algorithm was proposed by {{harvtxt|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.<ref>{{harvtxt|Couto|de Rezende|de Souza|2011}}.</ref>
| |
| | |
| ==Three dimensions==
| |
| [[File:Polyhedron with no vertex visible from center.png|thumb|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.<ref>{{harvtxt|O'Rourke|1987}}, p. 255.</ref>
| |
| | |
| ==Notes==
| |
| {{reflist|2}}
| |
| | |
| ==References==
| |
| *{{citation
| |
| | last = Aggarwal | first = A.
| |
| | publisher = Ph.D. thesis, Johns Hopkins University
| |
| | title = The art gallery theorem: Its variations, applications, and algorithmic aspects
| |
| | year = 1984}}.
| |
| *{{citation
| |
| | last1 = Avis | first1 = D. | author1-link = David Avis
| |
| | last2 = Toussaint | first2 = G. T. | author2-link = Godfried Toussaint
| |
| | doi = 10.1016/0031-3203(81)90002-9
| |
| | issue = 6
| |
| | journal = Pattern Recognition
| |
| | pages = 395–398
| |
| | title = An efficient algorithm for decomposing a polygon into star-shaped polygons
| |
| | url = http://cgm.cs.mcgill.ca/~godfried/publications/star.pdf
| |
| | volume = 13
| |
| | year = 1981}}.
| |
| *{{citation
| |
| | last1 = Brönnimann | first1 = H.
| |
| | last2 = Goodrich | first2 = M. T. | author2-link = Michael T. Goodrich
| |
| | doi = 10.1007/BF02570718
| |
| | issue = 1
| |
| | journal = Discrete and Computational Geometry
| |
| | pages = 463–479
| |
| | title = Almost optimal set covers in finite VC-dimension
| |
| | volume = 14
| |
| | year = 1995}}.
| |
| *{{citation
| |
| | last = Chvátal | first = V. | author-link = Václav Chvátal
| |
| | doi = 10.1016/0095-8956(75)90061-1
| |
| | journal = Journal of Combinatorial Theory, Series B
| |
| | pages = 39–41
| |
| | title = A combinatorial theorem in plane geometry
| |
| | volume = 18
| |
| | year = 1975}}.
| |
| *{{citation
| |
| | last1 = Couto | first1 = M.
| |
| | last2 = de Rezende | first2 = P.
| |
| | last3 = de Souza | first3 = C.
| |
| | doi = 10.1111/j.1475-3995.2011.00804.x
| |
| | journal = International Transactions in Operational Research
| |
| | title = An exact algorithm for minimizing vertex guards on art galleries
| |
| | year = 2011
| |
| | pages = no–no}}.
| |
| *{{citation
| |
| | last1 = Couto | first1 = M.
| |
| | last2 = de Rezende | first2 = P.
| |
| | last3 = de Souza | first3 = C.
| |
| | title = Benchmark instances for the art gallery problem with vertex guards
| |
| | url = http://www.ic.unicamp.br/~cid/Problem-instances/Art-Gallery/
| |
| | year = 2011}}.
| |
| *{{citation
| |
| | last1 = Deshpande | first1 = Ajay
| |
| | last2 = Kim | first2 = Taejung
| |
| | last3 = Demaine | first3 = Erik D. | author3-link = Erik Demaine
| |
| | last4 = Sarma | first4 = Sanjay E.
| |
| | doi = 10.1007/978-3-540-73951-7_15
| |
| | pages = 163–174
| |
| | publisher = Springer-Verlag
| |
| | series = Lecture Notes in Computer Science
| |
| | title = [[SWAT and WADS conferences|Proc. Worksh. Algorithms and Data Structures]]
| |
| | volume = 4619
| |
| | year = 2007
| |
| | chapter = A Pseudopolynomial Time O(logn)-Approximation Algorithm for Art Gallery Problems
| |
| | isbn = 978-3-540-73948-7}}.
| |
| *{{citation
| |
| | last1 = Eidenbenz | first1 = S.
| |
| | last2 = Stamm | first2 = C.
| |
| | last3 = Widmayer | first3 = P.
| |
| | doi = 10.1007/s00453-001-0040-8
| |
| | issue = 1
| |
| | journal = Algorithmica
| |
| | pages = 79–113
| |
| | title = Inapproximability results for guarding polygons and terrains
| |
| | url = http://www.inf.ethz.ch/personal/eidenben/publications/eidenbenz_algorithmica2001.pdf
| |
| | volume = 31
| |
| | year = 2001}}.
| |
| *{{citation
| |
| | last = Fisk | first = S.
| |
| | doi = 10.1016/0095-8956(78)90059-X
| |
| | issue = 3
| |
| | journal = Journal of Combinatorial Theory, Series B
| |
| | page = 374
| |
| | title = A short proof of Chvátal's watchman theorem
| |
| | volume = 24
| |
| | year = 1978}}.
| |
| *{{citation
| |
| | last = Ghosh | first = S. K.
| |
| | contribution = Approximation algorithms for art gallery problems
| |
| | pages = 429–434
| |
| | title = Proc. Canadian Information Processing Society Congress
| |
| | year = 1987}}.
| |
| *{{citation
| |
| | last1 = Kahn | first1 = J.
| |
| | last2 = Klawe | first2 = M. | author2-link = Maria Klawe
| |
| | last3 = Kleitman | first3 = D. | author3-link = Daniel Kleitman
| |
| | doi = 10.1137/0604020
| |
| | issue = 2
| |
| | journal = SIAM J. Alg. Disc. Meth.
| |
| | pages = 194–206
| |
| | title = Traditional galleries require fewer watchmen
| |
| | volume = 4
| |
| | year = 1983}}.
| |
| *{{citation
| |
| | last1 = Kooshesh | first1 = A. A.
| |
| | last2 = Moret | first2 = B. M. E.
| |
| | doi = 10.1016/0031-3203(92)90093-X
| |
| | issue = 4
| |
| | journal = Pattern Recognition
| |
| | page = 443
| |
| | title = Three-coloring the vertices of a triangulated simple polygon
| |
| | volume = 25
| |
| | year = 1992}}.
| |
| *{{citation
| |
| | last1 = Lee | first1 = D. T. | author1-link = Der-Tsai Lee
| |
| | last2 = Lin | first2 = A. K.
| |
| | doi = 10.1109/TIT.1986.1057165
| |
| | issue = 2
| |
| | journal = IEEE Transactions on Information Theory
| |
| | pages = 276–282
| |
| | title = Computational complexity of art gallery problems
| |
| | volume = 32
| |
| | year = 1986}}.
| |
| *{{citation
| |
| | last = Lubiw | first = A. | authorlink = Anna Lubiw
| |
| | doi = 10.1145/323233.323247
| |
| | pages = 97–106
| |
| | title = Proc. 1st ACM Symposium on Computational Geometry
| |
| | year = 1985
| |
| | chapter = Decomposing polygonal regions into convex quadrilaterals
| |
| | isbn = 0-89791-163-6}}.
| |
| *{{citation
| |
| | last = O'Rourke | first = Joseph | author-link = Joseph O'Rourke (professor)
| |
| | isbn = 0-19-503965-3
| |
| | publisher = Oxford University Press
| |
| | title = Art Gallery Theorems and Algorithms
| |
| | url = http://cs.smith.edu/~orourke/books/ArtGalleryTheorems/art.html
| |
| | year = 1987}}.
| |
| *{{citation
| |
| | last1 = Sack | first1 = J. R. | author1-link = Jörg-Rüdiger Sack
| |
| | last2 = Toussaint | first2 = G. T. | author2-link = Godfried Toussaint
| |
| | contribution = Guard placement in rectilinear polygons
| |
| | editor-last = Toussaint | editor-first = G. T. | editor-link = Godfried Toussaint
| |
| | pages = 153–176
| |
| | publisher = North-Holland
| |
| | title = Computational Morphology
| |
| | year = 1988}}.
| |
| *{{citation
| |
| | last = Shermer | first = Thomas
| |
| | doi = 10.1109/5.163407
| |
| | issue = 9
| |
| | journal = Proceedings of the IEEE
| |
| | pages = 1384–1399
| |
| | title = Recent Results in Art Galleries
| |
| | url = http://www.cs.ubc.ca/nest/theory/thread/papers/shermer2002.pdf
| |
| | volume = 80
| |
| | year = 1992}}.
| |
| *{{citation
| |
| | last = Valtr | first = P.
| |
| | doi = 10.1007/BF02897056
| |
| | issue = 1
| |
| | journal = Israel J. Math.
| |
| | pages = 1–16
| |
| | title = Guarding galleries where no point sees a small area
| |
| | volume = 104
| |
| | year = 1998}}.
| |
| | |
| {{DEFAULTSORT:Art Gallery Problem}}
| |
| [[Category:Computational geometry]]
| |
| [[Category:Articles containing proofs]]
| |
| [[Category:Computational problems]]
| |