Table of Contents
Fetching ...

A Practical Algorithm with Performance Guarantees for the Art Gallery Problem

Simon Hengeveld, Tillmann Miltzow

TL;DR

This work addresses the classical art gallery problem by introducing vision-stability, a condition under which enhanced and diminished visibility yield the same optimal guard count. Under vision-stability, the authors derive a polynomial-size candidate set from reflex-vertex arrangements and present a one-shot algorithm that computes an exact guard set by solving a single integer program, with preprocessing time polylogarithmic in the input size. They further develop an iterative vision-stable algorithm that uses a coarse refinement strategy, a weak-visibility polygon tree, and critical witnesses to achieve practical performance comparable to state-of-the-art methods, while preserving theoretical guarantees. The paper also introduces the chord-visibility width as a parameter yielding fixed-parameter tractable (FPT) algorithms for both vertex-guarding and the classic art gallery problem under vision-stability, and provides extensive experimental results showing convergence toward the optimum and the impact of speed-up techniques. Overall, the work narrows the theory–practice gap for the art gallery problem by linking vision-stability to discretization-based exact solutions and giving a scalable, implementable framework with provable guarantees under realistic assumptions, complemented by strong empirical validation.

Abstract

Given a closed simple polygon $P$, we say two points $p,q$ see each other if the segment $pq$ is fully contained in $P$. The art gallery problem seeks a minimum size set $G\subset P$ of guards that sees $P$ completely. The only currently correct algorithm to solve the art gallery problem exactly uses algebraic methods and is attributed to Sharir. As the art gallery problem is ER-complete, it seems unlikely to avoid algebraic methods, without additional assumptions. In this paper, we introduce the notion of vision stability. In order to describe vision stability consider an enhanced guard that can see "around the corner" by an angle of $δ$ or a diminished guard whose vision is by an angle of $δ$ "blocked" by reflex vertices. A polygon $P$ has vision stability $δ$ if the optimal number of enhanced guards to guard $P$ is the same as the optimal number of diminished guards to guard $P$. We will argue that most relevant polygons are vision stable. We describe a one-shot vision stable algorithm that computes an optimal guard set for visionstable polygons using polynomial time and solving one integer program. It guarantees to find the optimal solution for every vision stable polygon. We implemented an iterative visionstable algorithm and show its practical performance is slower, but comparable with other state of the art algorithms. Our iterative algorithm is inspired and follows closely the one-shot algorithm. It delays several steps and only computes them when deemed necessary. Given a chord $c$ of a polygon, we denote by $n(c)$ the number of vertices visible from $c$. The chord-width of a polygon is the maximum $n(c)$ over all possible chords $c$. The set of vision stable polygons admits an FPT algorithm when parametrized by the chord-width. Furthermore, the one-shot algorithm runs in FPT time, when parameterized by the number of reflex vertices.

A Practical Algorithm with Performance Guarantees for the Art Gallery Problem

TL;DR

This work addresses the classical art gallery problem by introducing vision-stability, a condition under which enhanced and diminished visibility yield the same optimal guard count. Under vision-stability, the authors derive a polynomial-size candidate set from reflex-vertex arrangements and present a one-shot algorithm that computes an exact guard set by solving a single integer program, with preprocessing time polylogarithmic in the input size. They further develop an iterative vision-stable algorithm that uses a coarse refinement strategy, a weak-visibility polygon tree, and critical witnesses to achieve practical performance comparable to state-of-the-art methods, while preserving theoretical guarantees. The paper also introduces the chord-visibility width as a parameter yielding fixed-parameter tractable (FPT) algorithms for both vertex-guarding and the classic art gallery problem under vision-stability, and provides extensive experimental results showing convergence toward the optimum and the impact of speed-up techniques. Overall, the work narrows the theory–practice gap for the art gallery problem by linking vision-stability to discretization-based exact solutions and giving a scalable, implementable framework with provable guarantees under realistic assumptions, complemented by strong empirical validation.

Abstract

Given a closed simple polygon , we say two points see each other if the segment is fully contained in . The art gallery problem seeks a minimum size set of guards that sees completely. The only currently correct algorithm to solve the art gallery problem exactly uses algebraic methods and is attributed to Sharir. As the art gallery problem is ER-complete, it seems unlikely to avoid algebraic methods, without additional assumptions. In this paper, we introduce the notion of vision stability. In order to describe vision stability consider an enhanced guard that can see "around the corner" by an angle of or a diminished guard whose vision is by an angle of "blocked" by reflex vertices. A polygon has vision stability if the optimal number of enhanced guards to guard is the same as the optimal number of diminished guards to guard . We will argue that most relevant polygons are vision stable. We describe a one-shot vision stable algorithm that computes an optimal guard set for visionstable polygons using polynomial time and solving one integer program. It guarantees to find the optimal solution for every vision stable polygon. We implemented an iterative visionstable algorithm and show its practical performance is slower, but comparable with other state of the art algorithms. Our iterative algorithm is inspired and follows closely the one-shot algorithm. It delays several steps and only computes them when deemed necessary. Given a chord of a polygon, we denote by the number of vertices visible from . The chord-width of a polygon is the maximum over all possible chords . The set of vision stable polygons admits an FPT algorithm when parametrized by the chord-width. Furthermore, the one-shot algorithm runs in FPT time, when parameterized by the number of reflex vertices.

Paper Structure

This paper contains 24 sections, 18 theorems, 11 equations, 23 figures, 7 tables.

Key Result

Theorem 1

Given a simple polygon with vision-stability $\delta$ and $r$ ($>0$) reflex vertices, it is possible to compute a candidate set $C$ (of size $O(\frac{r^4}{\delta^2})$) in polynomial time on a real RAM. The candidate set $C$ contains an optimal solution.

Figures (23)

  • Figure 1: a) A small positional change largely influences how much visibility of the two guards is blocked by $r_1$, but only has a small effect on the way that $r_2$ or $r_3$ blocks the visibility of the guards. b) Shooting rays from reflex vertices. c) Enhanced visibility region. d) Diminished visibility region.
  • Figure 2: A ray is rotated around a reflex vertex $r$. It defines a region that is either added or removed from the visibility region.
  • Figure 3: On the $x$-axis, we have the value by which we either diminish or enhance guards. On the $y$-axis we display the optimal number of guards. The function $\textrm{opt}\xspace(P,x)$ only takes discrete values and is monotonically decreasing. Thus, it has a finite number of breakpoints.
  • Figure 4: The first 8 iterations of the iterative algorithm on the Irrational-Guard polygon
  • Figure 5: The polygon together with a weak visibility polygon tree. The polygon has $200$ vertices, but each node in the weak visibility polygon tree has only about $20$ vertices. The red segment indicates the starting edge of the weak visibility polygon tree.
  • ...and 18 more figures

Theorems & Definitions (34)

  • Theorem 1: Candidate Set
  • Theorem 2: One-Shot Algorithm
  • Corollary 2: Reflex-FPT Algorithm
  • Theorem 3: Chord-Width-FPT
  • Theorem 4: Iterative Algorithm
  • Lemma 5
  • proof : of Lemma \ref{['lem:visionstableprobability']}
  • Lemma 6
  • proof
  • Lemma 7: Face-Point-Replacement
  • ...and 24 more