Keywords

1 Introduction

The Set Cover and Independent Set problems are two well-studied problems in many fields. In the Set Cover problem, we are given a set of points and a set of geometric objects such that their union contains the set of points, and the goal is to find a minimum cardinality collection of objects that covers all of the given set of points. In the Independent Set problem, we are given a set of objects and seek a maximum cardinality subset of objects that are pairwise non-intersecting. The Dominating Set problem is a variation of the Set Cover problem in which we are given a set of objects and seek a minimum cardinality subset of objects such that every object has a non-empty intersection with one of the chosen objects.

In this paper, we study variations of the Set Cover, Independent Set, and Dominating Set problems. We are given m axis-parallel line segments that induce a planar subdivision \(\mathcal {P}\) with a set F of n bounded rectilinear faces. Further, we consider each bounded face to be a closed region, i.e. including the boundary. We formally define these problems as follows.

figure a
figure b
figure c

A special case of the Stabbing-Subdivision problem has an application to the art gallery problem [4]. Suppose a rectangular art gallery is given. The gallery is subdivided into rectangular rooms. The art gallery problem seeks to find the fewest guards (points) so that every room (face) is protected (stabbed) by a guard point. This problem is precisely the Stabbing-Subdivision problem in which the input faces are all rectangular. More generally, we consider the case of rectilinear rooms (the original input of the Stabbing-Subdivision problem), not just rectangular rooms, and ask the same question, to find the fewest guards to protect all of the rectilinear rooms.

In this paper, we sometimes use the term “rectangle” and “rectangular face” (of a subdivision) interchangeably.

1.1 Previous Work

The Set Cover, Independent Set, and Dominating Set problems are \(\mathsf { NP }\)-hard for simple geometric objects such as disks [5], squares [5], rectangles [5], etc. There is a long line of research of these problems and its various variants and special cases [1,2,3, 7, 10, 12,13,14,15].

Recently, Korman et al. [9] studied an interesting variation of the Set Cover problem, the Line-Segment Covering problem. In this problem, they cover all the cells of an arrangement formed by a set of line segments in the plane using a minimum number of line segments. They showed that the problem is NP-hard, even when all segments are axis-aligned. In fact, they also proved that it is \(\mathsf { NP }\)-hard to cover all rectangular cells of the arrangement by a minimum number of axis-parallel line segments.

In [6], Gaur et al. studied the rectangle stabbing problem. Here given a set of rectangles, the objective is to stab all rectangles with a minimum number of axis-parallel lines. They provided a 2-approximation for this problem.

Czyzowicz et al. [4] considered the guarding problem in rectangular art galleries. They showed that if a rectangular art gallery divided into n rectangular rooms, then \( \lceil n/2\rceil \) guards are always sufficient to protect all rooms in that rectangular art gallery. They also extend their result in non-rectangular galleries and 3-dimensional art galleries [4].

1.2 Our Results

In this paper, we present the following results.

  • We first prove that the Stabbing-Subdivision problem is \(\mathsf { NP }\)-hard when we stab all the rectangular faces of the subdivision. Next, we show that the Stabbing-Subdivision problem is \(\mathsf { NP }\)-hard. Further, we provide a 2.083-approximation and a \(\mathsf {PTAS}\) for this problem. (Sect. 2)

  • We prove that the Independent-Subdivision problem is \(\mathsf { NP }\)-hard when we consider only the rectangular faces. Then we prove that the Independent-Subdivision problem is \(\mathsf { NP }\)-hard. (Sect. 3)

  • We prove that the Dominating-Subdivision problem is \(\mathsf { NP }\)-hard by considering only the rectangular faces. Next, we prove that the Dominating-Subdivision problem is \(\mathsf { NP }\)-hard. (Sect. 4)

2 Stabbing-Subdivision

2.1 \(\mathsf { NP }\)-hardness

We first prove that the Stabbing-Subdivision problem is \(\mathsf { NP }\)-hard when we are restricted to stab only rectangular faces of the subdivision. Next, we modify the construction to show that the Stabbing-Subdivision problem is \(\mathsf { NP }\)-hard. We give a reduction from the Rectilinear Planar 3SAT (RP3SAT) Problem. Lichtenstein [11] proved that the Planar 3SAT problem is \(\mathsf { NP }\)-complete. Later, Knuth and Raghunathan [8] showed that every Planar 3SAT problem can be expressed as an RP3SAT problem. We define the RP3SAT problem as follows. We are given a 3-SAT formula \(\phi \) with n variables \(x_1, x_2, \ldots , x_n\) and m clauses \(C_1, C_2, \ldots , C_m\) where each clause contains exactly 3 literals. For each variable or clause take a rectangle. The variable rectangles are placed on a horizontal line such that no two of them intersect. The clause rectangles are placed above and below this horizontal line such that they form a nested structure. The clause rectangles connect to the variable rectangles by vertical lines such that no two lines intersect. The objective is to decide whether there is a truth assignment to the variables that satisfies \(\phi \). See Fig. 1(a) for an instance of the RP3SAT problem.

Fig. 1.
figure 1

(a) An instance of the RP3SAT problem. We only show the clauses which connect to the variables from above. The solid (resp. dotted) lines represent that the variable is positively (resp. negatively) present in the corresponding clauses. (b) Structure of a variable gadget.

Variable gadget: The gadget of \(x_i\) consists of \(8m+4\) vertical and 4 horizontal line segments. See Fig. 1(b) for the construction of the gadget. The 4 segments \(v_1, v_4, h_1\), and \(h_4\) together form a rectangular region R. Next, the 2 vertical segments \(v_2\) and \(v_3\) partition R vertically into 3 rectangles \(R_1\), \(R_2\), and \(R_3\). Further, two horizontal segments \(h_{2}\) and \(h_{3}\) partition \(R_2\) horizontally into three rectangles \(R_4\), \(R_5\), and \(R_6\). Finally, the 4m vertical segments \(l_1, l_2, \ldots , l_{4m}\) partition \(R_4\) vertically into \(4m+1\) small rectangles \(r_1,r_2,\ldots ,r_{4m+1}\). Similarly, the 4m vertical segments \(l_{4m+1}, l_{4m+2}, \ldots , l_{8m}\) partition \(R_6\) vertically into \(4m+1\) small rectangles \(r_{4m+2},r_{4m+3},\ldots ,r_{8m+2}\). Finally we have the total of \(8m+5\) rectangles \(R_1, R_3, R_5, r_1,r_2, \ldots , r_{8m+2}\) inside R. Clearly, these rectangles except \(R_5\) form a cycle of size \(8m+4\). Observe that any point along the cycle can stab at most two consecutive regions. Therefore there are two optimal solutions \(P^i_1=\{p_1,p_3,\ldots ,p_{8m+3}\}\) and \(P^i_2=\{p_2,p_4,\ldots ,p_{8m+4}\}\) each of size \(4m+2\) (Note that these points are not as a part of the input, they are one set of canonical points.). These two solutions are corresponding to the truth value of \(x_i\).

Clause gadget: The gadget for clause \(C_{\alpha }\) consists of a single rectangle \(r_{\alpha }\) that is formed by four line segments. The rectangle \(r_{\alpha }\) can be interpreted as the same rectangle as \(C_{\alpha }\) in the RP3SAT-problem instance.

Interaction: Now we describe how the clause gadgets interact with the variable gadgets. Observe that the description for the clauses which connect to the variables from above are independent with the clauses which connect to the variables from below. Therefore, we only describe the construction for the clauses which connect to the variables from above. Let \(C^i_1, C^i_2, \ldots , C^i_\tau \) be the left to right order of the clauses which connect to \(x_i\) from above. Then we say that \(C^i_k\) is the kth clause for \(x_i\). For example, \(C_3\), \(C_2\), and \(C_4\) are the 1st, 2nd, and 3rd clause for the variable \(x_4\) in Fig. 1(a). Let \(C_\alpha \) be a clause containing the variable \(x_i, x_j,x_t\). We say that clause \(C_\alpha \) is the \({k_1}\), \({k_2}\), and \({k_3}\)th clause for variable \(x_i\), \(x_j\), and \(x_t\) respectively based on the above ordering. For example, \(C_3\) is the 3rd, 1st, and 1st clause for variable \(x_2\), \(x_3\), and \(x_4\) respectively in Fig. 1(a). Let \(r_\alpha \) be the rectangle corresponding to \(C_\alpha \). Now we have the following cases.

  • If \(x_i\) appears as a positive literal in \(C_\alpha \), then extend the 3 segments \(l_{4k_1-3}\), \(l_{4k_1-2}\), and \(l_{4k_1-1}\) vertically upward such that it touches the bottom boundary of \(r_\alpha \). Move \(p_{4k_1-1}\) vertically upward to the bottom boundary of \(r_\alpha \).

  • If \(x_i\) appears as a negative literal in \(C_\alpha \), then extend the 3 segments \(l_{4k_1-2}\), \(l_{4k_1-1}\), and \(l_{4k_1}\) vertically upward such that it touches the bottom boundary of \(r_\alpha \). Move \(p_{4k_1}\) vertically upward to the bottom boundary of \(r_\alpha \).

Fig. 2.
figure 2

Variable clause interaction.

The similar construction can be done for \(x_j\) and \(x_t\) by replacing \(k_1\) with \(k_2\) and \( k_3\) respectively. The whole construction is shown in Fig. 2. Note that, we break the horizontal segment \(h_1\) in the variable gadgets into smaller intervals and shifted the intervals vertically along with the extension of the vertical lines. This completes the construction and clearly, it can be done in polynomial time.

Lemma 1

\(\phi \) is satisfiable if and only if there is a solution to the Stabbing-Subdivision problem to stab only rectangular faces with \(n(4m+2)\) points.

Proof

Assume that \(\phi \) is satisfiable i.e., we have a truth assignment of the variables in \(\phi \). Now consider a variable \(x_i\). If \(x_i\) is true, we select the set \(P^i_1\), otherwise we select the set \(P^i_2\). Clearly, the \(n(4m+2)\) selected points corresponding to all variable gadgets stab all the rectangular faces of the construction.

On the other hand, assume that Stabbing-Subdivision problem has a solution with \(n(4m+2)\) points. Observe that at least \((4m+2)\) points are needed to stab all the faces of a variable gadget. Since the rectangular faces of variable gadgets are disjoint from each other, exactly \((4m+2)\) points must be selected from each variable gadget. Now there are exactly two solutions of size \((4m+2)\), either \(P_1^i\) or \(P_2^i\). Therefore, we set variable \(x_i\) to be true if \(P_1^i\) is selected from the gadget of \(x_i\), otherwise we set \(x_i\) to be false. Note that for each clause \(C_\alpha \) the six faces corresponding to three literals it contains, touches the rectangle \(r_\alpha \). Since \(r_\alpha \) is stabbed, at least one of the selected points must be chosen in the solution. Such a point is either in one of the sets \(P^i_1\) or \(P_2^i\) of the corresponding variable gadget based on whether the variable is positively or negatively present in that clause. Hence, the above assignment is a satisfying assignment.    \(\square \)

Theorem 1

The Stabbing-Subdivision problem is \(\mathsf { NP }\)-hard for stabbing only rectangular faces of a subdivision.

The Stabbing-Subdivision problem for stabbing all rectilinear faces: We now prove that it is also \(\mathsf { NP }\)-hard to stab all (rectilinear) faces of a subdivision. To get this result, we modify the \(\mathsf { NP }\)-hardness result for the rectangular faces that is described above. Note that, after embedding the gadgets on the plane, the subdivision creates three types of faces, (i) the faces interior to a variable gadget (note that all variable faces are rectangular), (ii) rectangular faces associated with clause gadgets, and (iii) faces that are not included to any of (i) or (ii).

Note that, in the proof of the Lemma 1, we assume that the canonical points (set of \(4m+2\) points to stab \(8m+5\) rectangles in a variable gadget) are on the lines \(h_2\) and \(h_3\) (see Fig. 1(b)). However, in this case, we keep only one point either on \(h_2\) or on \(h_3\) (to stab the rectangle \(R_5\)) and out of the remaining points that are on \(h_2\) we shift them vertically upward to \(h_1\) and that are on \(h_3\) we shift them vertically downward to \(h_4\). Clearly, any outer face includes some variable canonical points. With this modification, it is immediate that the Lemma 1 is true even when we are intended to stab all the faces (rectilinear) of the subdivision.

2.2 Approximation Algorithms

Factor 2.083 Approximation. We are given m axis-parallel line segments that induce a planar subdivision \(\mathcal {P}\) with a set F of n bounded rectilinear faces. To provide the approximation algorithm, we transform any instance of the Stabbing-Subdivision problem into an instance of the Set Cover problem where the size of each set is at most 4. Observe that, there exists an optimal solution to the Stabbing-Subdivision problem that only contains vertices of \(\mathcal {P}\) (we can call them as corner points of F). Also, any corner point of F can stab at most 4 rectilinear faces in \(\mathcal {P}\).

We now create an instance of the Set Cover problem as follows. The set of elements is the set of all faces and the collection is all sets of faces corresponding to the corner points of F. Note that each set in the collection is of size at most 4, since any corner point can stab at most 4 faces. This Set Cover instance admits a 2.083 (\(H_4\) i.e., the harmonic series sum of the first 4 terms) factor approximation [16]. Hence we have the following theorem.

Theorem 2

There exists a 2.083 factor approximation algorithm for Stabbing-Subdivision problem in a planar subdivision by rectilinear line segments.

2.3 PTAS via Local Search Algorithm

In this section, we show that a local search framework [14] leads to a \(\mathsf {PTAS}\) for the Stabbing-Subdivision problem. We are given a planar subdivision with a set F of n bounded faces. Note that, we can choose points only from the vertex set V of the subdivision. Therefore, \(\mathcal{R}= (V, F)\) be the given range space. Clearly V is a feasible solution to the Stabbing-Subdivision problem. We apply the (k is a given parameter) as follows.

  1. 1.

    Let X be some feasible solution to the Stabbing-Subdivision problem (initially take X as V).

  2. 2.

    Do the following:

    1. (a)

      Search for \(X' \subseteq X\) and Y such that \( |Y| \subseteq V\), \(|Y| < |X'| \leqslant k\) and \((X \setminus X') \cup Y\) is a feasible solution.

    2. (b)

      If such \(X'\) and Y exist, update X with \((X \setminus X') \cup Y\) and repeat the above step. Otherwise, return X and stop.

It is easy to see that the running time of the algorithm is polynomial in n and k. Further, the local search algorithm always returns a local optimum solution. A feasible solution X is said to be a local optimum if no \(X'\) exists in Step 2(a) in the above algorithm. We show that given any \(\epsilon >0\), a \( O (1/\epsilon ^2)\)-level local search returns a hitting set of size at most \((1+ \epsilon )\) times an optimal hitting set for \(\mathcal R\).

\({\textit{Locality condition}}\) ([14]): A range space \(\mathcal R\) \( = (V, F)\) satisfies the locality condition if for any two disjoint subsets \(R, B \subseteq V \), it is possible to construct a planar bipartite graph \(G = (R \cup B, E)\) with all edges going between R and B such that for any \(f \in F\), there exist two vertices \(u \in f \cap R\) and \(v \in f \cap B\) such that edge \((u, v) \in E\).

Theorem 3

[14]. Let \(\mathcal R\) \(=(V, F)\) be a range space satisfying the locality condition. Let \(R \subseteq V\) be an optimal hitting set for F, and \(B \subseteq V \) be the hitting set returned by a k-level local search. Furthermore, assume \(R \cap B = \emptyset \). Then there exists a planar bipartite graph \(G = (R \cup B, E)\) such that for every subset \(B'\subseteq B\) of size at most k, \(|N_{G}(B')| \ge |B'|\) where \(N_{G}(W)\) denotes the set of all neighbours of the vertices of W in G.

The following lemma implies that given any \(\epsilon >0\), a k-level local search with \(\epsilon = \dfrac{c}{\sqrt{k}}\) gives a \((1 + \epsilon )\)-approximation for the Stabbing-Subdivision problem.

Lemma 2

[14]. Let \(G = (R \cup B, E)\) be a bipartite planar graph on red and blue vertex sets R and B, \(|R| \ge 2\), such that for every subset \(B' \subseteq B\) of size at most k, where k is a large enough number, \(|N_{G}(B')| \ge |B'|\). Then \(|B| \le (1 + \dfrac{c}{\sqrt{k}}) |R|\), where c is a constant.

\(\varvec{\mathsf {PTAS}}\) for the Stabbing-Subdivision problem: Let R (red) and B (blue) be disjoint subsets of the vertices in planar subdivision \(\mathcal {P}\) where R and B be an optimum solution and the solution returned by the k-level local search respectively. For simplicity, we assume that \(R \cap B= \emptyset \). Otherwise, we can remove the common elements from each of R and B, and then do a similar analysis. As we remove the same number of elements from both R and B, the approximation ratio of the original instance is at most the approximation ratio of the restricted one. We construct the required graph G on the vertices \(R \cup B\) in the following way. Since R and B are feasible solutions of the Stabbing-Subdivision problem, every face \(f \in F\) must contain at least one red and one blue point. We simply join exactly one pair of red and blue points by an edge for each face \(f \in F\). Clearly, the edge for a face \(f \in F\) lies completely inside f. Therefore G becomes a planar bipartite graph and hence \(\mathcal R\) satisfies the locality condition. Therefore, from Theorem 3 and Lemma 2, we say that the Stabbing-Subdivision problem admits a \(\mathsf {PTAS}\).

3 Independent-Subdivision

In this section, we prove that the Independent-Subdivision problem is \(\mathsf { NP }\)-hard by giving a reduction from the RP3SAT problem. The reduction follows the same line of the reduction presented in Sect. 2. We construct an instance I of the Independent-Subdivision problem from an instance \(\phi \) of the RP3SAT problem and prove that the construction is correct.

Variable gadget: The variable gadget is similar to the variable gadget that is described in the Sect. 2. See Fig. 3 for the construction of a variable gadget. The difference of this variable gadget from the gadget in the Sect. 2 is that we partition \(R_4\) into \(4m-2\) smaller rectangles \(r_1,r_2,\ldots ,r_{4m-2}\) and \(R_6\) into \(4m-2\) smaller rectangles \(r_{4m-1},r_{4m},\ldots ,r_{8m-4}\). Finally, we have the total of \(8m-1\) rectangles \(R_1, R_3, R_5, r_1,r_2, \ldots , r_{8m-4}\) inside R. Notice that, these rectangles except \(R_5\) form a cycle of size \(8m-2\). Therefore there are exactly two optimal solutions \(S^i_1=\{R_3, r_1,r_3,\ldots ,r_{4m-3}, r_{4m},r_{4m+2},\ldots ,r_{8m-4}\}\) and \(S^i_2=\{R_1, r_2,r_4,\ldots ,r_{4m-2}, r_{4m-1}, r_{4m+1},\ldots , r_{8m-5}\}\), each with size \(4m-1\). These two solutions are corresponding to the truth values of the variable \(x_i\).

Fig. 3.
figure 3

Structure of a variable gadget.

Clause gadget: The gadget of the clause \(C_\alpha \) includes 9 rectangles \(r_\alpha ^1, r_\alpha ^2, \ldots , r_\alpha ^9\) (see green rectangles in Fig. 4. The six rectangles \(r_\alpha ^4, r_\alpha ^5, \ldots , r_\alpha ^9\) are placed inside the rectangle of \(C_\alpha \) in the RP3SAT-problem instance and the other three rectangles \(r_\alpha ^1, r_\alpha ^2, r_\alpha ^3\) are corresponding to the three vertical legs between \(C_\alpha \) and the three variables it contains. Note that there is another rectangle present in the clause gadget bounded by the above 9 rectangles. However, this rectangle has no effect in the reduction, since picking this rectangle makes other 9 rectangles invalid (cannot be selected).

Interaction: Here also we describe the construction for the clauses that connect to the variables from above, since the construction is similar and independent from the clauses that connect to the variables from below. Let \(C_\alpha \) be a clause containing the variables \(x_i, x_j,x_t\). Also assume that this is the left to right order of these variables in which they appear in \(\phi \). Using the similar way as before (Sect. 2), we say that the clause \(C_\alpha \) is the \({k_1}\), \({k_2}\), and \({k_3}\)th clause for the variables \(x_i\), \(x_j\), and \(x_t\) respectively.

  • If \(x_i\) appears as a positive literal in the clause \(C_\alpha \), then attach the rectangle \(r_\alpha ^1\) to the rectangle \(r_{4k_1-3}\).

  • If \(x_i\) appears as a negative literal in clause \(C_\alpha \), then attach the rectangle \(r_\alpha ^1\) to the rectangle \(r_{4k_1-2}\).

The similar construction can be done for \(x_j\) by replacing \(r_\alpha ^1\) and \(k_1\) with \(r_\alpha ^2\) and \(k_2\) respectively and for \(x_t\) by replacing \(r_\alpha ^1\) and \(k_1\) with \(r_\alpha ^3\) and \(k_3\) respectively. The whole construction is depicted in Fig. 4. Clearly, the construction can be done in polynomial time. We now prove the correctness of the construction.

Fig. 4.
figure 4

Variable clause interaction.

Lemma 3

\(\phi \) is satisfiable if and only if there is a solution of size \(n(4m-1) +4m\) to Independent-Subdivision problem while considering only rectangular faces.

Proof

Assume that \(\phi \) has a satisfying assignment. For the variable \(x_{i}\), if \(x_{i}\) is true, select the set \(S^i_{2}\), otherwise select the set \(S^i_{1}\). Since each set is of cardinality \((4m-1)\), clearly we select \(n(4m-1)\) independent rectangles across all variable gadgets. Now let \(C_\alpha \) be a clause containing variables \(x_i, x_j,x_t\). Since \(C_\alpha \) is satisfiable at least one of the three rectangles \(r_\alpha ^1, r_\alpha ^2, r_\alpha ^3\) is free to choose in a solution. This implies we can select exactly 4 rectangles from the gadget of \(C_\alpha \). We can picked 4 rectangles independently from each clause gadget. Hence, in total we can select \(n(4m-1) +4m\) rectangles.

On the other hand, assume that the Independent-Subdivision problem has a solution S with \(n(4m-1)+4m\) rectangles. Note that for each variable gadget the size of an optimal independent set is \((4m-1)\), either the set \(S_1^i\) or \(S_2^i\). We set the variable \(x_i\) to be true if \(S_2^i\) is selected from the gadget of \(x_i\), otherwise we set \(x_i\) to be false. Now we have to show that this assignment is a satisfying assignment for \(\phi \) i.e., each clause of \(\phi \) is satisfied. Since the variable gadgets are independent, there are at most \(n(4m-1)\) rectangles from the variable gadgets belongs to S. Also since the size of the solution is \(n(4m-1)+4m\), from each clause gadget exactly 4 rectangles are is in S. Let \(C_\alpha \) be a clause containing variables \(x_i, x_j,x_t\). As there are 4 independent rectangles from the set \(\{r_\alpha ^1, r_\alpha ^2, \ldots , r_\alpha ^9\}\), so one must be from the set \(\{r_\alpha ^1, r_\alpha ^2, r_\alpha ^3\}\) that is in the given solution. W.l.o.g. let \(r_\alpha ^1\) be present, then surely \(x_{i}\) is a true variable as our assignment. Hence the above assignment is a satisfying assignment.    \(\square \)

Theorem 4

The Independent-Subdivision problem is \(\mathsf { NP }\)-hard by considering only rectangular faces of a subdivision.

The Independent-Subdivision problem for all rectilinear faces: We now prove that it is also \(\mathsf { NP }\)-hard to find a maximum independent set of rectilinear faces in a subdivision. After embedding the construction on the plane, the subdivision creates three types of faces, (i) The faces that are interior to a variable gadget, (ii) the faces associated with the clause gadgets, and (iii) any other faces that are not included in any of (i) or (ii).

Visualize that we are attaching each clause gadget one by one with the variable gadgets. Then each clause gadget creates two additional rectilinear faces, on both sides of the rectangle corresponding to the middle leg. Note that, each such face is adjacent with at least 4 clause rectangles and at least 4 variable rectangles. Therefore, picking one of these new faces to the optimal solution makes the solution size strictly less than the original. Therefore, even if we consider all rectilinear faces, Lemma 3 holds and so Theorem 4.

4 Dominating-Subdivision

In this section, we prove that the Dominating-Subdivision problem is \(\mathsf { NP }\)-hard. We give a reduction from the RP3SAT problem similar to Sect. 3.

We construct an instance I of the Dominating-Subdivision problem from an instance \(\phi \) of the RP3SAT problem and prove that the construction is correct.

Variable gadget: Variable gadgets are similar to the variable gadgets that are described in Sect. 2. The difference between this variable gadget and that of in Sect. 2 is as follows. We partition \(R_4\) into \(3m+1\) small rectangles \(r_1,r_2,\ldots ,r_{3m+1}\) and \(R_6\) into \(3m+1\) small rectangles \(r_{3m+4},r_{3m+5},\ldots ,r_{6m+4}\). We partition \(R_1\) into two rectangles \(r_{6m+6}\), \(r_{6m+5}\) and \(R_3\) into \(r_{3m+2}\), \(r_{3m+3}\). Next we take \(2m+2\) mutually independent rectangles \(s_1, s_2,\ldots ,s_{2m+2}\) inside \(R_5\) such that rectangle \(s_i\) touches the two regions \(r_{3i-2}\) and \(r_{3i-1}\), for \(1\le i\le 2m+2\). Finally we have a total of \(8m+8\) rectangles \(r_1, r_2,\ldots ,r_{6m+6}, s_1,s_2, \ldots , s_{2m+2}\) inside R. Figure 5 illustrate the construction of a variable gadget just described.

Fig. 5.
figure 5

Structure of a variable gadget.

Lemma 4

There exists exactly two optimal dominating sets of rectangles, \(D_{1}^i =\{r_1, r_4, \ldots , r_{6m+4}\}\) and \(D_{2}^i = \{r_2, r_5, \ldots , r_{6m+5}\}\), for the gadget of \(x_i\).

Proof

There is no rectangle that can dominate more than 4 rectangles. Since there are in total \((8m+8)\) rectangles, any dominating set cannot have size less than \((2m+2)\). Further, both \(D_{1}^i\) and \(D_{2}^i\), each of size \((2m+2)\), dominate all the faces of the subdivision and hence they are optimal solutions. Now we show that there is no other optimal solution.

Clearly, no rectangle of the form \(r_{3k}\) or \(s_k\) where \(1\le k \le (2m+2)\) can be a part of an optimal solution, since each of them dominates exactly 3 rectangles. As a result, any optimal solution contains only rectangles of the form \(r_{3k-1}\) or \(r_{3k-2}\), for \(1\le k \le (2m+2)\). Also, two rectangles, one of the form \(r_{3k-1}\) and other of the form \(r_{3k-2}\), together cannot be a part of an optimal solution.    \(\square \)

Clause gadget: The gadget for the clause \(C_\alpha \) is a rectangle \(r_\alpha \) (Fig. 6).

Interaction: Here we describe the construction for the clauses that connect to the variables from above. A similar construction can be done for the clauses that connect to the variables from below. As before, we interpret \(C_\alpha \) that contains variables \(x_i\), \(x_j\), and \(x_t\) as the \({k_1}\), \({k_2}\), and \({k_3}\)th clause for the variables \(x_i\), \(x_j\), and \(x_t\) respectively.

  • If \(x_i\) appears as a positive literal in the clause \(C_\alpha \), then we extend the rectangle \(r_{3k_1-1}\) vertically upward such that it touches the rectangle \(r_\alpha \).

  • If \(x_i\) appears as a negative literal in the clause \(C_\alpha \), then we extend the rectangle \(r_{3k_1-2}\) vertically upward such that it touches the rectangle \(r_\alpha \).

We make the similar construction for \(x_j\) and \(x_t\) by replacing \(k_1\) with \(k_2\) and \(k_3\) respectively. The whole construction is depicted in Fig. 6. Clearly, the construction can be done in polynomial time. We now prove the correctness.

Fig. 6.
figure 6

Variable clause interaction.

Lemma 5

\(\phi \) is satisfiable if and only if there is a solution of size \(n(2m+2)\) to the Dominating-Subdivision problem while considering only rectangular faces.

Proof

Assume that \(\phi \) is satisfiable i.e., we have a truth assignment to the variables of \(\phi \). For the variable \(x_i\), if \(x_i\) is true we select the set \(D^i_2\), otherwise we select the set \(D^i_1\). Clearly, the \(n(2m+2)\) selected rectangles corresponding to all the variable gadgets dominate all the rectangular faces of the subdivision.

On the other hand, assume that the Dominating-Subdivision problem has a solution with \(n(2m+2)\) rectangles. Observe that at least \((2m+2)\) rectangles are needed to dominate all the rectangular faces of a variable gadget. Since the rectangular faces of variable gadgets are disjoint from each other and the size of the solution is \(n(2m+2)\), from each variable gadget exactly \((2m+2)\) rectangles must be selected. Therefore, we set variable \(x_i\) to be true if \(D_2^i\) is selected from the gadget of \(x_i\), otherwise we set \(x_i\) to be false. Note that for each clause \(C_\alpha \) the three rectangles corresponding to the three literals it contains attach to the rectangle \(r_\alpha \). Since \(r_\alpha \) is dominated, at least one of these three rectangles is chosen in the solution. Such a rectangle is either in \(D^i_2\) or \(D_1^i\) of the corresponding variable gadget based on whether the variable is positively or negatively present in that clause. Hence, the above assignment is a satisfying assignment.    \(\square \)

Theorem 5

The Dominating-Subdivision problem is \(\mathsf { NP }\)-hard when we are constrained to dominate all the rectangular faces of a subdivision.

Fig. 7.
figure 7

Modified variable gadget.

The Dominating-Subdivision problem for all rectilinear faces: We only modify the variable gadgets such that it has exactly two distinct optimal solutions and the rest of the construction and the proofs remain the same. We take \(2m+2\) rectangles \(b_1,b_2,\ldots ,b_{2m+2}\). We place the rectangle \(b_i\) in between the rectangles \(r_{3i-2}\) and \(r_{3i-1}\), for \(1\le i\le 2m+2\) of the variable gadget shown in Fig. 5 (see Fig. 7). These additional rectangles enforce not to choose \(R_5\) in an optimal solution. Now it is easy to verify that the Lemma 4 remains true for this modified gadget even when we consider all the bounded faces of the subdivision.