Work

Perfectly Guarding Straits: Exact Algorithms for Guarding Weak Visibility Polygons from Their Base

Year: 2026
Type: preprint
Abstract: Abrahamsen, Adamaszek, and Miltzow showed that the Art Gallery Problem is $\exists\mathbb{R}$-complete (JACM 2022). We show that it becomes exactly solvable when all guards must lie on the base of a weak visibility polygon. Every point of such a polygon is seen from some point of its base. We call this problem the Strait Guarding Problem (SGP). The points of the base that see a given point form an interval. Yet SGP is not a finite interval-stabbing problem. The minimum number $\mathrm{OPT}$ of guards can be arbitrarily large even for six-vertex polygons. Hence no function of the number $n$ of vertices bounds $\mathrm{OPT}$. A candidate set whose size depends only on $n$ cannot always contain an optimal solution. Our algorithm for SGP runs in $O((n + \mathrm{OPT}\cdotρ)(\log n + \log\mathrm{OPT}))$ time. Here $ρ$ is the number of reflex vertices. Each guard is determined by one of $O(n)$ points fixed in advance or by a shadow point of the previous guard. A shadow point is a boundary point where the view of a guard is cut off by a reflex vertex. One ray-shooting query finds it. The algorithm also returns $\mathrm{OPT}$ boundary points such that no point of the base sees two of them. This witness set proves that the guard set is optimal. So every weak visibility polygon is perfect with respect to its base. Altitude terrain guarding is a special case of SGP with guards on a horizontal line above a terrain. At a fixed height, we compute an optimal guard set and a matching witness set in $O(n)$ time. Computing such a witness set previously took $O(n^2\log n)$ time (CGTA 2019). We also find the least height at which $m$ guards suffice. This takes $O(nm\log n\log(m+1) + nm^2)$ time and improves the bound based on Davenport-Schinzel sequences (IWOCA 2025) for every $m \ge 4$. Guarding only the vertices takes $Θ(n\log n)$ time in the algebraic computation-tree model.
Source: arXiv
Language: English
Open Access status: green
OpenAlex ID: W7213320877
Cites: 32
Cited by: 1
Related to: 10