Manuscript Offprint
arXiv:2610.21793Restless Guards: Robust Guarding of Polyominoes
Abstract
The art gallery problem is a fundamental problem whose practical applications have inspired numerous variants. In this work, we investigate a setting in which full coverage of the gallery shall be ensured despite locational uncertainty of the guards.
We study this problem for polyominoes under rectangular visibility, where a k-restless guard assigned to a cell may move to any cell within distance at most k. While all polyominoes are guardable for , the same is not true for all . However, for a given polyomino P and integer k, we present an algorithm that identifies a k-restless guard set of P in polynomial time, or decides that no such set exists. For the cases , where k-restless guard sets always exist, we provide tight worst-case bounds on the number of k-restless guards that are always sufficient and sometimes necessary to guard a hole-free polyomino with n vertices or m cells.
Moreover, we show that computing a minimum guard set is NP-hard. Complementing the hardness, we provide polynomial-time algorithms for solving the problem optimally for histograms, and leverage this to obtain a 20k-approximation for polyominoes without holes.
2012 ACM Subject Classification Theory of computation → Computational geometry
Keywords and phrases Art Gallery problem, polyominoes, robustness, restless guard, rectangular visibility, r-visibility, locational uncertainty, imprecision
1 Introduction
The Art Gallery Problem is a classic and fundamental problem in computational geometry: Given a polygon P in the plane, what is the minimum set G of points (called guards) such that every point of P is seen by at least one guard in G. The original question, that gave rise to this area of research more than 50 years ago, is due to Klee (see [33]) and was concerned with establishing bounds on the number of guards that are always sufficient and sometimes necessary to guard a hole-free polygon with n vertices. Chvátal [12] proved that the answer is . Subsequently, an elegant and simple proof was given by Fisk [22].
Over the years, many variants of the problem have been investigated, based on constraints and properties such as the allowed guard positions (vertices, edges, interior), the shape of the art gallery (polygons with or without holes, orthogonal, monotone, polyominoes), the parts to be guarded (vertices, boundary, interior), as well as the type of vision (straight-line visibility, rectangular visibility, omni-directional field-of-view, restricted vision cone).
Recent research also studies variants that incorporate more realistic assumptions, such as more accurate lighting conditions [19, 34] or constraints on visibility [13, 20, 25]. In this vein, we explore a scenario with locational uncertainty. In an optimal solution for the classic art gallery problem, guards might be required to be at points with irrational coordinates [1]. However, in real-world scenarios, it is unrealistic to assume that guards remain (or are installed) precisely at predetermined positions; instead, they are typically located in a small vicinity of their intended position. This requires developing models and algorithms that remain robust to placement inaccuracies while still ensuring full coverage. Most recently,
Restless Guards
Das, Filtser, Katz, and Mitchell [14] introduced the concept of robust visibility, where a guard’s allowed movement depends on the distance to the point being guarded.
In this work, we investigate guard sets that accommodate such inaccuracies (regardless of the distance between a guard and a point), while still ensuring that the polygon is guarded. In particular, we investigate the case where the art gallery is modeled as a polyomino and guards can move within a k-neighborhood; we consider the guards to be restless. Specifically, a k-restless guard is placed in some cell of the polyomino and may move to any cell within distance at most k; the distance is measured in terms of the number of edges of the dual graph of the polyomino. A set of points G in a polyomino is a k-restless guard set if, regardless of the guards' exact positions within their respective k-neighborhoods, the entire polyomino is guarded. We use the standard visibility model for rectangular domains, where a point p is visible from a guard g whenever the axis-aligned rectangle defined by p and g is entirely contained in P. Thus, in our setting, the visibility region of a k-restless guard is given by the intersection of the visibility regions from all reachable positions; for examples consider Figure 1. For precise definitions, we refer to Section 2.

(a)

(b)

(c)
Figure 1 Are the depicted k-restless guard sets valid or minimal for small values of ? How many guards appear in optimal solutions? Solutions are given in the footnote.
With these notions at hand, our problem reads as follows.
The Art Gallery Problem with Restless Guards. Given a polyomino P and an integer , what is the size of a smallest k-restless guard set of ?
Guardability and tight worst-case bounds. We start by investigating the existence of k-restless guard sets. While all polyominoes are guardable for , the same is not true for all (Proposition 2). However, we present a polynomial-time algorithm that decides for a given polyomino with n vertices and an integer k, whether a k-restless guard set exists (Proposition 3). We highlight that this algorithm (and all of our other algorithms) is polynomial in the encoding of the input; in particular, we encode a polyomino as a sequence of vertex coordinates rather than a set of cells.
For the two cases where k-restless guard sets exist, we provide tight worst-case bounds on their size, depending on the number of vertices and cells of the polyomino, denoted by n
(a) Optimal for k = 0, not valid for k = 1. (b) Valid but not minimal for k = 0, not valid for k = 1. (c) Valid for k = 0, 1, 2. The minimum numbers of guards are 2 (k = 0), and 3 (k = 1, 2).
and , respectively. In particular, for 0-restless guards, we show that as well as guards (for ) are always sufficient, and sometimes necessary (Proposition 5). In case of 1-restless guards, as well as guards are always sufficient and sometimes necessary, when (Proposition 6).
Computing small guard sets: Hardness and approximation. As the existence of k-restless guard sets is decidable in polynomial time, we are interested in the computational complexity of computing optimal or small guard sets. To this end, we show that the problem is NP-hard for every fixed by a reduction from VERTEX COVER (Theorem 7).
To complement this, we present a 20k-approximation algorithm for computing k-restless guard sets in hole-free polyominoes (Theorem 12), if they exist. As a stepping stone, we show how to compute minimum k-restless guard sets for histograms (Theorem 9). We then turn towards the more general case of so-called embedded histograms and present a 4k-approximation (Lemma 15); as the boundaries are not necessarily present in this setting, computing guard sets is a much more complex task. Lastly, for , we establish improved approximation guarantees, namely 2 for (Corollary 11), and for (Theorem 17).
Full details of the proofs for statements marked with are given in the appendix.
1.2 Related work
Since its introduction, the art gallery problem has inspired extensive research, resulting in hundreds of publications on numerous variants. We provide a concise overview of the most essential related work, and refer to the book by O'Rourke [33] and surveys by Shermer [36] and Urrutia [38] for a comprehensive introduction. One important aspect concerns the algorithmic and complexity-theoretic perspective. Abrahamsen, Adamaszek, and Miltzow prove that the art gallery problem is -complete [2], and almost all more restricted variants remain NP-hard, e.g., for vertex guards, even in polygons without holes [27], orthogonal polygons [35], or polyominoes [6]. Stade [37] shows that the problem remains -complete even when only the polygon boundary shall be guarded. In contrast, when each guard is required to cover exactly one contiguous portion of the boundary the problem can be solved in polynomial time [10, 15]. Concerning approximation algorithms, Eidenbenz, Stamm, and Widmayer [18] show that there exists no -approximation for polygons with holes, unless P=NP. Bonnet and Miltzow [11] provide a randomized -approximation algorithm assuming vertices at integer coordinates and strong general position. For a few polygon classes such as weakly-visible polygons [3, 4], terrains [5], or monotone polygons [31], constant factor approximations or even PTASs are known. In the remainder, we focus on the most relevant work related to our paper, namely polyominoes and guarding with imprecision.
Polyominoes. Orthogonal polygons are generalizations of polyominoes, for which the worst-case bound of can be improved. Kahn, Klawe, and Kleitman [24] show that guards are always sufficient and sometimes necessary to guard an orthogonal polygon with vertices under straight-line visibility; O'Rourke [32] gives a simpler proof.
Restricting the input polygons to polyominoes, Biedl, Irfan, Iwerks, Kim, and Mitchell [6] show that the problem remains NP-hard for hole-free polyominoes with straight-line visibility. Furthermore, the same set of authors [7] prove that, in terms of the number m of cells, guards are always sufficient and sometimes necessary to guard a polyomino, both with straight-line visibility and rectangular visibility. Moreover, if entire cells can be chosen as guards (so-called pixel guards), they provide a bound of for both visibilities [7].
Restless Guards
We highlight that pixel guards are closely related to but more powerful than 0-restless guards, as the visibility of a pixel guard is the union of the visibility regions of all points in the cell rather than the intersection.
In contrast, for hole-free orthogonal polygons under rectangular visibility, Worman and Keil [39] show that the problem becomes polynomial-time solvable. The algorithm computes a maximum independent set of a perfect graph as a subroutine and has a running time in . Motivated by the high running time, Lingas, Wasylewicz, and Żyliński [29] provide a linear-time 3-approximation algorithm for the same setting. Biedl and Mehrabi [8, 9] prove NP-completeness, even for thin orthogonal polygons possibly with holes and rectangular visibility. Furthermore, they provide a linear-time algorithm for thin orthogonal polygons without holes, and argue that the problem becomes linear-time solvable for hole-free orthogonal polygons with bounded treewidth. Their methods actually generalize to orthogonal polygons with h holes and thickness t, i.e., the problem is fixed-parameter tractable in .
Guarding polyominoes was also considered under the notion of k-hop visibility in which each guard's vision is limited to paths of length k in the dual graph of the polyomino [21]. With this notion, guards may be able to guard points that lie behind corners. The problem is NP-complete for any fixed k, even for thin polyominoes; on the positive side, for hole-free polyominoes that contain no induced -square, there is a linear-time 4-approximation.
Guarding with imprecisions. Guarding problems with imprecision have appeared in different contexts. Dobbins, Kleist, Miltzow, and Rzążewski [16] pose three interesting open problems concerning the computational complexity of art gallery problems related to imprecision, either concerning the guard positions or the given polygon. In ROBUST GUARDING, we are given a hole-free polygon P and a number k. We place unit disks fully contained inside the polygon, such that no matter how we choose to place a guard in each disk we get a valid guard set. Our setting is closely related.
The notion of -robust guarding was recently introduced by Das, Filtser, Katz, and Mitchell [14]. In particular, for any , a guard -robustly guards a point if each segment between and a point of distance at most from is contained in the polygon. A crucial distinction is that, in their model, the guard's permissible movement is governed by its distance from the points it must guard, whereas this is not the case in the concept we consider. They show that the art gallery problem remains APX-hard under this notion of visibility. Complementarily, they provide -approximation algorithms, where the approximation factor depends on the robustness parameter .
Another notion of robustness concerns the number of substantially different directions from which each point can be viewed; specifically, a point is visible only when it lies in a triangle spanned by guards [17]. The authors show that it is NP-hard to decide whether k guards suffice to triangle-guard a given subset of a polygon; moreover, they present a polynomial-time -approximation when guard positions are restricted to an imposed grid on P, where k denotes the size of a smallest guard set on the grid.
A few works on terrain guarding also consider variants with imprecise guards or inputs. Keikha, Löffler, Saumell, and Valtr [26] find a placement of guards on a given subset of a 1.5D terrain such that the total length of the visible part is maximized. McCoy, Zhu, and Dutt [30] study the problem of computing a shortest watchtower on an imprecise terrain, where each vertex lies on a given vertical interval. When the location of a watchtower is fixed, the problem in 2D and 3D can be solved with linear programming, which leads to an additive -approximation for the general problem.
2 Concepts
We now introduce the fundamental notions. To this end, consider the plane with a partition into unit squares, called cells, by cutting with horizontal and vertical lines through the integer grid. The dual graph of a set of cells has a vertex for each cell and an edge between any two cells sharing a side. A subregion consisting of a union of cells is a polyomino if its dual graph is connected; see, e.g., Figure 2. Clearly, the vertex coordinates of a polyomino are integers, and vertices are either convex (90° interior angle) or reflex (270°). We denote edges between two consecutive convex vertices as outer dents. The cells not contained in a polyomino P are outer cells (of P). A polyomino is hole-free if its complement is connected.

(a)

(b)
Figure 2 (a) A hole-free polyomino, and (b) an upwards histogram with three (red) top outer dents and its (hatched) base.
We denote the location of a cell by the x- and y-coordinates of its bottom-left corner. In a polyomino P, a (vertical/horizontal) strip is a rectangle of width or height 1, i.e., a or -subpolyomino of P. A histogram is a polyomino that (can be rotated so that it) consists of vertical strips aligned on a horizontal base strip, see Figure 2. The necessary rotation determines the orientation of the histogram. When speaking about a histogram, we usually assume that its base is at the bottom side; we also say the histogram is upwards. A crucial property of a histogram H is that if a cell c is contained in H so are all cells between c and the base strip.
Visibility and neighborhoods. We start by defining rectangular visibility also known as r-visibility. For two points and in the plane, let denote the smallest axis-aligned rectangle containing them, i.e., their axis-aligned bounding box. Specifically, the visibility region of a point in a polyomino consists of all points such that .
Moreover, we aim to model the situation where a guard does not necessarily stay at its predefined position but may move to any point in a cell at distance at most ; its visibility region contains the points that are seen from all possible positions. Note that the visibility regions for all interior points of a cell are equivalent; only for boundary points the visibility region might increase. However, by the slightest movement from the boundary inside the cell, the enhanced visibility vanishes. Therefore, without loss of generality we place guards on the midpoints of cells; these positions can be identified with vertices in the dual graph.
For a k-restless guard in , we denote the -neighborhood of by , i.e., contains all cells in at distance at most from in the dual graph. Now, denotes the set of all points in such that and . For an illustration, see Figure 3.
Note that is itself a polyomino. For simplicity, we say that a -restless guard guards or sees a point or subpolyomino of , exactly if , or , respectively. We remark that, for two cells/guards and , we usually illustrate as the axis-aligned bounding box of the cells rather than their midpoints.
Finally, we note some basic properties. Recall that a set is orthogonally convex if the intersection with any axis-aligned line is connected.
Restless Guards

Figure 3 Illustration for k-restless guarding with k = 4: The neighborhood of a k-restless guard g is highlighted in gray. Because both cells c and are in the k-neighborhood of g, the k-visibility region of g is (a subset of) the intersection of and , which are indicated in red and cyan, respectively.
▶ Observation 1. The following properties hold for a cell c and a guard g in a polyomino P:
symmetry:
Vis is connected, orthogonally convex, and hole-free.
Proof. The first statement follows directly from the definition and the fact that is contained in its -neighborhood. Symmetry follows from the fact that in both cases. For connectedness, note that every point seen by satisfies , connecting to . To see orthogonal convexity, let two cells share a coordinate, and let see both. Then and are contained in , and together contain every cell between and . Thus, is orthogonally convex, and hence hole-free.
3 Guardability
We start with the crucial question of whether a polyomino can be k-restless guarded.
▶ Proposition 2. While for , every polyomino is k-restless guardable, for every , there exists a polyomino that is not k-restless guardable.
Proof. For , we observe that a k-restless guard always sees the cell that it is placed on. Therefore, by placing one guard in each cell, every polyomino is k-restless guardable.
However, for all , there exist hole-free polyominoes that are not k-restless guardable. To this end, consider the polyomino consisting of 3 cells, depicted in Figure 4. As the k-neighborhood of every guard g contains and , it follows that . Figure 4 also illustrates additional examples of non-guardable polyominoes.

Figure 4 Examples for 2-restless guarding: Cells that cannot be guarded are marked in red; in the guardable polyominoes, possible guard sets are indicated.
The fact that not all polyominoes are k-restless guardable, as established in Proposition 2, naturally raises the question of the computational complexity of testing this property. To address this, we present a polynomial-time algorithm.
▶ Proposition 3 (★). There exists an algorithm to decide for a given polyomino P and an integer k whether P is k-restless guardable in time polynomial in the number of vertices of P.
Proof sketch. Clearly, P is k-restless guardable if and only if all its cells are. Moreover, it is easy to see that a cell c is k-restless guardable if and only if contains the k-neighborhood of some guard in P. Hence, two important steps remain. First, as the number of cells might be exponential in the encoded size of P, it is crucial to bound the number of interesting cells. Second, we need to efficiently check whether a visibility polyomino contains a k-neighborhood; in particular, we do that in a running time independent of k.
To this end, we show that there exists a partition R of P into at most rectangles such that any two cells in the same rectangle are either both guardable or not. Specifically, R is obtained by shooting a horizontal and vertical ray at each reflex corner, see Figure 5.

Figure 5 The partition R of P is obtained by shooting two (red) rays from each reflex vertex.
The proposition then follows by showing and combining the following three properties.
(i) For any two cells c and in a rectangle in R it holds that: .
(ii) The visibility region of any k-restless guard g is the union of rectangles from R.
(iii) There exists a polynomial-time algorithm to check whether the visibility region of a cell contains the -neighborhood of some guard , and to identify such a guard.
As the described properties allow us to identify a k-restless guard for every guardable rectangle in R, Proposition 3 immediately yields a valid guard set for guardable instances.
With techniques similar to the ones used in the proof of Proposition 3, one can test whether two cells can be guarded by the same guard. This property is crucial for our algorithms.
▶ Lemma 4 (★). For any two given cells c and of a polyomino, there exists a polynomial-time algorithm to identify a k-restless guard that sees both c and , or decide that no such guard exists.
4 Tight worst-case bounds
We present tight worst-case bounds for the cases when k-restless guard sets exist for all polyominoes. We begin with 0-restless guards; this setting is closely related to the problem of guarding polyominoes with general point guards. However, 0-restless guards are more restricted, as they must lie within a single cell. As a consequence, two 0-restless guards might be required to achieve the visibility of one point guard, as illustrated in Figure 6. Therefore, we derive combinatorial bounds that differ from the ones for polyominoes by Biedl et al. [7].
Restless Guards


Figure 6 As point guards can be placed on cell borders, it may require two 0-restless guards to achieve the visibility of a single point guard.
▶ Proposition 5 (★). For a hole-free polyomino P with n vertices and cells, as well as 0-restless guards are always sufficient and sometimes necessary.
Proof sketch. Figure 7 depicts a class of polyominoes establishing the lower bound for both n and m.

Figure 7 A class of polyominoes requiring and 0-restless guards.
It is easy to see that each cell on the topmost and bottommost row requires a distinct 0-restless guard. For sufficiency in terms of n, we apply a result of Györi [23] to partition the polyomino into at most simple shapes that each can be guarded by a single 0-restless guard. Lastly, guards suffice because each 0-restless guard sees its own and all neighboring cells. Therefore, we can color the dual graph of P with two colors and choose the smaller set as our 0-restless guard set.
For 1-restless guards, we obtain the following bounds.
▶ Proposition 6 (★). For a hole-free polyomino P with n vertices and m cells, as well as 1-restless guards, for , are always sufficient and sometimes necessary.
Proof sketch. Figure 8 depicts polyominoes used for establishing the lower bounds.

(a)

(b)
Figure 8 (a) A family of polyominoes that require 1-restless guards to be entirely guarded. (b) Staircase polyominoes require guards for a complete 1-restless guarding.
For the upper bounds, we describe two separate strategies. In order to guard P with at most 1-restless guards, we identify two distinct cells that can be seen from an adjacent guard position, and place a 1-restless guard on all other cells. We prove the existence of two such cells by analyzing configurations in the topmost and bottommost rows of P.
The strategy for placing at most 1-restless guards is more involved. The idea is to compute a partition of P into at most rectangles, so that a single 1-restless guard in each rectangle suffices. Interestingly, not every partition into rectangles has this property. We therefore present a suitable partitioning strategy.
5 Computing minimum guard sets is NP-complete
In this section, we discuss the computational complexity for computing minimum guard sets. In particular, we show that the general problem of deciding whether many k-restless guards are sufficient to guard a given polyomino is NP-complete.
▶ Theorem 7 (★). For each fixed , the decision problem of whether a given polyomino has a k-restless guard set of size at most is NP-complete.
We leverage insights from Biedl and Mehrabi [8] who showed that finding minimum guard sets in orthogonal polygons with holes under rectangular visibility is NP-hard, even when the polygons are thin. They present a simple reduction from MINIMUM VERTEX COVER for plane graphs of maximum degree 3. The idea of their reduction is as follows: Starting from a rectilinear embedding of the input graph G, they construct a polyomino P by “thickening” the edges of the embedding. It is then straightforward to verify that any guard set for P corresponds to a vertex cover of G, and vice versa.
We construct similar gadgets but require new ideas, as our guards are both more restricted (since they cannot be placed on the boundary of a cell) and more flexible (because they can move). Our gadgets are depicted in Figure 9. To incorporate the movement in the

(a)

(b)


(c)

(d)
Figure 9 The gadgets used for reducing from minimum vertex cover. The corridors connect the other gadgets. (a) A corridor. (b) A corner gadget. (c) A tunnel gadget. (d) A junction gadget.
neighborhoods, we scale the gadgets so that each corridor is assigned a width or height of . Another key difference in our reduction is that certain gadgets (tunnel and junction gadget) require a ‘ground set’ of guards that must always be present, depicted by the gray guards in Figure 9. This set alone does not suffice to see any neighboring corridor. However, placing a single additional guard within the interior of the gadget extends the coverage to all neighboring corridors, as it enables a configuration in which all guards are positioned as indicated by the outlined guards.
6 Computing small guard sets
In this section, we present algorithms for guarding polyominoes with k-restless guards. Firstly, we show how to compute a minimum k-restless guard set for histograms or determine that no such guard set exists. Secondly, for k = 0, a 2-approximation follows by slightly modifying a result from previous work. Lastly, we exploit a simple decomposition of hole-free polyominoes into histograms and show that those can be guarded efficiently, yielding a 20k-approximation algorithm for k > 0.
Restless Guards
6.1 Optimal restless guard sets for histograms
In this section, we show how to compute optimal guard sets for histograms. We begin by establishing a property that will be essential to prove lower bounds. For later use, we already state it in a slightly more general form, namely for the more general ‘embedded histograms’; for now, the reader is welcome to restrict their attention to ‘real’ histograms.
▶ Lemma 8 (★). Let be a histogram (possibly embedded in a hole-free polyomino ), and be two cells in with , and be the horizontal set of cells from to . If a -restless guard (in ) sees both and , then .
In particular, if , then no k-restless guard can see both c and .
We highlight that the proof of the general statement crucially relies on the fact that has no holes. The proof for histograms is much simpler, with the underlying argument illustrated in Figure 10. In particular, if a guard sees both cells and , then the rectangles and are contained in . Moreover, as is a histogram, the extensions of the rectangles to the base are also contained in . Hence, .

(a)

(b)
Figure 10 Illustration of Lemma 8 for histograms. (a) If sees both cells and , then the cells in are contained in the histogram . (b) Because contains outer cells, no -restless guard is able to see both cells and .
With Lemma 8 at hand, we are ready to present an algorithm for computing an optimal set of k-restless guards for any histogram, or decide that no such set exists.
▶ Theorem 9 (★). There exists an algorithm that, given any histogram H with n vertices and any , computes an optimal k-restless guard set in time polynomial in the number of vertices of H, or decides that H is not k-restless guardable.
Proof sketch. We assume that H is upwards. The key to optimally k-restless guarding a histogram H lies in partitioning H into blocks, which are maximal horizontal rectangles that touch the histogram boundary to both sides, as illustrated in Figure 11. We observe that the dual graph of the blocks forms a rooted tree T. For each block, we assign a key cell, which is an arbitrary cell incident to the top boundary of H (the corresponding adjacent outer cells are marked with a cross in Figure 11). We establish the following properties:
(i) If H is k-restless guardable, then each block can be guarded by a single k-restless guard.
(ii) A k-restless guard sees a block if and only if it sees the block's key cell.
(iii) Using Lemma 8, we show that the blocks seen by a k-restless guard induce a directed path in T, and all such paths can be identified efficiently using Lemma 4.
It follows that k-restless guarding H reduces to covering T with a minimum number of directed paths. This can be done optimally by applying a greedy method starting at the leaves in T. To prove minimality, we select one key cell per selected path in T and show that these cells form a witness set, meaning that no two of the selected key cells can be seen by the same k-restless guard.
▶

Figure 11 Optimally k-restless guarding a histogram H is based on a partition of H into rectangular blocks (highlighted in orange) that form a rooted tree T. The extension of a block reaches down to the histogram's base, as outlined for block B in dashed lines. Each block is assigned a key cell within the respective block, visualized in yellow.
6.2 Approximation for 0-restless guarding
Before we focus on the general case of k-restless guarding polyominoes, we briefly remark that previous work implies a 2-approximation algorithm for 0-restless guarding polyominoes without holes. Worman and Keil [39] devise a polynomial-time algorithm that computes a minimum guard set for hole-free polyominoes with classic rectangular visibility. To leverage this result, the required insight is that two 0-restless guards can replace a point guard.
▶ Lemma 10 (★). Let be a point guard in a polyomino . We can efficiently identify two 0-restless guards and such that covers the visibility region of .
The high-level idea is visualized in Figure 12. In particular, observe that we can partition the visibility region of any point guard p into two histograms. Then, by carefully placing two 0-restless guards, those guards together cover the corresponding region.

Figure 12 The visibility region of a point guard can be split into two histograms that can be guarded with a single 0-restless guard each.
Lemma 10 implies that a set of point guards for a polyomino can be transformed into a set of 0-restless guards whose cardinality is at most twice that of the original. Therefore, using the algorithm of Worman and Keil [39] as a subroutine, we obtain a 2-approximation.
▶ Corollary 11. There exists a 2-approximation for 0-restless guarding hole-free polyominoes.
6.3 Approximation algorithm for hole-free polyominoes
We now turn our attention to general hole-free polyominoes and present a 20k-approximation.
▶ Theorem 12. For , there exists a 20k-approximation algorithm that, given a k-restless guardable hole-free polyomino P, computes a k-restless guard set in time polynomial in the number of vertices of P.
Restless Guards
Our proof consists of three steps. First, we decompose the polyomino into histograms. Second, we guard each histogram. Finally, we argue that the union of these guard sets yields a good guard set for the entire polyomino. The first and last step follow from previous work. The interesting part lies in the second step. A major challenge is that the boundaries of the histograms are not necessarily boundaries of the polyomino, allowing the k-restless guards to leave the histogram. We now explain the three steps.
Decomposing a hole-free polyomino into histograms. We apply a simple method by Levcopoulos [28] for decomposing a hole-free polyomino P into a set of histograms: In each iteration, we construct a new maximal histogram starting at a given base. For an illustration, consider Figure 13. The first histogram is obtained by choosing an outer dent e; note that, without loss of generality, we choose a horizontal outer dent in Figure 13. Then, we construct a maximal histogram with base e; you may imagine sweeping over P with e. Let H be the union of the already constructed histograms. We iteratively construct the next histogram from a maximal segment leading from to H, until .

Figure 13 Partitioning a polyomino into histograms, with red being the starting edge.
The histograms constructed by the aforementioned approach fulfill the following properties, which we also visualize in Figure 14. Note that for simplicity of the arguments and to match the figures, we assume that the histogram H is upwards.
(i) By maximality, a cell adjacent to the top boundary of H but not contained in H is an outer cell of P.
(ii) All cells adjacent to the unique bottom edge of H but not contained in H are either all contained in P or all outer cells of P. We refer to H having an inside base or a bordered base, respectively.
We call a histogram-shaped subpolyomino satisfying these properties an embedded histogram. We conclude with Lemma 13.

Figure 14 Two embedded histograms within a polyomino has an inside base, while has a bordered base, both hatched in red. Outer cells adjacent to the top boundary of and are marked by crosses.
▶ Lemma 13 (Levcopoulos [28], Lemma 4). A hole-free polyomino with n vertices can be partitioned into embedded histograms in time.
Challenges when handling embedded histograms. As mentioned above, the transition from histograms to embedded histograms might seem like a minor modification, but has fundamental effects on potential guarding strategies. We highlight some of the encountered difficulties in Figure 15: For guarding histograms, we used a natural partition into rectangular blocks, each of which could be covered by a single guard. As visualized in Figure 15(a), a block within an embedded histogram in turn might require arbitrarily many k-restless guards. Moreover, the example depicted in Figure 15(b) shows that optimal solutions may require visibility regions that do not touch the histogram boundary. We therefore deal with an inherently two-dimensional covering problem that cannot be simply reduced to one-dimensional strategies. Furthermore, even if we are able to compute optimal solutions for blocks, these may not remain optimal when merged, as illustrated in Figure 15(c).

(a)

(b)

(c)
Figure 15 Illustration of the challenges for guarding embedded histograms. (a) Guarding the block with k-restless guards may require arbitrarily many guards. (b) Visibility regions in optimal solutions may not touch the histogram boundary. (c) Combining optimal solutions for blocks may be suboptimal; needs i k-restless guards, but four k-restless guards suffice for .
Guarding embedded histograms. Before we present our algorithm, we start by guarding strips inside a polyomino. Recall that strips are rectangles of width or height 1.
▶ Lemma 14. Let P be a polyomino and let S be a strip in P. We can compute a minimum set of k-restless guards in P covering S in time polynomial in the number of vertices of P, or decide that no such set exists.
Proof. We show that this problem reduces to covering an interval with given subintervals. If a guard sees two cells and in the strip , then also sees all cells between and because and cover for all . Therefore, the visibility region of a guard restricted to forms a substrip of . Consequently, covering a strip with substrips corresponds to covering an interval with subintervals, see also Figure 16. By Lemma 4, we can check for any two cells in if there exists a -restless guard seeing both cells in polynomial time. However, we need to restrict our attention to a polynomial number of interesting pairs of cells. To this end, note that intersects at most rectangles of , so it suffices to test a quadratic number of cell pairs, and thus subintervals. (We may even further restrict our attention to maximal subintervals, therefore also pairs suffice when using binary search.)
Restless Guards

Figure 16 Illustrating the proof idea of Lemma 14: Guarding a strip S in P corresponds to computing a minimum set of intervals to cover a given interval.
Finally, the interval cover problem can be solved by a greedy algorithm that iteratively chooses an interval that covers the first uncovered point and maximizes its end. It is easy to see that this greedy strategy is optimal; any optimal interval cover can be transformed into the greedy solution by repeatedly exchanging the first interval that differs between both solutions with an interval that covers possibly more points to the end. We remark that this strategy also identifies when no k-restless guard set exists.
Using Lemmas 8 and 14, we are now ready to describe an approximation algorithm.
▶ Lemma 15. There exists a 4k-approximation algorithm to compute, given a hole-free k-restless guardable polyomino P and an embedded histogram H within P, a set of k-restless guards contained in P that sees H. Its running time is polynomial in the number n of vertices of P.
Proof. Let P be a hole-free polyomino, and let H be a histogram embedded in P. We start by partitioning H into three subsets, a bottom set B, a top set T, and a rest R. For an illustration, see Figure 17. In a polyomino, we call the set of all cells that share the same y-coordinate a row. We count rows from bottom to top, i.e., the first row of a histogram is its baseline. The bottom set B contains the bottommost rows of H. We then partition the remaining cells into maximal horizontal strips. All strips of width are contained in the top set T and the rest is assigned to the set R.

Figure 17 An embedded histogram and its bottom set B, top set T and rest set R. To guard R, we place a guard (gray) at the kth row centered below all top outer dents in R (double lines).
We now describe how to k-restless guard all three sets separately. Let OPT denote the number of k-restless guards in an optimal solution. In particular, we use at most guards for , guards for , and guards for . Together, this yields k-restless guards and implies the claim.
Applying Lemma 14, we compute an optimal guard set for every maximal horizontal strip in B. If several horizontal strips lie in the same row, Lemma 8 guarantees that the union of optimal guard sets remains optimal for the union of the strips in one row. Note that Lemma 8 crucially requires P to be hole-free. Clearly, optimally guarding any subset of P (i.e., any strip) requires at most OPT guards. Therefore, taking the union of the guard sets for the rows in B yields a set containing at most k-restless guards.
For guarding T, we apply Lemma 14 to vertical strips. We observe that in T, no k-restless guard can see cells that are more than 2k cells apart; otherwise, by Lemma 8, T would contain a horizontal strip of width > 2k. We can therefore distribute our vertical strips into 2k sets based on their x-coordinate mod 2k. In every set , Lemma 8 ensures that no two vertical strips can be guarded by the same k-restless guards. Therefore, each is optimally guarded, and the total number of guards for T is at most k-restless guards.
We consider as a set of histograms. By construction, every top outer dent of histograms in has a length exceeding . To guard , we place a -restless guard at the th row in at the center of each top outer dent in , as illustrated in Figure 17. We argue that this set of guards is valid. For a fixed outer dent, consider the rectangle that contains its top edge and reaches to the histogram base; if the histogram has an inside base, we extend vertically to also include these cells. Hence has width . Its height is (and a boundary to the bottom), or , if the histogram has an inside base. In both cases, the -neighborhood of our -restless guard is contained in . Therefore, guards , and every cell below an outer dent is guarded. By the structure of histograms, this implies that every cell in is seen. Finally, by Lemma 8, each outer dent requires a distinct -restless guard. Therefore, the constructed guard set for is minimum.
Lastly, we modify the described strategy to obtain a running time independent of k. In particular, we apply Lemma 14 only to a subset of at most crucial vertical and horizontal strips. Let R be the partition of P into rectangles obtained by shooting a horizontal and vertical ray at each reflex corner, see also Figure 5. By Claim 19(b), the visibility region of a guard is a union of rectangles in R. Therefore, if two strips intersect the same set of rectangles, a k-restless guard set for one strip also sees the other strip. Hence, it suffices to compute a guard set for one of these strips. We can easily (and independent of k) identify a set of crucial strips each of which we can charge to a rectangle of R. Each rectangle is charged by at most one vertical and one horizontal strip.
This completes the proof.
From embedded histograms to polyominoes. It remains to show that an approximation algorithm for embedded histograms implies an approximation for polyominoes. We show that the approximation factor increases by a factor of 5, which follows by an adaptation of a result of Lingas, Wasylewicz, and Żyliński [29]. In particular, they argue that in a partition into histograms, any rectangular visibility polygon of any point guard is contained in the union of at most five histograms. For an example, consider the (blue) visibility region of in Figure 13. As , this property carries over to -restless guards.
▶ Lemma 16 (★). An -approximation for computing k-restless guard sets for embedded histograms yields a -approximation for k-restless guarding hole-free polyominoes.
Restless Guards
The final step. Together, Lemmas 15 and 16 and Proposition 3 yield the claim. First, we check with Proposition 3 whether P is k-restless guardable. If so, we partition P into histograms and use Lemma 15 to compute a 4k-approximation for each embedded histogram. By Lemma 16, the union of these guard sets yields a 20k-approximation for P. All steps have runtimes that only depend on the number n of vertices of P and k.
7 Improved approximation factor for small k
With Theorem 12 we established an approximation algorithm for arbitrary k. For small k, however, a refined analysis of the arguments in the proof of Theorem 12 allows us to obtain stronger guarantees. In particular, for k = 1, we can optimally guard each of the three sets of the decomposition (separately). This yields the following result:
▶ Theorem 17 (★). For any constant , there exists a -approximation algorithm that, given a hole-free polyomino P, computes a 1-restless guard set in time polynomial in the number of vertices of P.
8 Conclusion
Motivated by locational uncertainty, we introduced the art gallery problem with restless guards that may move in the vicinity of their prescribed location. Full coverage must be guaranteed no matter the exact position of guards. We investigated this problem for polyominoes with rectangular visibility and establish tight worst-case bounds, show NP-hardness, and develop approximation algorithms.
References
1 Mikkel Abrahamsen, Anna Adamaszek, and Tillmann Miltzow. Irrational guards are sometimes needed. In Symposium on Computational Geometry (SoCG), pages 3:1–3:15, 2017. doi:10.4230/LIPIcs.SoCG.2017.3.
2 Mikkel Abrahamsen, Anna Adamaszek, and Tillmann Miltzow. The art gallery problem is -complete. Journal of the ACM, 69(1):4:1–4:70, 2022. doi:10.1145/3486220.
3 Stav Ashur, Omrit Filtser, and Matthew J. Katz. A constant-factor approximation algorithm for vertex guarding a WV-polygon. Journal of Computational Geometry, 12(1):128–144, 2021. doi:10.20382/JOCG.V12I1A6.
4 Stav Ashur, Omrit Filtser, Matthew J. Katz, and Rachel Saban. Terrain-like graphs: PTASs for guarding weakly-visible polygons and terrains. Computational Geometry, 101:101832, 2022. doi:10.1016/J.COMGEO.2021.101832.
5 Boaz Ben-Moshe, Matthew J. Katz, and Joseph S. B. Mitchell. A constant-factor approximation algorithm for optimal 1.5D terrain guarding. SIAM Journal on Computing, 36(6):1631–1647, 2007. doi:10.1137/S0097539704446384.
6 Therese Biedl, Mohammad Tanvir Irfan, Justin Iwerks, Joondong Kim, and Joseph S. B. Mitchell. Guarding polyominoes. In Symposium on Computational Geometry (SoCG), pages 387–396, 2011. doi:10.1145/1998196.1998261.
7 Therese Biedl, Mohammad Tanvir Irfan, Justin Iwerks, Joondong Kim, and Joseph S. B. Mitchell. The art gallery theorem for polyominoes. Discrete & Computational Geometry, 48(3):711–720, 2012. doi:10.1007/S00454-012-9429-1.
8 Therese Biedl and Saeed Mehrabi. On r-guarding thin orthogonal polygons. In International Symposium on Algorithms and Computation (ISAAC), pages 17:1–17:13, 2016. doi:10.4230/LIPICS.ISAAC.2016.17.
9 Therese Biedl and Saeed Mehrabi. On orthogonally guarding orthogonal polygons with bounded treewidth. Algorithmica, 83(2):641–666, 2021. doi:10.1007/S00453-020-00769-5.
10 Ahmad Biniaz, Anil Maheshwari, Magnus Christian Ring Merrild, Joseph S. B. Mitchell, Saeed Odak, Valentin Polishchuk, Eliot W. Robson, Casper Moldrup Rysgaard, Jens Kristian Refsgaard Schou, Thomas C. Shermer, Jack Spalding-Jamieson, Rolf Svenning, and Da Wei Zheng. Polynomial-time algorithms for contiguous art gallery and related problems. In Symposium on Computational Geometry (SoCG), pages 20:1–20:21, 2025. doi:10.4230/LIPICS.SOCG.2025.20.
11 Édouard Bonnet and Tillmann Miltzow. An approximation algorithm for the art gallery problem. In Symposium on Computational Geometry (SoCG), pages 20:1–20:15, 2017. doi:10.4230/LIPICS.SOCG.2017.20.
12 Vašek Chvátal. A combinatorial theorem in plane geometry. Journal of Combinatorial Theory, 18(1):39–41, 1975. doi:10.1016/0095-8956(75)90061-1.
13 Tim Danner and Lydia Kavraki. Randomized planning for short inspection paths. In International Conference on Robotics and Automation (ICRA), pages 971–976, 2000. doi:10.1109/ROBOT.2000.844726.
14 Rathish Das, Omrit Filtser, Matthew J. Katz, and Joseph S. B. Mitchell. Robustly guarding polygons. In Symposium on Computational Geometry (SoCG), pages 47:1–47:17, 2024. doi:10.4230/LIPICS.SOCG.2024.47.
15 Sarita de Berg, Jacobus Conradi, Ivor van der Hoog, and Eva Rotenberg. The contiguous art gallery problem is in , 2025. arXiv:2511.02960.
16 Michael Gene Dobbins, Linda Kleist, Tillmann Miltzow, and Paweł Rzążewski. Completeness for the complexity class ∀∃R and area-universality. Discrete & Computational Geometry, 70(1):154–188, 2023. doi:10.1007/S00454-022-00381-0.
17 Alon Efrat, Sariel Har-Peled, and Joseph S. B. Mitchell. Approximation algorithms for two optimal location problems in sensor networks. In International Conference on Broadband Networks (BROADNETS), pages 767–776, 2005. doi:10.1109/ICBN.2005.1589677.
18 Stephan J. Eidenbenz, Christoph Stamm, and Peter Widmayer. Inapproximability results for guarding polygons and terrains. Algorithmica, 31(1):79–113, 2001. doi:10.1007/S00453-001-0040-8.
19 Friedrich Eisenbrand, Stefan Funke, Andreas Karrenbauer, and Domagoj Matijevic. Energy-aware stage illumination. In Symposium on Computational Geometry (SoCG), pages 336–345, 2005. doi:10.1145/1064092.1064144.
20 Maximilian Ernestus, Stephan Friedrichs, Michael Hemmer, Jan Kokemüller, Alexander Kröller, Mahdi Moeini, and Christiane Schmidt. Algorithms for art gallery illumination. Journal of Global Optimization, 68(1):23–45, 2017. doi:10.1007/s10898-016-0452-2.
21 Omrit Filtser, Erik Krohn, Bengt J. Nilsson, Christian Rieck, and Christiane Schmidt. Guarding polyominoes under k-hop visibility. Algorithmica, 87(4):572–593, 2025. doi:10.1007/S00453-024-01292-7.
22 Steve Fisk. A short proof of Chvátal's watchman theorem. Journal of Combinatorial Theory, 24(3):374, 1978. doi:10.1016/0095-8956(78)90059-X.
23 Ervin Györi. A short proof of the rectilinear art gallery theorem. SIAM Journal on Algebraic Discrete Methods, 7(3):452–454, 1986. doi:10.1137/0607051.
24 Jeff Kahn, Maria Klawe, and Daniel Kleitman. Traditional galleries require fewer watchmen. SIAM Journal on Algebraic Discrete Methods, 4(2):194–206, 1983. doi:10.1137/0604020.
25 Giorgos Kazazakis and Antonis Argyros. Fast positioning of limited-visibility guards for the inspection of 2d workspaces. In International Conference on Intelligent Robots and Systems (IROS), pages 2843–2848, 2002. doi:10.1109/IRDS.2002.1041701.
26 Vahideh Keikha, Maarten Löffler, Maria Saumell, and Pavel Valtr. Guarding a 1.5D terrain with imprecise viewpoints. In International Workshop on Combinatorial Algorithms (IWOCA), pages 3–16, 2025. doi:10.1007/978-3-031-98740-3_1.
Restless Guards
27 D. T. Lee and Arthur K. Lin. Computational complexity of art gallery problems. IEEE Transactions on Information Theory, 32(2):276–282, 1986. doi:10.1109/TIT.1986.1057165.
28 Christos Iraklis Levcopoulos. Heuristics for Minimum Decompositions of Polygons, Ph.D. Thesis. Linköping University, 1987.
29 Andrzej Lingas, Agnieszka Wasylewicz, and Pawel Żyliński. Linear-time 3-approximation algorithm for the r-star covering problem. International Journal of Computational Geometry & Applications, 22(2):103–142, 2012. doi:10.1142/S021819591250001X.
30 Bradley McCoy, Binhai Zhu, and Aakash Dutt. Guarding precise and imprecise polyhedral terrains with segments. In International Conference on Combinatorial Optimization and Applications (COCOA), pages 323–336, 2023. doi:10.1007/978-3-031-49614-1_24.
31 Bengt J. Nilsson. Approximate guarding of monotone and rectilinear polygons. In International Colloquium on Automata, Languages and Programming (ICALP), pages 1362–1373, 2005. doi:10.1007/11523468_110.
32 Joseph O'Rourke. An alternate proof of the rectilinear art gallery theorem. Journal of Geometry, 21(1):118–130, 1983. doi:10.1007/BF01918136.
33 Joseph O'Rourke. Art gallery theorems and algorithms. Oxford University Press, New York, 1987.
34 Joseph O'Rourke. Open problems from CCCG 2005, illuminating with true lightbulbs, 2005. URL: https://erikdemaine.org/papers/CCCG2005open/paper.pdf.
35 Dietmar Schuchardt and Hans-Dietrich Hecker. Two NP-hard art-gallery problems for orthopolygons. Mathematical Logic Quarterly, 41:261–267, 1995. doi:10.1002/malq.19950410212.
36 Thomas C. Shermer. Recent results in art galleries (geometry). Proceedings of the IEEE, 80(9):1384–1399, 1992. doi:10.1109/5.163407.
37 Jack Stade. The point-boundary art gallery problem is -hard. In Symposium on Computational Geometry (SoCG), pages 74:1–74:23, 2025. doi:10.4230/LIPICS.SOCG.2025.74.
38 Jorge Urrutia. Art gallery and illumination problems. In Handbook of Computational Geometry, pages 973–1027, 2000. doi:10.1016/b978-044482537-7/50023-1.
39 Chris Worman and J. Mark Keil. Polygon decomposition and the orthogonal art gallery problem. International Journal of Computational Geometry & Applications, 17(2):105–138, 2007. doi:10.1142/S0218195907002264.
A Omitted details for Section 3
In this section, we lay the groundwork for efficiently answering visibility queries inside a polyomino. In particular, we prove Proposition 3 and Lemma 4.
▶ Proposition 3 (★). There exists an algorithm to decide for a given polyomino P and an integer k whether P is k-restless guardable in time polynomial in the number of vertices of P.
Proof. Clearly, P is k-restless guardable if and only if all its cells are. Therefore, the proof is based on the following characterization.
▷ Claim 18. A cell c in P is k-restless guardable if and only if contains the k-neighborhood of some guard position in P.
Proof. The cell is -restless guardable if and only if there exists a guard with and thus for all . By symmetry of rectangular visibility, this holds if and only if for all , i.e., contains the -neighborhood of .
There thus remain two important steps. First, as the number of cells might be exponential in the encoding of P, it is crucial to bound the number of interesting cells. Second, we need to efficiently check whether the visibility region contains a k-neighborhood; in particular, we want to do so in a running time independent of k.
To this end, we show that there exists a partition of into at most rectangles such that any two cells in the same rectangle are either both guardable or not. Moreover, all visibility regions can be expressed as a union of rectangles from the partition. In particular, we partition by shooting two rays, one horizontal and one vertical, from every reflex vertex. This yields a partition into at most rectangles. For an illustration, consider Figure 18.

(a)

(b)
Figure 18 Illustration for the proof of Proposition 3. (a) The partition of is obtained by shooting two (red) rays from each reflex vertex. (b) A cell implies the existence of a vertex in , yielding a ray separating from .
We show that R has the desired properties.
▷ Claim 19. The partition of into at most rectangles has the following properties:
(a) For any two cells and of a rectangle in it holds that: .
(b) The visibility region of any k-restless guard g is the union of rectangles from R.
Proof. (a) Suppose there exists a cell . Then the set is not entirely contained in ; otherwise . This implies that some edge intersects , see Figure 18(b) for an illustration. Note that is bounded by a vertical edge from and a horizontal edge from or vice versa. Therefore, the edge must end in ; otherwise its interior intersects or , a contradiction to the fact that sees or that contains no vertex in its interior. In other words, if ends in , then contains a vertex. This implies a ray separating and ; this is a contradiction to the fact that and stem from the same rectangle.
(b) By definition, the visibility region of a -restless guard is the intersection of for all , i.e., . Therefore, it suffices to show that is a union of rectangles of . By Observation 1 we have the symmetry . Therefore, if , and lies in the same rectangle as , we have by (a) and hence . In other words, if sees one cell of a rectangle in it sees the entire rectangle.
With property (a) of Claim 19 at hand it remains to pick an arbitrary cell in each rectangle in R and verify that it is k-restless guardable. To this end, we introduce Claim 20.
▷ Claim 20. There exists a polynomial-time algorithm to check whether the visibility region of a cell contains the -neighborhood of some guard position in the polyomino .
Proof. By Claim 19(b), is the union of at most rectangles from . For each rectangle of in , we check if a -restless guard can be placed in , i.e., if the neighborhood of any cell in is contained in . Let denote the candidate region for the guard placements in ; initially, . We classify the boundary edges of into two sets, the ones that are subsets of boundary edges of , and the remaining ones, which we call the set of exits . The name reflects the property that a guard may potentially leave by traversing such an edge, see also Figure 19(a).
Restless Guards

(a)

(b)
Figure 19 Illustration for the proof of Claim 20. (a) Example of of a cell . Exits are shown as bold lines and cells in that may reach an exit in at most steps are shaded gray. (b) For a rectangle in and a single exit, the induced cut of cells at most positions away from the exit is either horizontal, vertical or diagonal.
We now iterate over all exits in X. Our goal is to remove all cells from C that are too close to the respective exit, i.e., if the exit can be traversed in at most k steps. If C contains a cell g after all exits have been considered, the k-neighborhood of g is contained in and we thus found a suitable k-restless guard; otherwise c is not guardable from a guard in r.
It remains to explain how to do these computations in polynomial time. To this end, note that is orthogonally convex and connected, and hence, a shortest path within matches the Manhattan distance. Secondly, we observe that for an exit , which can be obtained by a horizontal or vertical translation of a side of , a horizontal or vertical cut can remove all cells of which are too close to . For all other exits, a unique corner cell of is closest. In this case, all close cells can be removed by cutting with a diagonal line. These cuts can be computed by considering the Manhattan distances of the corners of and endpoints of each exit, see also Figure 19(b). In the end, it suffices to consider the eight most extreme cuts in every direction to test whether contains a cell of .
This concludes the proof.
The techniques used to prove Claim 20 can now easily be extended to test whether two cells are seen by the same guard, a crucial tool for all our algorithms that work for arbitrary k.
▶ Lemma 4 (★). For any two given cells c and of a polyomino, there exists a polynomial-time algorithm to identify a k-restless guard that sees both c and , or decide that no such guard exists.
Proof. If a k-restless guard sees two cells c and , then its k-neighborhood is contained in both and . Therefore, we aim to check whether contains the k-neighborhood of some guard. As before, V is a union of at most rectangles from R by Claim 19(b). As an intersection of orthogonal convex sets, each connected component of V is orthogonally convex. Thus we apply the strategy of Claim 20 for each connected component instead of .
B Omitted details for Section 4
In the following, we provide the missing details of our results on the number of necessary and sufficient k-restless guards required to guard polyominoes. We present these bounds in terms of both the number of vertices n and the number of cells m of a hole-free polyomino for k-restless guards with k = 0 and k = 1.
B.1 0-restless guards
▶ Proposition 5 (★). For a hole-free polyomino P with n vertices and cells, as well as 0-restless guards are always sufficient and sometimes necessary.
Proof. We split the proof into three claims.
▷ Claim 21. For all n and m, there exist polyominoes for which and 0-restless guards are necessary.
Proof. For an illustration, consider Figure 20(a). Let be a fixed integer and consider the polyomino consisting of cells and vertices. The cells form a horizontal strip and a cell is above if is odd and below if is even. Note that can only be guarded by or . Consequently, at least 0-restless guards are necessary. Moreover, attaching an additional cell yields polyominoes with odd , and the vertices with the same bounds on the number of necessary guards. This implies the claim.

(a)

(b)

(c)
Figure 20 (a) A family of polyominoes requiring and 0-restless guards. (b) Decomposing a polyomino into at most orthogonal pieces with vertices and guarding each with a single 0-restless guard. (c) Coloring the dual graph of a polyomino black and white to find a guard set with at most 0-restless guards.
▷ Claim 22. 0-restless guards are always sufficient.
Proof. As shown by Györi [23], every hole-free orthogonal polygon can be decomposed into at most orthogonal pieces, each having 4 or 6 vertices. For an illustration, consider Figure 20(b). In other words, there exists a decomposition into rectangles and L-shapes. For each of these parts one 0-restless guard suffices: In an L-shape, we may place it in the cell with corner contact to the reflex corner, for rectangles a guard can be placed at any cell.
▷ Claim 23. 0-restless guards are always sufficient.
Proof. Note that every 0-restless guard sees its own and its adjacent cells. As the dual graph of a polyomino is bipartite, we may color the vertices in white and black such that no two cells of the same color share an edge, see Figure 20(c). Hence, placing 0-restless guards on all cells of one color yields a valid 0-restless guard set. Clearly, one of the two color classes contains at most cells which proves the claim.
This completes the proof.
B.2 1-restless guards
We now prove a tight bound on the number of 1-restless guards that are sometimes necessary and always sufficient to guard a hole-free polyomino.
Restless Guards
▶ Proposition 6 (★). For a hole-free polyomino P with n vertices and m cells, as well as 1-restless guards, for , are always sufficient and sometimes necessary.
Proof. We again prove the two parts separately.
▷ Claim 24. guards are always sufficient and sometimes necessary.
Proof. Figure 21(a) depicts polyominoes that require at least 1-restless guards. They consist of smaller windmill-shaped polyominoes. In a windmill, a 1-restless guard must be placed on each of the four extremal cells; otherwise these cells are not guarded. Then, an additional 1-restless guard must be placed on the central cell, which remains unguarded otherwise. By connecting multiple windmills along one of the teeth, we can construct arbitrarily large polyominoes while preserving this structural property.

(a)

(b)
Figure 21 (a) A family of polyominoes that require 1-restless guards to be entirely guarded. (b) A polyomino partitioned into rectangles where more than one guard is required in one rectangle.
In all but the first windmill, the ratio between the number of guards and vertices is 1:2. In the first windmill, we have two additional vertices. This gives the desired bound.
It remains to show sufficiency. To this end, we first partition the polyomino P into at most rectangles. In a second step, we carefully place one 1-restless guard in each rectangle. Lastly, we show that the guard set is valid. We highlight that an arbitrary partition into rectangles does not have the claimed properties; for example, consider the polyomino depicted in Figure 21(b) with a partition into five rectangles. In this example, no valid guard set contains only one 1-restless guard in the central rectangle. Hence, starting from a good partition is crucial.
The idea of the partition is to iteratively grow new rectangles from so called open edges. Throughout the procedure, let denote the union of already constructed rectangles. We start with a rectangle that is an arbitrary maximal rectangle in sharing one of its edges with an outer dent of ; we call the outer dent the open edge of . We partition the edges of with vertices from ; note that these vertices have flat angles in . We call the edges of not belonging to open. Next, we iteratively select an open edge and construct a maximal rectangle inside with edge . In particular, the side of opposite to touches the boundary of . We identify open edges of and proceed until . For an example of the construction consider Figure 22.
We now argue that in each step, two new edges of are encountered, i.e., does not yet touch these sides. We note that at least one vertex of is a vertex of and hence incident to an edge of . Moreover, the edge opposite of is incident to an edge of . If any of the two edges had been encountered before, we obtain a contradiction to hole-freeness of the added rectangles. Hence, after steps, is a -gon; that is, we repeat the procedure until . Consequently, we obtain a partition with at most rectangles, as desired.

(a)

(b)
Figure 22 Constructing a set of at most 1-restless guards. (a) Starting from a maximal rectangle containing the outer dent (red), is iteratively extended from open edges; double lines not only show the partition into rectangles, but also indicate open edges during the procedure. A guard is placed in every rectangle; in rectangles of width 1, blue triangles indicate cells that are already seen as a cellar of an adjacent rectangle. (b) A rectangle r with base and cellar.
We now explain how to place our guards. To this end, we consider a rectangle from whose defining open edge is without loss of generality at the bottom. We denote the cells of in the bottommost row as its base, and the cells right below the base as its cellar, see Figure 22(b). We first note that the initial rectangle can be guarded from a position on its base; in the case of height 1, the guard must be placed below an outer cell, otherwise any position works. Now, let be any other rectangle in the partition . As open edges share a vertex with , there exists an outer cell adjacent to one of the vertical edges right above the base, as in Figure 22(b). By construction, the cellar of is contained in . If has width and height at least 2, we place a 1-restless guard on the base next to the outer cell, as in Figure 23(a). Note that it guards and its cellar. If has a width at least 2 and a height of 1, we place a guard in below an outer cell incident to the top of ; note that such an outer cell exists as otherwise is not maximal. For an example consider Figure 23(b). Clearly, such a guard sees and in most cases also the cellar. If the guard does not see the cellar of , then the cellar contains a topmost cell in the cellar's rectangle, see Figure 23(c).

(a)

(b)

(c)

(d)

(e)
Figure 23 Guard placements for all possible types of rectangles.
It remains to guard r of width 1. If r contains a cell that is adjacent to outer cells to both its left and right, we place a guard there, as shown in Figure 23(d). Clearly, this guard sees r and its cellar. Otherwise, we place a guard in the topmost cell of r that has an outer cell to its left or right, see Figure 23(e). This ensures that all cells in r at this position and above are guarded. Note that in this case, the cellar of r is a topmost cell.
It remains to show that r is guarded for this last case. To this end, we note that each cell of r is in some cellar of an adjacent rectangle. Moreover, all cells of r are guarded as
Restless Guards
the cellar of their adjacent rectangles, except for possibly a sequence of topmost cells, as for example the orange cells in Figure 22(a). The guard placed in r takes care of guarding these cells. This concludes the proof.
▷ Claim 25. For a polyomino with at least cells, 1-restless guards are always sufficient and sometimes necessary.
Proof. Staircase polyominoes, as visualized in Figure 24, require 1-restless guards. The cells at both ‘ends’ are only seen by a guard that is placed on them; these guards also see their respective adjacent cell. Moreover, all other cells require their own 1-restless guards placed on them.

Figure 24 Staircase polyominoes require m - 2 guards for a complete 1-restless guarding.
We now argue that many 1-restless guards are always sufficient to see a polyomino. No matter its position, every 1-restless guard sees the cell where it is initially placed on. Therefore, it suffices to identify two 1-restless guards that can guard two cells.
We first assume that has a bounding box of height (or width) . Figure 25(a) shows that in two topmost rows of such a 1-restless guard can be found and that the additionally guarded cell is also contained in the first two rows. With a polyomino height of , the two topmost and two bottommost rows are distinct. As Figure 25(a) equally works for the bottommost rows, we can identify two distinct 1-restless guards that also guard two more distinct cells. It remains to investigate the cases where the bounding box is at most . A closer look reveals that only in the first (vertical) case in Figure 25(a) the adjacent guarded cell lies in the second row. Hence, the same argument works for height (or width) when the vertical case occurs at most once or if it identifies two different cell positions. In turn, if the same cell is identified twice in the vertical case, either is a plus or a rotated ‘T’, and we show in Figure 25(b) how to guard these. Lastly, if the bounding box of is a -square, a single guard suffices because .



(a)



(b)
Figure 25 (a) Based on the top left cell in a polyomino P (blue outline), we find a 1-restless guard that also guards an adjacent cell a. We show all possible configurations around this cell in P. Cells marked with a cross are known to be outer cells. (b) If P lies inside a bounding box, the depicted special cases can be guarded as shown.
This completes the proof.
◀
C Omitted details for Section 5
We now provide the details of the NP-completeness for polyominoes with holes. More precisely, we show that for any , deciding whether a given polyomino can be guarded with many k-restless guards is NP-complete.
On a high level, our reduction for the NP-hardness is an extension of the approach described by Biedl and Mehrabi [8] for guarding polyominoes with point guards under rectangular visibility. They show that finding a minimum vertex cover remains NP-complete if the graph is orthogonally embedded into the plane, all vertices lie at integer coordinates and the maximum degree is three. Based on such an embedding, they construct a polyomino P that is basically a “thickened” version of the embedding of G. More precisely, it contains corridors of unit height or width for every edge in the given graph G, and the corridors are connected by gadgets that depend on the vertex degree. They then show that a minimum vertex cover in G corresponds to a minimum point guard set of P.
Our reduction follows the same strategy: We reduce from the aforementioned NP-complete orthogonal VERTEX COVER variant [8], constructing a polyomino whose corridors are connected via three types of gadgets determined by the vertex layout. Based on the number and direction of incoming edges, a vertex can either be a corner, a tunnel, or a junction. Note that the reduction holds for all , including , provided the instance is scaled such that every corridor has width or height . All gadgets are visualized in Figure 26.
Building on these insights and the gadgets depicted in Figure 26, we now establish the following result.
▶ Theorem 7 (★). For each fixed , the decision problem of whether a given polyomino has a k-restless guard set of size at most is NP-complete.
Proof. We begin by showing NP membership. Let be a polyomino with vertices. We aim to check in time polynomial in and whether a given set of at most candidate -restless guards sees the entire polyomino . (In fact, Claim 18 and Claim 19(a) imply that if is guardable, then there exists a guard set of size at most .) To this end, we compute for every guard and check whether their union covers .
Let be the partition of into rectangles as described in Proposition 3. By Claim 19(a), the visibility polyominoes of all positions in a rectangle in are the same. Thus, for each rectangle of intersecting the -neighborhood of , we compute which is a union of all rectangles from for which . Then we obtain by taking their intersection. Whether a rectangle of intersects the -neighborhood can be determined independent of the size . Lastly, we check if the union of for all guards covers . We remark that all intersection and union operations can be performed efficiently because by Claim 19(b) all visibility polyominoes only consist of rectangles in . This concludes the membership proof.
Now, we turn our attention to the NP-hardness. We demonstrate that the NP-hard problem of finding a vertex cover in an orthogonal embedding of a graph G reduces to finding a k-restless guard set in a polyomino P. The polyomino P is obtained by thickening G, using the gadgets from Figure 26. Throughout the proof, we refer to various regions of P as indicated and labeled in the figure.
The analysis of our reduction is slightly more involved than the reduction by Biedl and Mehrabi [8] because some of our gadgets need a ‘ground set’ of guards that are always required; we refer to the cardinality of this set as MIN.
Note that this number of guards only suffices if all incoming corridors are already guarded from somewhere else, otherwise MIN +1 guards are required.
Restless Guards


(a)

(b)


(c)

(d)
Figure 26 The gadgets used for reducing from the minimum vertex cover problem. The corridors connect the other gadgets. (a) A corridor. (b) A corner gadget. (c) A tunnel gadget. (d) A junction gadget. For all gadgets replacing a vertex of G, we depict two different guard placements. Gray guards are sufficient if all connecting corridors are already guarded; otherwise, the outlined guards see the respective gadget, as well as all corridors connected to it.
More formally, let be a gadget in P. We use MIN to assign a value to every vertex gadget based on the gadget type:
We define OFFSET as the sum of all gadget values in . We split the remaining proof into several claims.
▷ Claim 26. There exists a vertex cover of size for if and only if the polyomino can be guarded with many -restless guards.
In Figure 26, the gray gadgets overlap with the blue corridors in light blue rectangular regions. We refer to the gray part of the gadgets as the gadget's core, to the light blue regions as the overlap, and we call the union of both the gadget. We say that a k-restless guard is fully contained within a polyomino if its k-neighborhood is a subset of .
▷ Claim 27. Every gadget can be guarded by many k-restless guards, and its core by .
Proof. Corresponding guard placements are indicated in Figure 26 for the three gadgets; there are many k-restless guards that see the gadget's core (highlighted in dark gray), and outlined guards that see the gadget's core as well as all connecting corridors.
▷ Claim 28. Let be a gadget in and let be a k-restless guard set for . Then contains at least guards that are fully contained within .
Proof. The statement is clear for corner gadgets, as . For the other gadgets, refer to Figure 26 for the cells labeled and . In tunnel gadgets, we note that is contained within , and thus a k-restless guard that sees it must be fully contained within it as well. For junction gadgets, similar reasoning applies: The visibilities of both cells labeled have the same property. Additionally, as both visibility polyominoes are distinct, two separate k-restless guards are required.
▷ Claim 29. Let C be a corridor in P, and let S be a k-restless guard set for P. Then there exists a k-restless guard in S that sees C. Also, every guard that sees C is fully contained within C.
Proof. By construction, there is a cell in the corridor that is not part of any gadget overlap. As coincides with , it implies that if a -restless guard sees (and at least one guard in must do so), its -neighborhood is contained in . Moreover, since is a rectangle, every cell is seen from any position within , implying that sees .
▷ Claim 30. Let be a gadget in and let be a -restless guard set for . Furthermore, let be the subset of guards that are fully contained within . Then, if a guard sees a corridor, we have .
Proof. The statement is trivially true for corners: Once any guard is fully contained in a corner, we already have guards.
For tunnels and junctions, we observe that, by Claim 29, the guard is fully contained in a (light-blue) overlap. In tunnels, either or remains unseen by ; consequently, a second -restless guard is necessary to guard the gadget . Similarly, in junctions there exist two cells that are not seen by and whose visibility polyominoes are distinct, implying that they cannot be covered by the same -restless guard. In Figure 26, we indicate such possible cell positions; when sees the corridor , the two associated cells are labeled .
We are now ready to prove Claim 26.
Proof of Claim 26. We show both directions separately. Let be a vertex cover of size for . We use Claim 27 to guard by placing many -restless guards for every vertex that is part of the vertex cover , and many -restless guards for the other vertices to guard the corresponding gadgets; in total, this guards the entire polyomino.
Now, let be a -restless guard set for . Given , we construct a vertex cover for as follows. As argued in Claim 29, every corridor in fully contains a -restless guard . We distinguish two cases: (1) If is fully contained in the overlap of a gadget, we add the associated vertex to the vertex cover . (2) Otherwise, we arbitrarily choose one of the incident vertices in , and add it to . After considering all corridors, necessarily constitutes a vertex cover of .
It remains to show that . To this end, we apply Claim 28 to account for guards contained in every gadget in . Altogether, this identifies OFFSET many different guards in . What remains is to identify another -restless guard for every vertex in . For this, consider the following case distinction: If was added in Case (1), it follows that a guard was fully contained in the overlap of the corresponding gadget. In this case, Claim 30 ensures that there is another -restless guard fully contained in the gadget, and this guard has not yet been accounted for in OFFSET. Otherwise, if arose from Case (2), then the guard in question was located within a corridor, and was therefore not fully contained in a gadget. Clearly, OFFSET does not include this guard either. Repeating this reasoning for every vertex in yields at least additional -restless guards in . Therefore, contains at least -restless guards.
Claims 26–30 together with the aforementioned construction of P from a given embedding of G concludes the proof.
◀
Restless Guards
D Omitted details for Section 6
In this section, we present the details for the proofs in Section 6, namely for Lemma 8, Theorem 9, Corollary 11 and Lemma 16.
D.1 A crucial tool for lower bounds
We now present the general proof for Lemma 8 that not only works in histograms, but also for embedded histograms.
▶ Lemma 8 (★). Let be a histogram (possibly embedded in a hole-free polyomino ), and be two cells in with , and be the horizontal set of cells from to . If a -restless guard (in ) sees both and , then .
In particular, if , then no k-restless guard can see both c and .

Figure 27 Illustration for the proof of Lemma 8: If S contains a cell x not contained in the histogram H and a guard g sees both c and , we can find an outer cell o that is enclosed by paths of cells in P both above and below, implying that P is not hole-free.
Proof. Without loss of generality, we assume that is upwards, as visualized in Figure 27. For the sake of contradiction, suppose that there exists a cell in that is not contained in . We identify an outer cell of not above as follows: If is an outer cell, we set . Otherwise, we pick the first outer cell of directly below . Since the top outer dents of an embedded histogram are adjacent to outer cells, the outer cell always lies above .
Note that is placed in a position above ; otherwise blocks the vision to or . Because sees both and , there exists a path inside from over to through and above . However, and are also connected by a path through the histogram which lies below . Therefore, is enclosed by cells of which implies that has a hole, a contradiction to the hole-freeness of .
D.2 On optimally k-restless guarding histograms
We now provide the details on optimally k-restless guarding histograms.
▶ Theorem 9 (★). There exists an algorithm that, given any histogram H with n vertices and any , computes an optimal k-restless guard set in time polynomial in the number of vertices of H, or decides that H is not k-restless guardable.
Proof. We start by explaining our strategy. First, we partition H into maximal horizontal strips and merge all vertically adjacent strips of equal width. This yields a partition of H into rectangles, which we refer to as blocks. For an illustration, consult Figure 28. Note that the number of blocks is at most ; the top edge of each block is incident to at least two vertices. Because blocks are enclosed by outer cells to the left and right, blocks are either disjoint or vertically adjacent. These adjacencies yield an adjacency graph T of all blocks in H, where edges are directed upwards. Note that by the histogram structure, T is a rooted tree, and the root corresponds to the block containing the histogram base. The extension of a block B is the rectangle obtained by extending B vertically to the histogram base. In every block, we select one cell that is adjacent to an outer cell to its top. We refer to this cell as the block's key cell.

Figure 28 Optimally k-restless guarding a histogram H is based on a partition into rectangular blocks (highlighted in orange) that form a rooted tree T. The extension of a block reaches down to the histogram base, as outlined for block B in dashed lines. Each block is assigned a key cell within the respective block, visualized in yellow.
We establish the following key lemma.
▶ Lemma 31. The blocks seen by a k-restless guard induce a directed path in T.
We show the lemma with the help of three claims.
▷ Claim 32. If a k-restless guard g sees the key cell a of block B, then its k-neighborhood lies in the extension of B.
Proof. We notice that , as is enclosed by outer cells to the left and right and the adjacent outer cell above restricts the visibility to the top. Let . Because sees , we have and by symmetry .
▷ Claim 33. A k-restless guard g sees a block B if and only if it sees its key cell a.
Proof. Clearly, if sees , this includes . If sees then, by Claim 32, is contained in the extension of . Because is contained in , for each cell , we have . Thus sees each cell of .
▷ Claim 34. If a k-restless guard g sees two different blocks and , there exists a directed path in T between them. Moreover, g sees all blocks on .
Proof. We illustrate the proof in Figure 29. Let denote the key cell of . By Lemma 8, and have different vertical positions; otherwise and belong to the same block, a contradiction. Let denote the cell further to the top. Let be the cell at the -position of and the -position of . By Lemma 8, the horizontal strip from to is contained in . This means that also lies in . Moreover, because is a histogram, the vertical
Restless Guards
strip V from c to is contained in H. Consequently, there exists a sequence of blocks intersecting V that are vertically adjacent and therefore form a directed path from to in T.
It remains to argue that sees each block on . By Claim 32, lies in the intersection of both extended blocks . By the structure of histograms and the fact that is a block between and , is contained in the extension of . Therefore, sees every cell of .

Figure 29 Proving Claim 34: If a k-restless guard sees the blocks and , we know that the strips that connect the respective key cells and with are contained in , implying that there is a directed path in . Also, the k-neighborhood of the guard must be contained in .
Now, Claim 34 immediately implies the lemma.
Proof of Lemma 31. Claim 34 implies that any two seen blocks are in child-parent relationship. Moreover, all blocks on their path are seen. Note that this also covers the cases where a k-restless guard only sees a single block or no block in H.
We now explain how to compute a k-restless guard set for a histogram . By Lemma 31, guarding translates to covering the rooted tree by a minimum number of paths induced by all k-restless guards. To this end, we first identify the set of paths in . We can test the existence of a path between two blocks and of in child-parent relationship as follows. Let and be the key cells of and , respectively. By Lemma 4, we can check whether and can be seen by a k-restless guard in polynomial time, and identify a suitable guard if one exists. This gives a trivial upper bound of at most pairs to check. As we are only interested in maximal paths, this can be pruned, e.g., to pairs with binary search. Hence, we may assume that we are given a tree and a polynomial number of paths in .
Now that we identified all directed paths in T, we can cover T. We use the following strategy: In T, we mark each block to be either guarded or unguarded. Initially, all blocks are unguarded. We also maintain an initially empty guard set G and an initially empty set of key cells A. While it exists, we select an unguarded block B in T whose children are already guarded (or B is a leaf). Then, we choose a path seeing B which comes closest to the root of T. We add the corresponding guard g to G and the key cell of B to A. If no such path exists, B was not guardable, and hence we return that H cannot be k-restless guarded. We mark all blocks on that path as guarded.
It remains to show correctness. The fact that G is a valid guard set follows from Lemma 31 and the fact that by construction, each vertex of T is covered by a path.
For minimality, we show that no two key cells in A can be guarded by the same k-restless guard, i.e., A is a witness set. Then, any guard set requires at least guards and the fact that implies optimality.
For the sake of a contradiction, suppose there exists a k-restless guard g that sees two different key cells a and in A. By Claim 34, a and lie on a directed path in T. Without loss of generality, let a denote the key cell of the block closer to the root in T. Note that was added to A before a because it lies in a subtree of a. When handling , we added a guard to G that sees and maximizes the number of seen blocks in root direction. As a is added to A, it remains unguarded after is added. However, g sees both a and and therefore reaches further to the root than . Therefore, g would have been chosen instead of , a contradiction. This proves the theorem.
D.3 A 2-approximation for 0-restless guarding polyominoes
We now show how a simple observation allows us to approximate 0-restless guard sets for hole-free polyominoes.
▶ Lemma 10 (★). Let be a point guard in a polyomino . We can efficiently identify two 0-restless guards and such that covers the visibility region of .
Proof. If the point guard p lies in the interior of a cell, we replace it by a 0-restless guard g at the same location; note that their visibility regions coincide. If p lies at the boundary of a cell, we split the visibility region of p along the bisector coinciding with the boundary; without loss of generality vertical. Because the visibility polygons are star-shaped, the resulting polyominoes are histograms that have a single left or right outer dent, respectively. In Figure 30 these are marked with a bold line.

Figure 30 The visibility region of a point guard can be split into two histograms that can be guarded with a single 0-restless guard each.
Placing a 0-restless guard on the base of each histogram such that it sees the outer dent guards the respective histogram. Hence, the visibility region of p is covered by two 0-restless guards. Note that the same arguments hold if p lies on a grid point.
D.4 From embedded histograms to hole-free polyominoes
We provide details on combining guard sets for embedded histograms to entirely guard hole-free polyominoes, while introducing an additional approximation factor of five.
▶ Lemma 16 (★). An -approximation for computing k-restless guard sets for embedded histograms yields a -approximation for k-restless guarding hole-free polyominoes.
Proof. This lemma extends a result of Lingas, Wasylewicz, and Żyliński [29], which is in turn based on a linear-time partition of hole-free orthogonal polygons into a set of histograms presented by Levcopoulos [28], as described in Theorem 12 and visualized in Figure 31.
Restless Guards

Figure 31 Partitioning a polyomino into histograms, with red being the starting edge.
In this decomposition, Lingas, Wasylewicz, and Żyliński [29] observe that the visibility region of a point guard intersects at most five histograms. In Figure 31, the visibility region of a guard g that intersects five histograms is highlighted in blue. We observe that this property equally applies to 0-restless guards in polyominoes, as (1) polyominoes are orthogonal polygons, and (2) 0-restless guards (and therefore k-restless guards) see no more than a point guard at the same position. We also note that (as argued in the proof of Theorem 12) all histograms resulting from Levcopoulos's partition are embedded histograms.
Let be an -approximation that computes a -restless guard set for a given embedded histogram. We obtain a -approximation for hole-free polyominoes as follows. By Lemma 13, we obtain a partition of into a set of embedded histograms . We then run on every and return the union of all derived -restless guard sets.
Let be a minimum guard set for and a minimum set of guards in for guarding the subset . Moreover, let denote the set of guards in that help to guard , i.e., see at least one cell of . By the above discussion, each guard appears in at most 's, i.e., . Moreover, is a valid guard set of and hence, . Together, this yields the following chain of inequalities:
This completes the proof.
E Omitted details for Section 7
We now fix k = 1 and give all details for proving Theorem 17.
▶ Theorem 17 (★). For any constant , there exists a -approximation algorithm that, given a hole-free polyomino , computes a 1-restless guard set in time polynomial in the number of vertices of .
Proof. We refine the proof of Theorem 12 by using the fact that . As before, we use Lemma 13 to partition the polyomino into embedded histograms, and apply Lemma 15 to approximate a minimum guard set on every embedded histogram. Let OPT denote the number of guards in an optimal solution. The main insight is that for , we can easily improve the maximum number of placed guards from (for arbitrary ) to for . The approximation factor then depends on the worst ratio between OPT and , which is 3 for the case OPT = 1. However, by checking all possible combinations of guard placements up to a fixed cardinality and preferring such optimal guardings over the approximation, we can decrease the approximation factor as close as desired to factor 2, while retaining polynomial runtime. Because the generalization from embedded histograms to hole-free polyominoes introduces a factor 5 by Lemma 16, we obtain a -approximation algorithm for every .
It remains to show that an embedded histogram H can be 1-restless guarded with at most guards, in polynomial time. As in the proof of Lemma 15, we partition H into the sets T, B, and R, see also Figure 32. While we use the fact that R can be 1-restless

Figure 32 Illustration for the proof of Theorem 17 – a simplification of our techniques for k = 1. We use that the base B is a single strip and T consists of embedded histograms of width at most 2.
guarded with at most OPT guards as before, we present improvements for the sets B and T. In particular, we show that B is always guardable by a single 1-restless guard, and that T can be guarded optimally, i.e., with at most OPT guards. In total, we thus place 1-restless guards which together guard H. Let n denote the number of vertices of P.
▷ Claim 35. We can identify a single 1-restless guard which sees B in time linear in n.
Proof. Note that for , is exactly the histogram's base. Let be the set of all cells one position above . It is easy to see that if contains no outer cell, placing a 1-restless guard anywhere on guards entirely. If contains an outer cell (as in Figure 32), placing a 1-restless guard on right below this outer cell guards entirely.
It remains to show that an optimal 1-restless guard set of T can be computed in time polynomial in n. Note that for k = 1, T consists only of embedded histograms of width 1 or 2. Hence it suffices to show in the following Claim 37 that we can optimally 1-restless guard each of these histograms in polynomial time. By Lemma 8, all these histograms require separate guards, allowing us to combine all k-restless guards for the single embedded histograms to optimally guard their union T.
To guard embedded histograms of width 1 or 2, we start with some definitions. For an embedded histogram of width 2, let denote the union of all rows of width 2 and let I be . We know that is adjacent to at least one outer cell o to its top; without loss of generality, we assume o to be at the left side (of both possible positions) in the following proofs. We illustrate this setting in Figure 33.
▷ Claim 36. We can identify a 1-restless guard in P that sees both and the longest possible substrip of I from its bottom cell in time polynomial in n.
Proof. We first show that we can always place a 1-restless guard that sees . We find such a position on the vertical strip of cells in below o; if is adjacent to an outer cell to its left, we place the guard next to it, otherwise we place it directly below o. Note that this also works if has a height of 1 or 2 because H has an inside base or bordered base.
Restless Guards

Figure 33 Terminology and details on guarding an embedded histogram H of width 2. We note that a guard that sees both cell b and c also sees all cells in between, including all cells in .
If I = , this already identifies a suitable guard. If I , we denote the bottom left cell in by b. Let c be a cell in I. We show that a 1-restless guard g sees both b and c exactly if it sees and all cells in I not above c.
First, if sees and all cells in I not above , this includes and . Now, in the case where sees and , let be a 0-restless guard in the 1-neighborhood of . The outer cell restricts the possible placements of (that sees both and ); must be both to the right and below . Now, combining that , , and are contained in , it follows that sees and all cells in I below , as visualized in Figure 33.
With this statement, we can now use Lemma 4 and perform a (binary) search to find the maximum number of cells in I that can be guarded together with . As also argued in Lemma 14, we know by Proposition 3 that we only need to search among interesting cells. This concludes the proof.
We use Claim 36 to show the following.
▷ Claim 37. For an embedded histogram H of width at most 2, an optimal 1-restless guard set can be computed in time polynomial in n.
Proof. Clearly, if has width 1, it can be optimally guarded using the interval cover strategy from Lemma 14. If has width 2, we apply Claim 36 and identify a guard that sees and the largest number of cells from I starting from the bottom. Let be the cells not yet guarded. We guard using the interval cover strategy from Lemma 14 and derive the guard set .
We show that is an optimal guard set for . Otherwise there exists a guard set of with . Because needs guards, every guard in sees some private cell in . Note that a guard seeing a (private) cell and a cell , also sees every cell in below : Either lies below and hence contains or contains . Consequently, there exists a unique guard in that sees a cell of , otherwise contains guards without a private cell in . In particular, sees all of and some cells in , such that guards suffice to cover the remainder of . By our choice of , . Hence, guards suffice for , a contradiction.
With these improvements, embedded histograms can be guarded with at most 1-restless guards, which can be turned into a -approximation for hole-free polyominoes, as described at the beginning of the proof.