Papers
Topics
Authors
Recent
Search
2000 character limit reached

Contiguous Art Gallery Problem

Updated 4 July 2026
  • The contiguous art gallery problem is a boundary-guarding optimization task that partitions a simple polygon’s boundary into contiguous chains visible from strategically placed guard points.
  • It distinguishes itself by enforcing contiguity in guard assignments, which transforms the classical NP-hard art gallery covering into a tractable one-dimensional cyclic covering problem.
  • Recent advances present polynomial-time algorithms—including greedy, PLR-based, and combinatorial methods—that achieve tight Θ(n log n) complexity in the real RAM model.

The contiguous art gallery problem is a boundary-guarding optimization problem on a simple polygon PP: the boundary P\partial P must be partitioned into the minimum number of contiguous chains such that each chain is completely visible from some guard point in PP. Guards may be placed anywhere in the polygon, and each guard is assigned exactly one contiguous visible portion of the boundary. Introduced as an open problem by Thomas C. Shermer at CCCG 2024, the problem became notable because, unlike many classical art-gallery variants, it admits polynomial-time algorithms for simple polygons without holes (Robson et al., 2024, Merrild et al., 2024).

1. Problem statement and geometric model

In the standard formulation, the input is a simple polygon PR2P \subseteq \mathbb{R}^2 with boundary P\partial P given in counterclockwise order. A guard is any point gPg \in P. A point xPx \in P is visible from gg if the closed segment [g,x][g,x] is contained in PP. If P\partial P0 denotes the visibility set of P\partial P1, then the boundary-visible set is P\partial P2. A contiguous guard is a pair P\partial P3 where P\partial P4 and P\partial P5 is a connected boundary arc; the objective is to choose guards and assigned arcs so that the union of the arcs equals P\partial P6, each assigned arc is contiguous, and the number of guards is minimized (Berg et al., 13 Aug 2025).

The boundary is commonly parameterized either by arc length, P\partial P7, or by a normalized cyclic parameterization P\partial P8. In either representation, an assigned interval is interpreted cyclically, so wrap-around at the base point is allowed. This circle viewpoint is central in later algorithmic reductions, especially when the problem is reformulated as a covering problem on P\partial P9 (Robson et al., 2024).

A basic subtlety is that contiguity is imposed on the assignment, not on the full visible boundary set of a guard. A guard may see several disjoint portions of the boundary, but in a feasible solution it is responsible for exactly one contiguous interval. Another important point is that optimal guards need not be polygon vertices; non-vertex positions can be essential (Robson et al., 2024).

2. Why contiguity changes the complexity landscape

The classical art gallery problem asks for the minimum number of guards whose visibility polygons cover the interior of PP0. For simple polygons, that problem is NP-hard and PP1-complete; even many boundary-covering formulations with arbitrary guard positions remain hard. By contrast, the contiguous variant requires only boundary coverage and restricts each guard to a single contiguous responsibility interval (Berg et al., 4 Nov 2025, Robson et al., 2024).

This distinction is structurally important. Hardness proofs for non-contiguous boundary guarding often exploit the fact that one guard can “skip around” and cover multiple disjoint boundary portions. The contiguous formulation forbids that behavior. This suggests that the problem acquires a one-dimensional interval or circle-arc structure that is absent in general art-gallery formulations, and that this structural restriction is the reason polynomial-time algorithms become possible (Robson et al., 2024).

The problem’s rapid development reflects that change in difficulty. After being posed as an open problem in 2024, multiple independent polynomial-time solutions appeared. By SoCG 2025, three distinct approaches were known, and subsequent work reduced the running time dramatically, culminating in a tight PP2 bound in the real RAM model (Berg et al., 13 Aug 2025, Berg et al., 4 Nov 2025).

3. Initial polynomial-time resolutions

One early solution is a greedy “revolution” algorithm. For a boundary point PP3, define PP4 to be the farthest boundary point reachable clockwise from PP5 such that the chain PP6 is visible from some guard. Starting at PP7, the algorithm repeatedly computes PP8. A single revolution around the boundary yields a solution with at most PP9 chains, where PR2P \subseteq \mathbb{R}^20 is optimal; if the starting point is an optimal endpoint, one revolution is already optimal. The analysis proves that after polynomially many revolutions the greedy sequence must hit an optimal configuration, giving an algorithm running in PR2P \subseteq \mathbb{R}^21 arithmetic operations on a real RAM (Merrild et al., 2024).

The geometric core of that analysis is a feasible-region view of each greedy step. For a current chain PR2P \subseteq \mathbb{R}^22, the feasible region PR2P \subseteq \mathbb{R}^23 consists of guard positions that see the whole chain, and it remains connected. Maximality of the chain is explained by either a horizon event or a blockage event at a polygon vertex. Pivot points, pivot lines, repetitions, and “positive fingerprint” events are then used to certify eventual optimality of the greedy sequence (Merrild et al., 2024).

A second, more algebraic resolution reduces the problem to the “Analytic Arc Cover” problem on the unit circle. For each boundary parameter PR2P \subseteq \mathbb{R}^24, one defines a next-generator

PR2P \subseteq \mathbb{R}^25

so PR2P \subseteq \mathbb{R}^26 is the farthest counterclockwise endpoint reachable from PR2P \subseteq \mathbb{R}^27 by some guard assigned a contiguous interval containing PR2P \subseteq \mathbb{R}^28. The contiguous art gallery problem then becomes: find the minimum PR2P \subseteq \mathbb{R}^29 such that, for some start P\partial P0, the arcs

P\partial P1

cover the circle (Robson et al., 2024).

The decisive technical fact is that, for simple polygons, the resulting next-generator is piecewise linear rational (PLR) with polynomially many pieces, rational coefficients, and first-order radical breakpoints. PLR functions are closed under max/min and under composition with controlled growth, and existential threshold tests for P\partial P2 can be performed in polynomial time. This yields a Turing-machine polynomial-time algorithm with explicit bit-complexity control, establishing that the contiguous art gallery problem is in P\partial P3 for simple polygons with rational coordinates (Robson et al., 2024).

4. Structural discretization and faster algorithms

A later simplification replaced heavy algebraic machinery with a more combinatorial geometry of guard types. In this framework, a contiguous guard P\partial P4 is classified as good or bad according to four conditions involving whether P\partial P5 contains a polygon vertex, whether P\partial P6 or P\partial P7 coincides with P\partial P8, whether P\partial P9, and whether the shortest path from gPg \in P0 to gPg \in P1 inside gPg \in P2 is a single edge. A crucial snapping lemma shows that every good guard can be replaced by a guard at a vertex of the arrangement gPg \in P3 of supporting lines of polygon edges, without losing its interval (Berg et al., 13 Aug 2025).

This leads to a finite candidate structure. There are gPg \in P4 canonical guards and gPg \in P5 candidate start points gPg \in P6, and a seed theorem shows that every optimal solution with more than one guard can be transformed so that at least one guard begins at some gPg \in P7. Starting the greedy algorithm from such a seed is optimal. The main algorithmic burden is then to compute, for a given start gPg \in P8, the farthest reachable endpoint gPg \in P9. This is done by combining shortest-path queries, ray shooting, visibility cores of contiguous edge blocks, and a binary search over edges, yielding an xPx \in P0 query for the maximal guard interval from xPx \in P1. Trying all seeds gives an xPx \in P2-time algorithm and xPx \in P3 space bound (Berg et al., 13 Aug 2025).

The main milestones are summarized below.

Paper Main idea Complexity / model
(Merrild et al., 2024) Greedy revolutions with feasible-region and pivot-line analysis xPx \in P4 arithmetic operations on a real RAM
(Robson et al., 2024) Reduction to Analytic Arc Cover with a PLR next-generator Polynomial time on a Turing machine
(Berg et al., 13 Aug 2025) Good/bad guard classification, snapping to arrangement vertices, fast MaxGuard xPx \in P5 time, xPx \in P6 space
(Berg et al., 4 Nov 2025) Linear-size dominator structure and piecewise Möbius advance function xPx \in P7 time in the real RAM model

These advances also clarified a common misconception. The problem does not reduce to trying polygon vertices as guards. The 2025 simplification obtains a finite search space only after snapping good guards to vertices of a supporting-line arrangement and handling bad guards through a separate “almost-snap” analysis (Berg et al., 13 Aug 2025).

5. Tight real-RAM complexity

The current fastest result gives a tight xPx \in P8 bound in the real RAM model. Its central object is the advance function

xPx \in P9

which is the greedy frontier from start point gg0. The algorithm develops a structural classification into reduced good dominators, reduced bad dominators, and ugly dominators. Reduced good and bad dominators compress to linear size, and together with polygon vertices they yield a linear-size start set gg1 such that some gg2 starts an optimal greedy run (Berg et al., 4 Nov 2025).

Efficient evaluation of gg3 relies on a conforming sliding sequence of index pairs, dynamic maintenance of visibility cores gg4, time-windowed convex hull data structures, and a stabbing-max segment tree over dominator intervals. This gives batched evaluation of gg5 for all gg6 in gg7 time. An initial gg8 algorithm follows by repeated application of this batched evaluation (Berg et al., 4 Nov 2025).

The dependence on gg9 is then removed by showing that [g,x][g,x]0 has only [g,x][g,x]1 pieces. On some intervals it is constant, realized by good or bad dominators; on the remaining intervals it is fractional-linear,

[g,x][g,x]2

realized by ugly dominators. A lazy segment-tree composition technique then computes the minimum [g,x][g,x]3 such that [g,x][g,x]4 for some [g,x][g,x]5, leading to an [g,x][g,x]6-time, [g,x][g,x]7-space algorithm. A comparison-based lower bound via reduction from Set Disjointness gives [g,x][g,x]8, so the problem is in [g,x][g,x]9 in the real RAM model (Berg et al., 4 Nov 2025).

This result also sharpens the model-theoretic picture. In the real RAM, arithmetic on fractional-linear pieces is unit cost. The same paper notes that in bit-complexity models the PP0-fold composition can accumulate PP1 bits in coefficients, suggesting that PP2 time may be inherent there. A plausible implication is that “polynomial-time solvable” for this problem is now model-sensitive: near-linear optimality is established for the real RAM, while explicit Turing-model control is obtained by the PLR-based analytic-arc-cover approach (Berg et al., 4 Nov 2025, Robson et al., 2024).

All of the main polynomial-time results treat simple polygons without holes. Extending them to polygons with holes remains open. The 2024 PLR-based approach notes that holes would require redefining visibility regions and blocking sets; the 2025 structural algorithms state that holes disrupt the convex-core and shortest-path arguments on which their analyses depend (Robson et al., 2024, Berg et al., 13 Aug 2025, Berg et al., 4 Nov 2025).

Several restricted variants are easier. If guards are restricted to polygon vertices, all visible boundary arcs induced by each vertex can be generated in PP3 total time, and the resulting minimum circle-cover problem can be solved in PP4 time. If chain endpoints are restricted to polygon vertices, dynamic feasible-region maintenance yields an PP5 algorithm (Merrild et al., 2024).

The current literature also distinguishes the modern contiguous art gallery problem from several neighboring notions. One older orthogonal result studies mobile guards that patrol non-intersecting line segments inside a simply connected orthogonal polygon; there, “contiguity” refers to each patrol being a single segment, not to partitioning PP6 into visible chains (Győri et al., 2015). Another graph-theoretic relaxation asks only that at least one of every PP7 consecutive corners be visible to some guard; this is a corner-coverage problem rather than a boundary-partition problem (Borg et al., 2020). In static LiDAR viewpoint planning, “contiguous/connected art gallery” may refer to selecting viewpoints that form a connected overlap graph for scan registration, again a different formulation from contiguous boundary partitioning (Xionga et al., 3 Mar 2025).

Open directions in the contiguous boundary-partition problem include polygons with holes, weighted or cost-aware guards, limited-range guards, and higher-dimensional analogues. The 2024 and 2025 papers also highlight robustness issues around degeneracies, symbolic perturbation, and the distinction between real-RAM and Turing-machine complexity (Robson et al., 2024, Berg et al., 13 Aug 2025, Berg et al., 4 Nov 2025).

In computational-geometry terms, the contiguous art gallery problem is now understood as a rare art-gallery variant in which a natural geometric restriction collapses a hard two-dimensional covering problem into a tractable one-dimensional cyclic covering problem. The sequence of results from 2024 to 2025 shows that the key object is the farthest-visible advance function along the boundary: first as a greedy map PP8, then as a PLR next-generator on PP9, and finally as an P\partial P00-piece mixture of constants and Möbius transformations. That progression turned an open problem into a solved one, and then into a problem with a tight near-linear complexity theory (Merrild et al., 2024, Robson et al., 2024, Berg et al., 4 Nov 2025).

Topic to Video (Beta)

Whiteboard

Follow Topic

Get notified by email when new papers are published related to Contiguous Art Gallery Problem.