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

arXiv:2609.15510 · cs.CG, cs.DM, cs.DS · Submitted 2026-09-14 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Computer Science. The day in computer science: software, systems and theory on arXiv.

Tom: We're looking at the paper: "Perfectly Guarding Straits".

Paper summary: Tom: So we’re looking at this paper called "Perfectly Guarding Straits: Exact Algorithms for Guarding Weak Visibility Polygons from Their Base". This paper tackles the Art Gallery Problem, which is NP-hard in general, but they focus on a specific setup where guards are stuck to one edge.

Jane: It sounds like they’re looking at this special case called the Strait Guarding Problem or SGP. What does that even mean for a listener who doesn't read math?

Tom: Basically, it asks for the minimum number of guards you need placed on a base edge to see an entire polygon, provided that polygon fits this specific structure called a weak visibility polygon or WVP. The main claim is that for these polygons, confining the guards to just that one edge makes the problem solvable exactly and efficiently.

Lu: What’s interesting is their structural fact at the start: if you place guards on that base edge to cover just the boundary, they automatically cover every single point inside, which turns a two-dimensional covering problem into something much simpler, one-dimensional one <ref:2609.15510#pg1,a two-dimensional covering problem into>.

Meng: But I gotta ask, is this reduction to one dimension really as clean as they say? Because in my experience shipping models, those structural simplifications often break when you try to deploy them on real traffic data.

Lalam: The paper calls this equivalence very important because it allows them to reduce the problem down to just guarding the boundary of the polygon itself one <ref:2609.15510#pg1>.

Tom: Exactly, and that leads into their main tool called the Witness-Guard Algorithm. They claim this solves SGP exactly in a time complexity of O n plus OPT times rho, which is also written as log n plus log OPT.

Jane: That sounds like a really nice bound because it's output-sensitive, meaning the runtime depends on how many guards you actually need, which is good for practical applications. But what’s the catch?

Lu: The paper says this efficiency comes from building a witness set using intervals on that base edge, which forms an interval graph where the maximum independent set and the minimum clique cover both have equal size one <ref:2609.15510#pg1>. This duality is what allows them to certify optimality by linking their output guard set directly to this witness set.

Paper summary: Meng: So they're using a combinatorial property of interval graphs to prove it’s exact, which I see a lot in optimization, but how does that translate when you're dealing with the actual geometry of the polygon?

Lalam: The core idea is that for any point inside the weak visibility polygon, there is an interval we call Int(p), defined by the first reflex vertices on the shortest paths from that point to either endpoint of our base edge one <ref:2609.15510#pg1>.

Tom: That definition, "a guard g in the base sees a point p if and only if g is in Int(p)", seems crucial. It lets them translate a geometric covering problem into an interval containment problem.

Jane: So, the naive question someone might ask is, what’s the worst-case scenario for this algorithm? What does OPT mean there?

Lu: OPT represents the minimum number of guards required for that specific polygon structure one <ref:2609.15510#pg1,the minimum number of guards>. The complexity bound O n plus OPT times rho says they can find that exact minimum set in time proportional to the number of vertices n plus a factor related to how many reflex vertices you have, multiplied by the optimal number of guards.

Meng: If I’m trying to deploy this on a system, I need to know what happens when the polygon gets really complex. The paper mentions that for altitude terrains, they have a linear time perfect-guarding algorithm, which is an improvement over older bounds they cite one <ref:2609.15510#pg1>.

Tom: That's interesting because altitude terrains are different—it's about how the terrain height changes—and getting a linear time solution there suggests their main approach is robust enough to handle those kinds of variations.

Jane: So, what’s the real implication here for someone just using an application? Does this mean we can finally solve these specific gallery problems reliably?

Lu: It gives us a concrete tool to find the absolute minimum number of guards needed for these constrained environments, and it proves that their approach works exactly on this class of polygons one <ref:2609.15510#pg1>.

Paper summary: Meng: I’m still worried about the setup. They mention altitude terrains and minimum-height guarding problems where they get O n k plus k squared log k time, which is better than some previous bounds they mentioned one <ref:2609.15510#pg1>. That improvement comes from a specific upward sweep algorithm that avoids certain sequences one <ref:2609.15510#pg1>.

Tom: It's interesting how they moved away from the Davenport–Schinzel machinery for those terrain problems and used this elementary upward sweep instead. That suggests they found a way to keep the analysis tight without needing more complex tools.

Jane: So, what’s the final picture here? What does this paper actually say about solving these kinds of guarding puzzles?

Tom: The main result is that for weak visibility polygons, we have an exact polynomial-time algorithm with that O n plus OPT times rho time complexity one <ref:2609.15510#pg1>. It certifies optimality by showing a size-OPT witness set derived from the output guard set.

Lu: And they showed this works for vertex guarding too, achieving an O n log n time solution, which matches the lower bound found following from sorting one <ref:2609.15510#pg1>.

Meng: For deployment at scale, that O n plus OPT times rho bound is what matters because it's output-sensitive. If you can figure out the optimal number of guards quickly, you know your runtime.

Lalam: This exact polynomial time algorithm for SGP is what makes this work; it’s a clean result for a problem that was previously NP-hard one <ref:2609.15510#pg1>.

Tom: So to wrap up, we're talking about "Perfectly Guarding Straits: Exact Algorithms for Guarding Weak Visibility Polygons from Their Base" and how they developed an algorithm based on interval graph duality to solve the Strait Guarding Problem exactly in O n plus OPT times rho time.

Jane: It really seems like they’ve nailed a specific subset of NP-hard problems by finding a way to transform them into interval covering problems, which is a very powerful technique for computation.

Lu: The bigger picture is that this shows how structural constraints on the environment can sometimes simplify a problem from being hard to being exactly solvable and efficient.

Meng: For production, this means if your deployment geometry fits this WVP structure, you have a provably optimal way to place your guards without having to rely on messy approximation algorithms.

Lalam: The paper provides that exact O n plus OPT times rho algorithm for SGP one <ref:2609.15510#pg1>.

Conclusion: Tom: So we're wrapping up our look at "Perfectly Guarding Straits: Exact Algorithms for Guarding Weak Visibility Polygons from Their Base." This paper basically gives us a guaranteed way to find the absolute minimum number of guards needed for these specific polygon shapes.

Jane: I’m curious about that title. What exactly is a "Strait Guarding Problem" and why does it matter if we can solve it exactly?

Tom: It's about covering an area with guards stuck to just one edge, and the paper proves that for these weak visibility polygons, you don't need approximations anymore.

Lu: The authors use a technique based on interval graphs. They connect the geometric problem of visibility to the combinatorial problem of finding a maximum independent set and minimum clique cover, which are mathematically linked.

Meng: So if I’m running this in production, what does that mean for my deployment pipeline? Does it mean we can stop using heuristic algorithms for these specific shapes?

Jane: It means for these specific shapes, you get a provably optimal answer with a complexity bound of big O of n plus OPT times rho. That’s output sensitive, which is pretty tight.

Tom: Yeah, and they even showed that this works even when the terrain gets complicated—altitude terrains—improving those old bounds significantly.

Lu: They also have these results for minimum-height guarding on monotone mountains where the time complexity drops to big O of n times k plus k squared log k. That’s a real improvement over previous algorithms they cited.

Meng: An improved bound is good, but what's the actual practical cost? If we have a very large map, does that big O notation still keep it running fast enough?

Jane: The runtime is nearly linear in the size of the input plus the optimal number of guards. That suggests it scales pretty well for large problems.

Tom: It’s a clean result for a problem that was NP-hard before, giving us an exact solution instead of just a good guess.

Lu: The paper proves that every interior point lies behind some boundary point already covered by the base guard, which simplifies the geometry immensely.

Meng: So it turns a hard two dimensional covering issue into something manageable on the one dimensional base edge. I can see why that would be useful for simplifying our initial planning stages.

Jane: Exactly, and this paper sets up a solid foundation for understanding how structural constraints in geometry can make complex problems exactly solvable.

Tom: It's about proving that for this class of shapes, we have the right tools to find the best possible guard placement without getting stuck in local optima.

Lu: The main implication is showing that this duality between witness sets and guard sets provides a rigorous way to certify optimality in these covering problems.

Meng: It's good evidence, but I still want to know what happens if the polygon isn't a weak visibility polygon—does this method break down then?

Jane: That’s the next thing we need to explore. We’ve seen how powerful this is for these specific structures, and now we look at where its limits are.

Shouvik Mondal, Udvas Das, Sasanka Roy

Indian Statistical Institute, Kolkata

cs.CG, cs.DM, cs.DS

Submitted: 2026-09-14

Updated: 2026-12-03

License: http://creativecommons.org/licenses/by/4.0/

The gist: The paper presents an exact polynomial-time algorithm for solving the Strait Guarding Problem (SGP), which addresses a specific class of NP-hard Art Gallery Problem instances where guards are…

Key concepts

Strait Guarding Problem (SGP)
This is the original NP-hard problem of finding the fewest guards placed only on a base edge that can see an entire polygon. The paper shows this specific version, when applied to weak visibility polygons, can be solved exactly and efficiently.
Structural Equivalence
A key insight is that for guards confined to the base edge, covering the boundary of the polygon automatically covers the entire interior. This crucial fact simplifies a complex two-dimensional covering task into a simpler one-dimensional boundary covering problem.
Witness-Guard Algorithm
This is the main method used to solve SGP. It builds a set of 'witnesses' based on intervals derived from reflex vertices on the base edge. Optimality is guaranteed because the resulting structure forms an interval graph where maximum independent set size equals minimum clique cover size.

Terminology

Summary

The paper presents an exact polynomial-time algorithm for solving the Strait Guarding Problem (SGP), which addresses a specific class of NP-hard Art Gallery Problem instances where guards are confined to a single edge, turning a two-dimensional covering problem into one that is solvable exactly and efficiently. p. 0

Where the paper says it

We show that for a particular class of polygons, confining guards to a single edge makes AGP exactly and efficiently solvable. We call this the Strait Guarding Problem (SGP).

<ref:2609.15510#pg1>.

Problem Definition and Structural Equivalence

The Strait Guarding Problem (SGP) asks for the fewest guards on a base edge to see an entire polygon defined as a weak visibility polygon (WVP).<ref:2609.15510#pg1>. A key structural fact is that guards on ebase that cover the boundary already cover the entire interior, turning a two-dimensional covering problem into a one-dimensional one <ref:2609.15510#pg1>. This equivalence allows the problem to be reduced to guarding only the boundary of the polygon. p. 3

Where the paper says it

This equivalence is specific to guards confined to ebase; it does not extend to the general Art Gallery Problem on WV − Polygons, where guards may lie anywhere inside the polygon [4]. Reducing the problem to a purely boundary task is the foundation of our approach and is key to our main result.

<ref:2609.15510#pg4>.

The Witness-Guard Algorithm

The main result is the Witness-Guard Algorithm, which solves SGP exactly in O(n + OPT · ρ) (log n + log OPT) time.<ref:2609.15510#pg1>. This algorithm relies on a witness set built from intervals on the base edge, forming an interval graph whose maximum independent set and minimum clique cover have equal size, which establishes optimality via guard–witness duality. p. 3

Where the paper says it

Our algorithm rests on a witness set built from intervals on ebase: a collection of intervals of which no single point is pierced twice, so that no single guard sees two witnesses. This collection defines an interval graph, and by the perfectness of interval graphs [19], the maximum independent set and the minimum clique cover have equal size.

<ref:2609.15510#pg20>. The algorithm selects guards by placing each guard at the right endpoint of the uncovered interval with the leftmost right endpoint. p. 3
Where the paper says it

This equality allows us to derive a maximum witness set and output a minimum guard set together, thereby establishing optimality via a clean graph-theoretic argument rather than a separate proof. Concretely, we give the Witness-Guard Algorithm: a greedy procedure that places each guard at the right endpoint of the uncovered interval with the leftmost right endpoint, then expands the candidate set by shooting rays through every reflex vertex the new guard sees.

<ref:2609.15510#pg1>.

Complexity and Bounds

The algorithm runs in O(n + OPT · ρ) (log n + log OPT) time.<ref:2609.15510#pg7>. This bound is output-sensitive and certifies optimality by a size-OPT witness set derived from its output. p. 0

Where the paper says it

It is output-sensitive and certifies optimality by a size-OPT witness set derived from its output. We also study the guarding-the-vertex version and prove a tight Θ(n log n) bound, with the lower bound following from Sorting.

<ref:2609.15510#pg7>. For vertex guarding, Theorem 3 shows an O(n log n) time solution, matching the lower bound following from Sorting. p. 0
Where the paper says it

It is output-sensitive and certifies optimality by a size-OPT witness set derived from its output. We also study the guarding-the-vertex version and prove a tight Θ(n log n) bound, with the lower bound following from Sorting.

<ref:2609.15510#pg28>.

Altitude Terrain Generalization

The results extend to altitude terrains (ATG), where a linear-time perfect-guarding algorithm is given, improving the previous O(n squared log n) bound.<ref:2609.15510#pg4>. Furthermore, the minimum-height guarding problem for a k-guardable monotone mountain can be solved in O(nk + k squared log k) time, which improves the previous O(k 2λk−1(n) log n) bound. p. 0

Where the paper says it

We give a linear-time perfect-guarding algorithm, improving the previous O(n 2 log n) bound [13]. We also resolve the problem of [13] on the minimum guarding altitude, in O(nk + k 2 log k) time, which is an improvement on O(k 2λk−1(n) log n) bound [24].

<ref:2609.15510#pg37>.

Conclusion and Future Directions

The paper proves that guarding the boundary of a WV-Polygon is equivalent to guarding the entire polygon when guards are on the base edge.<ref:2609.15510#pg1>. The algorithm's optimality and completeness guarantee an exact O(n+OPT·ρ) (log n+log OPT) algorithm for the problem.<ref:2609.15510#pg26>. Open directions include solving full polygon guarding in O(OPT + n log n) time and investigating what changes if guards may be placed anywhere on the boundary ∂(WV). p. 4

Where the paper says it

We guard every vertex of the polygon from the base in Θ(n log n) time, but guarding the entire interior takes O (n+OPT· ρ)(log n+log OPT) time; whether this can be reduced to O(n log n) remains open. Second, what changes if guards may be placed anywhere on ∂(WV) rather than only on ebase?

<ref:2609.15510#pg38>.

Pruning redundant reasoning tokens

The structural fact is that guards on ebase that cover the boundary already cover the entire interior, turning a two-dimensional covering problem into a one-dimensional one <ref:2609.15510#pg1>. This equivalence is specific to guards confined to ebase; it does not extend to the general Art Gallery Problem on WV-Polygons, where guards may lie anywhere inside the polygon. p. 3

Where the paper says it

Brief Overview: For any WV − Polygon WV with base ebase, we prove that any guard set covering ∂(WV) automatically covers the interior (Theorem 1, Section 4). This equivalence is specific to guards confined to ebase; it does not extend to the general Art Gallery Problem on WV − Polygons, where guards may lie anywhere inside the polygon [4].

<ref:2609.15510#pg4>.

How the training signal is built

The algorithm's core relies on an interval representation where for any point p in a WV-Polygon, its interval Int(p) is defined by the first reflex vertices on the shortest paths from p to the two endpoints of ebase.<ref:2609.15510#pg7>. This yields a crucial definition where a guard g ∈ ebase sees p if and only if g ∈ Int(p) <ref:2609.15510#pg8>.

Where the gains come from

The gains come from the fact that interval graphs are perfect, meaning the largest witness set and the smallest clique cover have equal size <ref:2609.15510#pg8>. This duality allows deriving a maximum witness set and an output minimum guard set together. p. 3

Where the paper says it

This collection defines an interval graph, and by the perfectness of interval graphs [19], the maximum independent set and the minimum clique cover have equal size. This equality allows us to derive a maximum witness set and output a minimum guard set together, thereby establishing optimality via a clean graph-theoretic argument rather than a separate proof.

<ref:2609.15510#pg2>. The complexity is bounded by O(n + OPT · ρ) (log n + log OPT) time. p. 3
Where the paper says it

The Strait Guarding Problem, SGP, for a weak visibility polygon WV can be solved in O (n + OPT · ρ) (log n + log OPT) time, where n = |V (WV)|, ρ is the number of reflex vertices and OPT is the cardinality of the minimum-sized guard set. Brief Overview: The optimum guard number GS(WV, ebase) is not bounded by any function of n alone.

<ref:2609.15510#pg7>.

The paper proves that every interior point lies behind some already-covered boundary point, so the base guard watching that boundary point sees the interior point too <ref:2609.15510#pg31>. This reduction in hand turns a two-dimensional coverage problem into a one-dimensional boundary-covering task. p. 8

Where the paper says it

4 Guarding a Weak Visibility Polygon In this section, we show that guarding a WV − Polygon WV is equivalent to guarding only its boundary, ∂(WV). This turns a two-dimensional covering problem into a one-dimensional one, and 9

<ref:2609.15510#pg4>.

The algorithm's main loop involves collecting uncovered candidate intervals and selecting the candidate with the leftmost right endpoint to place a guard.<ref:2609.15510#pg14>. The witness expansion step shoots rays through every reflex vertex visible from the new guard to generate new boundary points. p. 3

Where the paper says it

This equality allows us to derive a maximum witness set and output a minimum guard set together, thereby establishing optimality via a clean graph-theoretic argument rather than a separate proof. Concretely, we give the Witness-Guard Algorithm: a greedy procedure that places each guard at the right endpoint of the uncovered interval with the leftmost right endpoint, then expands the candidate set by shooting rays through every reflex vertex the new guard sees.

<ref:2609.15510#pg7>.

The complexity analysis shows that each interval computation in O(1), one heap insertion, at most one extraction, and an eligibility test, each in O(log n + log k) <ref:2609.15510#pg7>. This leads to the total runtime of O(n + OPT · ρ) (log n + log OPT) time. p. 0

Where the paper says it

First, a structural fact: guards on ebase that cover the boundary already cover the entire interior, turning a two-dimensional covering problem into a one-dimensional one. Our main result is the Witness-Guard Algorithm, which solves SGP exactly in O (n + OPT · ρ) (log n + log OPT) time, where ρ is the number of reflex vertices in the WVP and OPT is the minimum number of guards.

<ref:2609.15510#pg7>. The final result is a clean, exact polynomial-time algorithm for an NP-hard problem. p. 0
Where the paper says it

We show that pinning the guards to a single edge is not merely a realistic restriction. It is exactly the restriction that turns an intractable problem into one with a clean, exact, polynomial-time algorithm.

<ref:2609.15510#pg4>.

The proof of optimality shows that any valid guard set must contain at least one guard lying within each of these k mutually disjoint intervals <ref:2609.15510#pg18>. This establishes the lower bound OPT ≥ k. p. 0

Where the paper says it

It is output-sensitive and certifies optimality by a size-OPT witness set derived from its output. We also study the guarding-the-vertex version and prove a tight Θ(n log n) bound, with the lower bound following from Sorting.

<ref:2609.15510#pg20>. The completeness proof shows that every non-vertex boundary point is covered at termination <ref:2609.15510#pg23>.

The sweep algorithm for altitude terrains tracks how the visibility intervals move as the altitude rises to locate merger heights, yielding a single exact recomputation at each of the k − m drops.<ref:2609.15510#pg34>. This sweep uses no Davenport–Schinzel machinery. p. 4

Where the paper says it

6 and Theorem 5, Section 10). This improves the O(k 2λk−1(n)log n) bound of Kang, Kim, and Ahn [24], where λk−1(n) is a near-linear Davenport–Schinzel length, through an elementary upward sweep that uses no such sequences.

<ref:2609.15510#pg37>.

The altitude terrain algorithm achieves O(nk + k squared log k) time, which improves the previous O(k 2λk−1(n)log n) bound.<ref:2609.15510#pg37>. This improvement is achieved by using an elementary upward sweep that uses no such sequences. p. 4

Where the paper says it

6 and Theorem 5, Section 10). This improves the O(k 2λk−1(n)log n) bound of Kang, Kim, and Ahn [24], where λk−1(n) is a near-linear Davenport–Schinzel length, through an elementary upward sweep that uses no such sequences.

<ref:2609.15510#pg37>. The complexity is O(nk + k squared log k) time, which is near-linear in the input size plus the output size. p. 0
Where the paper says it

Our main result is the Witness-Guard Algorithm, which solves SGP exactly in O (n + OPT · ρ) (log n + log OPT) time, where ρ is the number of reflex vertices in the WVP and OPT is the minimum number of guards. It is output-sensitive and certifies optimality by a size-OPT witness set derived from its output.

<ref:2609.15510#pg37>.

The paper resolves the open question of [13] about monotone mountains by tracking how visibility intervals move as the altitude rises, which led them to Davenport–Schinzel sequences and an O(k 2λk−1(n)log n) bound.<ref:2609.15510#pg37>. The authors take a different route by using two passes of Daescu’s algorithm to bracket each true witness between a left and a right candidate, producing 4k lines whose crossings are exactly the heights at which one guard’s coverage absorbs another’s. p. 3

Where the paper says it

Concretely, we give the Witness-Guard Algorithm: a greedy procedure that places each guard at the right endpoint of the uncovered interval with the leftmost right endpoint, then expands the candidate set by shooting rays through every reflex vertex the new guard sees. The algorithm outputs a minimum guard set of size exactly OPT, together with a certifying witness set of equal size, in O (n + OPT · ρ) (log n + log OPT) time (Lemma 6.

<ref:2609.15510#pg33>.

The final algorithm uses two passes of Daescu’s algorithm followed by RefineWitnesses to produce a guard set and a matching witness set in O(n) time.<ref:2609.15510#pg32>. This procedure is shown to be elementary, improving the O(n squared log n) bound of [13] for producing a certifying witness set. p. 4

Where the paper says it

Brief Overview: As a first consequence for altitude terrains, we obtain an asymptotically optimal, linear-time algorithm that guards a terrain from a fixed horizontal line and certifies its own optimality: it returns a minimum guard set together with a matching witness set of equal size, in O(n) time. This improves the previously best O(n 2 log n) bound for producing a certifying witness set (Theorem 4, Section 9) [13].

<ref:2609.15510#pg32>.

The final result is an exact O(n+OPT·ρ) (log n+log OPT) algorithm for a problem that is ∃R-complete in the unconstrained setting.<ref:2609.15510#pg38>. The gains come from the reduction to interval graphs, which are perfect, and the combinatorial log OPT factor arising from data structures whose size grows with the number of guards. p. 9

Where the paper says it

Given a discrete point set Q ⊆ WV, form the interval graph GQ = (Q, E) where {w1, w2} ∈ E ⇐⇒ Int(w1) ∩ Int(w2) ̸= ∅. Since interval graphs are perfect: α(GQ) = ¯χ(GQ), where α is the maximum independent set size (= maximum witness set size) and χ¯ is the minimum clique cover number.

<ref:2609.15510#pg7>.

The final conclusion is that Optimality shows the algorithm never places a superfluous guard, and Completeness shows it never misses a corner <ref:2609.15510#pg38>. Together they give an exact O(n+OPT·ρ) (log n+log OPT) algorithm for a problem that is ∃R-complete in the unconstrained setting. p. 3

Where the paper says it

Concretely, we give the Witness-Guard Algorithm: a greedy procedure that places each guard at the right endpoint of the uncovered interval with the leftmost right endpoint, then expands the candidate set by shooting rays through every reflex vertex the new guard sees. The algorithm outputs a minimum guard set of size exactly OPT, together with a certifying witness set of equal size, in O (n + OPT · ρ) (log n + log OPT) time (Lemma 6.

<ref:2609.15510#pg38>.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Incremental Structure for Runtime Improvement The bottleneck in runtime is identified as the per-iteration cost of sorting candidate intervals and expanding the witness set, suggesting an incremental structure that updates information as guards and witnesses arrive rather than rebuilding it could close the gap.

  2. Exact Optimal Guard Set Computation For vertex guards, the system can be improved to compute GS(V (WV), ebase) in O(n log n) time by using a minimum clique cover of this interval graph, matched by an Omega(n log n) lower bound, which is achieved through the lineartime shortest-path trees.

  3. Optimal Minimum-Height Guard Placement For monotone mountains, the system can be improved to compute the minimum height y star at which m guards suffice in O(nk + k squared log k) time by using a sweep upward by a sequence of exact recomputations driven by the kinetic-heap scan over the two sorted line families.

  4. Full Polygon Guarding Runtime Reduction A research direction is to determine if full polygon guarding can be solved in O(OPT + n log n) time, matching the vertex-guard bound, potentially by developing an incremental structure that updates information as guards and witnesses arrive.

Abstract

Abrahamsen, Adamaszek, and Miltzow showed that the Art Gallery Problem is 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 OPT of guards can be arbitrarily large even for six-vertex polygons. Hence no function of the number n of vertices bounds OPT. A candidate set whose size depends only on n cannot always contain an optimal solution. Our algorithm for SGP runs in O((n + OPT timesρ)(n + 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 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 squared n) time (CGTA 2019). We also find the least height at which m guards suffice. This takes O(nm n (m+1) + nm 2) time and improves the bound based on Davenport-Schinzel sequences (IWOCA 2025) for every m at least 4. Guarding only the vertices takes Θ(n n) time in the algebraic computation-tree model.

Sources

Related papers