Abstract
The Art Gallery problem is a fundamental visibility problem in Computational Geometry. The input consists of a simple polygon P, (possibly infinite) sets G and C of points within P, and an integer k; the task is to decide if at most k guards can be placed on points in G so that every point in C is visible to at least one guard. In the classic formulation of Art Gallery, G and C consist of all the points within P. Other well-known variants restrict G and C to consist either of all the points on the boundary of P or of all the vertices of P. Recently, three new important discoveries were made: the above mentioned variants of Art Gallery are all W[1]-hard with respect to k [Bonnet and Miltzow in 24th Annual European Symposium on Algorithms (Aarhus 2016)], the classic variant has an \({{\mathcal {O}}}(\log k)\)-approximation algorithm [Bonnet and Miltzow in 33rd International Symposium on Computational Geometry (Brisbane 2017)], and it may require irrational guards [Abrahamsen et al. in 33rd International Symposium on Computational Geometry (Brisbane 2017)]. Building upon the third result, the classic variant and the case where G consists only of all the points on the boundary of P were both shown to be \(\exists {\mathbb {R}}\)-complete [Abrahamsen et al. in 50th Annual ACM SIGACT Symposium on Theory of Computing (Los Angeles 2018)]. Even when both G and C consist only of all the points on the boundary of P, the problem is not known to be in NP. Given the first discovery, the following question was posed by Giannopoulos [Lorentz Workshop on Fixed-Parameter Computational Geometry (Leiden 2016)]: Is Art Gallery FPT with respect to r, the number of reflex vertices? In light of the developments above, we focus on the variant where G and C consist of all the vertices of P, called Vertex-Vertex Art Gallery. Apart from being a variant of Art Gallery, this case can also be viewed as the classic Dominating Set problem in the visibility graph of a polygon. In this article, we show that the answer to the question by Giannopoulos is positive: Vertex-Vertex Art Gallery is solvable in time \(r^{{{\mathcal {O}}}(r^2)}\hspace{0.55542pt}{\cdot }\hspace{1.66656pt}n^{{{\mathcal {O}}}(1)}\). Furthermore, our approach extends to assert that Vertex-Boundary Art Gallery and Boundary-Vertex Art Gallery are both FPT as well. To this end, we utilize structural properties of “almost convex polygons” to present a two-stage reduction from Vertex-Vertex Art Gallery to a new constraint satisfaction problem (whose solution is also provided in this paper) where constraints have arity 2 and involve monotone functions.
Similar content being viewed by others
Notes
The X-Y Art Gallery problem, for any \(\textsc {X},\textsc {Y}\in \{\textsc {Point},\textsc {Boundary},\textsc {Vertex}\}\), is often loosely termed the Art Gallery problem. For example, in the survey of open problems by Ghosh and Goswami [27], the term Art Gallery problem refers to the Vertex-Vertex Art Gallery problem.
A non-decreasing function (or sequence) is one that never decreases but can sometimes not increase.
If v does not see any vertex in [i, j], the claim holds vacuously.
We remark that we do not know whether it is possible that the first vertices would form a non-increasing (or non-decreasing) sequence and the last vertices would not. Our weaker claim suffices for our purposes.
If \(x\in {{\,\mathrm{\textsf{reflex}\hspace{0.36667pt}}\,}}(P)\), by \(S\cap x\) we mean \(S\cap \{x\}\).
To comply with the formal definition of a Turing reduction, by Yes we mean a set with a single trivial Yes-instance of Structured Art Gallery. Note that if \(r > k\), then we also have that \(r\geqslant 1\).
CSP is an abbreviation of Constraint Satisfaction Problem, and 2 is the maximum arity of a constraint.
In case \(e\in {{\,\mathrm{\textsf{reflex}\hspace{0.36667pt}}\,}}(P)\), we mean that e itself does not see any vertex in C.
For example, in Fig. 4, neither \({{\,\mathrm{\textsf{first}\hspace{0.99991pt}}\,}}(4,[8,19])\) nor \({{\,\mathrm{\textsf{first}\hspace{0.99991pt}}\,}}(6,[8,19])\) is \({{\,\mathrm{\mathsf nil}\,}}\), but \({{\,\mathrm{\textsf{first}\hspace{0.99991pt}}\,}}(5,[8,19])={{\,\mathrm{\mathsf nil}\,}}\).
In the third and fourth cases, unlike the first and second cases, we first define f for integers \(i>h'\) rather than for integers \(i<\ell '\). The correctness of the reduction relies on this choice of design (we further elaborate on this in footnote 14 in the proof).
If \(e\in {{\,\mathrm{\textsf{reflex}\hspace{0.36667pt}}\,}}(P)\), by \({\alpha (x)}\in e\) we mean \({\alpha (x)}=e\).
Here, induction is not mandatory. Instead, we can rely on the constraints marked with a tilde. However, these constraints are required for a different purpose (rather than only to encompass the inductive hypothesis). To highlight this, we prefer to use induction.
See “guarding the middle vertices in a convex region” in Sect. 3.3.
If the function f were defined first for \(i<\ell '\) rather than for \(i>h'\), then the existence of \({\widehat{\delta }}\) would not have followed. Specifically, we need the integer that “propagates” in the definition of \({\widehat{f}}\) to be N rather than 0 because we have the assertion \(\alpha (x)\geqslant {\widehat{f}}(\alpha (x'))\) rather than \(\alpha (x)\leqslant {\widehat{f}}(\alpha (x'))\).
References
Abrahamsen, M., Adamaszek, A., Miltzow, T.: Irrational guards are sometimes needed. In: 33rd International Symposium on Computational Geometry (Brisbane 2017). Leibniz Int. Proc. Inform., vol. 77, \(\#\,3\). Leibniz-Zent. Inform., Wadern (2017)
Abrahamsen, M., Adamaszek, A., Miltzow, T.: The art gallery problem is \(\exists {\mathbb{R}}\)-complete. In: 50th Annual ACM SIGACT Symposium on Theory of Computing (Los Angeles 2018), pp. 65–73. ACM, New York (2018)
Aggarwal, A.: The Art Gallery Theorem: Its Variations, Applications and Algorithmic Aspects. PhD thesis, Johns Hopkins University (1986)
Aspvall, B., Plass, M.F., Tarjan, R.E.: A linear-time algorithm for testing the truth of certain quantified Boolean formulas. Inform. Process. Lett. 8(3), 121–123 (1979)
Avis, D., Toussaint, G.T.: An efficient algorithm for decomposing a polygon into star-shaped polygons. Pattern Recognit. 13(6), 395–398 (1981)
Basu, S., Pollack, R., Roy, M.-F.: On the combinatorial and algebraic complexity of quantifier elimination. J. ACM 43(6), 1002–1045 (1996)
Bhattacharya, P., Ghosh, S.K., Pal, S.P.: Constant approximation algorithms for guarding simple polygons using vertex guards (2017). arXiv:1712.05492
Bhattacharya, P., Ghosh, S.K., Roy, B.: Approximability of guarding weak visibility polygons. Discrete Appl. Math. 228, 109–129 (2017)
Bonnet, É., Miltzow, T.: Parameterized hardness of art gallery problems. In: 24th Annual European Symposium on Algorithms (Aarhus 2016). Leibniz Int. Proc. Inform., vol. 57, # 19. Leibniz-Zent. Inform., Wadern (2016)
Bonnet, É., Miltzow, T.: An approximation algorithm for the art gallery problem. In: 33rd International Symposium on Computational Geometry (Brisbane 2017). Leibniz Int. Proc. Inform., vol. 77, # 20. Leibniz-Zent. Inform., Wadern (2017)
Bonnet, É., Miltzow, T.: Parameterized hardness of art gallery problems. ACM Trans. Algorithms 16(4), \(\#\,42\) (2020)
Borrmann, D., de Rezende, P.J., de Souza, C.C., Fekete, S.P., Friedrichs, S., Kröller, A., Nüchter, A., Schmidt, C., Tozoni, D.C.: Point guards and point clouds: solving general art gallery problems. In: 29th Symposuim on Computational Geometry (Rio de Janeiro 2013), pp. 347–348. ACM, New York (2013)
Brönnimann, H., Goodrich, M.T.: Almost optimal set covers in finite VC-dimension. Discrete Comput. Geom. 14(4), 463–479 (1995)
Chvátal, V.A.: A combinatorial theorem in plane geometry. J. Comb. Theory Ser. B 18(1), 39–41 (1975)
Clarkson, K.L.: Algorithms for polytope covering and approximation. In: Algorithms and Data Structures (Montréal 1993). Lecture Notes in Computer Science, vol. 709, pp. 246–252. Springer, Berlin (1993)
Couto, M.C., de Rezende, P.J., de Souza, C.C.: An exact algorithm for minimizing vertex guards on art galleries. Int. Trans. Oper. Res. 18(4), 425–448 (2011)
Cygan, M., Fomin, F.V., Kowalik, Ł., Lokshtanov, D., Marx, D., Pilipczuk, M., Pilipczuk, M., Saurabh, S.: Parameterized Algorithms. Springer, Cham (2015)
Deshpande, A., Kim, T., Demaine, E.D., Sarma, S.E.: A pseudopolynomial time \(O(\log n)\)-approximation algorithm for art gallery problems. In: Algorithms and Data Structures (Halifax 2007). Lecture Notes in Computer Science, vol. 4619, pp. 163–174. Springer, Berlin (2007)
Diestel, R.: Graph Theory. Springer, Heidelberg (2012)
Downey, R.G., Fellows, M.R.: Fundamentals of Parameterized Complexity. Texts in Computer Science. Springer, London (2013)
Efrat, A., Har-Peled, S.: Guarding galleries and terrains. Inform. Process. Lett. 100(6), 238–245 (2006)
Eidenbenz, S., Stamm, C., Widmayer, P.: Inapproximability of some art gallery problems. In: 10th Canadian Conference on Computational Geometry (Montréal 1998), \(\#\,23\). https://cccg.ca/proceedings/1998/
Eidenbenz, S., Stamm, C., Widmayer, P.: Inapproximability results for guarding polygons and terrains. Algorithmica 31(1), 79–113 (2001)
Fisk, S.: A short proof of Chvátal’s watchman theorem. J. Comb. Theory Ser. B 24(3), 374 (1978)
Ghosh, S.K.: Approximation algorithms for art gallery problems. In: Canadian Information Processing Society Congress (Winnipeg 1987), pp. 429–434. CIPS, Toronto (1987)
Ghosh, S.K.: Approximation algorithms for art gallery problems in polygons. Discrete Appl. Math. 158(6), 718–722 (2010)
Ghosh, S.K., Goswami, P.P.: Unsolved problems in visibility graphs of points, segments, and polygons. ACM Comput. Surveys 46(2), \(\#\,22\) (2013)
Giannopoulos, P.: Open problems: guarding problems. In: Lorentz Workshop on Fixed-Parameter Computational Geometry (Leiden 2016)
Gilbers, A., Klein, R.: A new upper bound for the VC-dimension of visibility regions. Comput. Geom. 47(1), 61–74 (2014)
Golovach, P.A., Lokshtanov, D., Saurabh, S., Zehavi, M.: Cliquewidth III: the odd case of graph coloring parameterized by cliquewidth. In: 28th Annual ACM-SIAM Symposium on Discrete Algorithms (New Orleans 2018), pp. 262–273. SIAM, Philadelphia (2018)
Hengeveld, S.B., Miltzow, T.: A practical algorithm with performance guarantees for the art gallery problem. In: 37th International Symposium on Computational Geometry. Leibniz Int. Proc. Inform., vol. 189, # 44. Leibniz-Zent. Inform., Wadern (2021)
Kalai, G., Matoušek, J.: Guarding galleries where every point sees a large area. Isr. J. Math. 101, 125–139 (1997)
Katz, M.J.: A PTAS for vertex guarding weakly-visible polygons—an extended abstract (2018). arXiv:1803.02160
Katz, M.J., Roisman, G.S.: On guarding the vertices of rectilinear domains. Comput. Geom. 39(3), 219–228 (2008)
King, J.: Fast vertex guarding for polygons with and without holes. Comput. Geom. 46(3), 219–231 (2013)
King, J., Kirkpatrick, D.G.: Improved approximation for guarding simple galleries from the perimeter. Discrete Comput. Geom. 46(2), 252–269 (2011)
Kirkpatrick, D.: An \(O({\rm lg}\,{\rm lg}\,{ OPT})\)-approximation algorithm for multi-guarding galleries. Discrete Comput. Geom. 53(2), 327–343 (2015)
Kooshesh, A.A., Moret, B.M.E.: Three-coloring the vertices of a triangulated simple polygon. Pattern Recognit. 25(4), 443 (1992)
Krohn, E.A., Nilsson, B.J.: Approximate guarding of monotone and rectilinear polygons. Algorithmica 66(3), 564–594 (2013)
Lee, D.T., Lin, A.K.: Computational complexity of art gallery problems. IEEE Trans. Inform. Theory 32(2), 276–282 (1986)
Niedermeier, R.: Ubiquitous parameterization—invitation to fixed-parameter algorithms. In: 29th International Symposium on Mathematical Foundations of Computer Science (Prague 2004). Lecture Notes in Computer Science, vol. 3153, pp. 84–103. Springer, Berlin (2004)
Niedermeier, R.: Reflections on multivariate algorithmics and problem parameterization. In: 27th International Symposium on Theoretical Aspects of Computer Science (Nancy 2010). Leibniz Int. Proc. Inform., vol. 5, pp. 17–32. Leibniz-Zent. Inform., Wadern (2010)
O’Rourke, J.: Art Gallery Theorems and Algorithms. International Series of Monographs on Computer Science. Oxford University Press, Oxford (1987)
O’Rourke, J., Supowit, K.J.: Some NP-hard polygon decomposition problems. IEEE Trans. Inform. Theory 29(2), 181–189 (1983)
de Rezende, P.J., de Souza, C.C., Friedrichs, S., Hemmer, M., Kröller, A., Tozoni, D.C.: Engineering art galleries. In: Algorithm Engineering. Lecture Notes in Computer Science, vol. 9220, pp. 379–417. Springer, Cham (2016)
Schuchardt, D., Hecker, H.-D.: Two NP-hard art-gallery problems for ortho-polygons. Math. Logic Quart. 41(2), 261–267 (1995)
Shermer, T.C.: Recent results in art galleries. Proc. IEEE 80(9), 1384–1399 (1992)
Urrutia, J.: Art gallery and illumination problems. In: Handbook of Computational Geometry, pp. 973–1027. North-Holland, Amsterdam (2000)
Valtr, P.: Guarding galleries where no point sees a small area. Isr. J. Math 104(1), 1–16 (1998)
Acknowledgements
We thank anonymous reviewers for the SoCG 2020 version of this paper, for helpful comments that improved and simplified the paper.
Author information
Authors and Affiliations
Corresponding author
Additional information
Editor in Charge: Kenneth Clarkson
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
A preliminary version of this article appeared at the 36th International Symposium on Computational Geometry (SoCG 2020).
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Agrawal, A., Knudsen, K.V.K., Lokshtanov, D. et al. The Parameterized Complexity of Guarding Almost Convex Polygons. Discrete Comput Geom 71, 358–398 (2024). https://doi.org/10.1007/s00454-023-00569-y
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00454-023-00569-y