Next Article in Journal
Deep Learning Models for Yoga Pose Monitoring
Next Article in Special Issue
Evolutionary Algorithm-Based Iterated Local Search Hyper-Heuristic for Combinatorial Optimization Problems
Previous Article in Journal
Image-to-Image Translation-Based Data Augmentation for Improving Crop/Weed Classification Models for Precision Agriculture Applications
Previous Article in Special Issue
Application of the Tomtit Flock Metaheuristic Optimization Algorithm to the Optimal Discrete Time Deterministic Dynamical Control Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Domination and Independent Domination in Extended Supergrid Graphs †

by
Jong-Shin Chen
1,
Ruo-Wei Hung
2,*,
Fatemeh Keshavarz-Kohjerdi
3 and
Yung-Fa Huang
1,*
1
Department of Information and Communication Engineering, Chaoyang University of Technology, Wufeng, Taichung 413310, Taiwan
2
Department of Computer Science and Information Engineering, Chaoyang University of Technology, Wufeng, Taichung 413310, Taiwan
3
Department of Mathematics and Computer Science, Shahed University, Tehran 3319118651, Iran
*
Authors to whom correspondence should be addressed.
The partial results of this paper have appeared in the 21st International Conference on Computational Science and Its Applications (ICCSA’2021), LNCS 12949, Cagliari, Italy, 13–16 September 2021; Volume 1, pp. 631–646.
Algorithms 2022, 15(11), 402; https://doi.org/10.3390/a15110402
Submission received: 9 October 2022 / Revised: 27 October 2022 / Accepted: 29 October 2022 / Published: 30 October 2022
(This article belongs to the Collection Feature Paper in Metaheuristic Algorithms and Applications)

Abstract

:
Supergrid graphs are derived by computing stitch paths for computerized embroidery machines. In the past, we have studied the Hamiltonian-related properties of supergrid graphs and their subclasses of graphs. In this paper, we propose a generalized graph class for supergrid graphs called extended supergrid graphs. Extended supergrid graphs include grid graphs, supergrid graphs, diagonal supergrid graphs, and triangular supergrid graphs as subclasses of graphs. In this paper, we study the problems of domination and independent domination on extended supergrid graphs. A dominating set of a graph is the subset of vertices on it, such that every vertex of the graph is in this set or adjacent to at least a vertex of this set. If any two vertices in a dominating set are not adjacent, this is called an independent dominating set. Domination and independent domination problems find a dominating set and an independent dominating set with the least number of vertices on a graph, respectively. The domination and independent domination set problems on grid graphs are known to be NP-complete, meaning that these two problems on extended supergrid graphs are also NP-complete. However, the complexities of these two problems in other subclasses of graphs remain unknown. In this paper, we first prove that these two problems on diagonal supergrid graphs are NP-complete, then, by a simple extension, we prove that these two problems on supergrid graphs and triangular supergrid graphs are also NP-complete. In addition, these two problems on rectangular supergrid graphs are known to be linearly solvable; however, the complexities of these two problems on rectangular triangular-supergrid graphs remain unknown. This paper provides tight upper bounds on the sizes of the minimum dominating and independent dominating sets for rectangular triangular-supergrid graphs.

1. Introduction

For a graph G, we denote the vertex and edge sets of G as V ( G ) and E ( G ) , respectively. Let v be a vertex of V ( G ) , and let S be a subset of V ( G ) . We denote the subgraph induced by S as G [ S ] . The degree of vertex v in G is denoted by d e g G ( v ) , which represents the number of edges incident with v in G. The set of neighbors of a vertex v in G is denoted by N G ( v ) = { u V ( G ) | ( u , v ) E ( G ) } and N G [ v ] = N G ( v ) { v } . The neighborhood set of vertex set S in G is defined as N G ( S ) = v S N G ( v ) S and N G [ S ] = N G ( S ) S . Let D V ( G ) ; a set D is said to dominate vertex v if N G [ v ] D . In addition, we can say that vertex v dominates its neighbors and itself. We say that D dominates S when D dominates every vertex of set S. If D dominates V ( G ) , set D is said to be a dominating set of G. The domination number of a graph G, expressed as γ ( G ) , is the minimum size of a dominating set of G. A minimum dominating set of graph G is a dominating set with size γ ( G ) . The domination problem is to find a minimum dominating set of a graph, and is a well-known NP-complete problem for general graphs [1]. However, the problem remains NP-complete when the input is restricted to certain special classes of graphs, including grid graphs [2], 4-regular planar graphs [1], etc.
In the literature, the problems of domination and its variants have been extensively studied. A variant of the domination problem is to find a minimum dominating set that satisfies some special conditions. For example, the connected domination problem is to compute a minimum dominating set such that the subgraph induced by it is connected, and the dominating cycle problem is to find a cycle with the least number of vertices to dominate the input graph. In the past, many scholars have proposed many applications for dominating sets and their variants. For instance, in distributed network applications the domination problem is to find the minimum number of control centers placed in the network to ensure that each node is close to at least one center. In a guard location system, the connected domination problem is to locate the fewest number of guards, allowing them to connect to each other in order to protect each other and monitor other locations. For related concepts and applications of these problems, we refer the reader to two survey books in [3,4]. In this paper, the domination problem, as well as one variant called the independent domination problem, are studied.
A set of vertices is called independent if any two vertices in it are not adjacent. An independent dominating set of a graph G is a dominating set I satisfying I as an independent set. The independent domination number of a graph G, expressed as γ ind ( G ) , is the minimum cardinality of an independent domination set in G. Because an independent dominating set of a graph G is a dominating set of G, γ ( G ) γ ind ( G ) for any graph G. That is, γ ( G ) provides a trivial lower bound for γ ind ( G ) . The independent domination problem on graph G is to find an independent dominating set with size γ ind ( G ) . This problem is NP-complete for general graphs [1], and remains NP-complete for grid graphs [2], comparability graphs, bipartite graphs [5], sat-graphs [6], line graphs [7], chordal bipartite graphs [8], etc. However, when the input is in some special class of graphs, it allows polynomial-time algorithms, including permutation graphs, interval graphs [9], chordal graphs [10], circular-arc graphs [11], AT-free graphs [12], bounded clique-width graphs [13], etc. For more relevant works on independent domination, we refer the reader to a survey in [14], and more results in [15,16,17,18]. For other relevant works and comparisons, the reader is referred to [19,20,21].
Supergrid graphs have been proposed for computing the stitch traces for computerized embroidery machines [22]. Unfortunately, the Hamiltonian cycle and path problems on supergrid graphs have been shown to be NP-complete in [22]. Thus, we studied the complexities of the Hamiltonian and longest paths for the special classes of supergrid graphs in [23,24,25,26,27]. In this paper, we expand supergrid graphs to a generalized graph class called extended supergrid graphs. In general, a supergrid graph is not a grid graph, and vice versa. Extended graphs contain supergrid, grid, diagonal supergrid, triangular supergrid graphs as graph subcalsses. Generally, rectangular grid graphs form a subclass of grid graphs, rectangular supergrid graphs form a subclass of supergrid and diagonal supergrid graphs, and rectangular triangular-supergrid graphs are a subclass of triangular supergrid graphs. However, the intersection of rectangular grid graphs, rectangular supergrid graphs, and rectangular triangular-supergrid graphs is empty, except for certain special paths. In this paper, we study the complexities of domination and independent domination problems for extended supergrid graphs and their subclasses. The domination problem on grid graphs is known to be NP-complete [2]. Thus, the studied problems are NP-complete as well for extended supergrid graphs. In [28], we provided a rough proof to claim that the domination and independent domination problems on supergrid graphs are NP-complete. In this paper, we present a full proof to show that the domination and independent domination problems on diagonal supergrid graphs are NP-complete. By a simple extension, we verify that these two problems for supergrid and triagular supergrid graphs are NP-complete as well. On the other hand, the domination and independent domination numbers of rectangular grid graphs have been computed in [18,29,30,31]. In [28], we solved the domination and independent domination problems on rectangular supergrid graphs in linear time. However, the complexities of the domination and independent domination problems on rectangular triangular-supergrid graphs remain unknown. In this paper, we provide a tight upper bound of the domination and independent domination numbers for rectangular triangular-supergrid graphs.
The remainder of this paper is organized as follows. Section 2 describes the symbols used in this paper, definitions, and several known related results. In Section 3, we first prove the domination and independent domination problems on diagonal supergrid graphs to be NP-complete in detail. We then extend this result into supergrid and triangular supergrid graphs. In Section 4, we provide a tight upper bound of the domination and independent domination numbers for rectangular triangular-supergrid graphs. Finally, concluding remarks are made in Section 5.

2. Preliminaries

In this section, we define the notation used in the paper and present results in the literature that are relevant to our work. For graph theory terms not defined here, the reader is referred to [32]. Let G be an undirected and simple graph with a vertex set V ( G ) and an edge set E ( G ) . A (simple) path P in G, expressed as v 1 v 2 v | P | 1 v | P | , is a sequence ( v 1 , v 2 , , v | P | 1 , v | P | ) of distinct vertices such that ( v i , v i + 1 ) E ( G ) for 1 i < | P | . We use “ v i P ” to mean “ v i is a vertex that appears in P” and the edge “ ( v i , v i + 1 ) P ” to mean “P visits edge ( v i , v i + 1 ) ”. The path from vertex v 1 to vertex v k is represented as the ( v 1 , v k ) -path, and to avoid confusion we use P n to denote a path with n vertices. To simplify notation, we use % for modulo arithmetic throughout the rest of this paper. The following lemma shows the domination and independent domination numbers γ ( P n ) and γ ind ( P n ) of path P n provided in [30], and can be easily proven by induction on n.
Lemma 1.
(see [30]). γ ( P n ) = γ ind ( P n ) = n + 2 3 = n 3 , where n denotes the number of vertices in path P n .
Due to the above lemma, the following proposed graph classes do not contain paths as graph subclasses. We introduce extended supergrid graphs and its subclasses of graphs as follows. Let S be an infinite graph such that its vertex set V ( S ) contains all points of the Euclidean plane with integer coordinates and its edge set E ( S ) = { ( u , v ) | | u x v x | 1 and | u y v y | 1 } , where μ x and μ y represent the x and y coordinates of vertex μ , respectively, expressed as μ = ( μ x , μ y ) for μ V ( S ) . We call S the two-dimensional integer supergrid. Suppose ( u , v ) E ( S ) . In the graph we represent, when u y < v y , this indicates that vertex u is above v, and when u x < v x , u is to the left of v. If u x = v x (respectively, u y = v y ), then ( u , v ) is called a vertical (respectively, horizontal) edge; otherwise, it is called a diagonal edge. There are two types of diagonal edges ( u , v ) : if v x = u x 1 and v y = u y + 1 , then diagonal edge ( u , v ) is called l-skewed; otherwise, it is called r-skewed. In our graph representation, when ( u , v ) is a l-skewed diagonal edge and u is above v, u is located at the upper right of v in the plane; otherwise, u is located in the upper left of v in the plane. The two-dimensional integer grid G is an infinite graph that satisfies V ( G ) = V ( S ) and E ( G ) = { ( u , v ) | ( u , v ) is a horizontal or vertical edge}. In addition, the two-dimensional triangular integer grid T is an infinite graph satisfying V ( T ) = V ( S ) and E ( T ) = { ( u , v ) | ( u , v ) is a horizontal, vertical, or r-skewed diagonal edge}. For example, Figure 1a–c depicts partial fragments of the infinite graphs G , T and S , respectively.
An extended supergrid graph is a finite connected subgraph of S , while a grid graph (respectively, triangular grid graph, supergrid graph) is a finite and vertex-induced subgraph of G (respectively, T , S ). Note that an extended supergrid graph is not necessarily a vertex-induced subgraph of S . Thus, extended supergrid graphs contain grid graphs, triangular grid graphs, and supergrid graphs as subclasses of graphs. A diagonal supergrid graph is an extended supergrid graph with an edge set that contains at least one l-skewed and one r-skewed diagonal edge, and a triangular supergrid graph is an extended supergrid graph such that its edge set contains at least one r-skewed diagonal edge and no l-skewed diagonal edges. In general, a diagonal supergrid graph is not necessarily a supergrid graph, and vice versa. The same applies to triangular supergrid graphs and triangular grid graphs. Let C e , C g , C s , C d , C τ , and C t be the graph classes of extended supergrid, grid, supergrid, diagonal supergrid, triangular supergrid, and triangular grid graphs, respectively. Then, C g , C s , C d , C τ , C t C e , C g C s = C g C t = C s C t = , C s C d , and C τ C t . Figure 2 shows the relationship among these graph classes and indicates the complexities of the studied problems for these graph classes. Obviously, all grid graphs are bipartite [33] and planar; however, (extended, diagonal, triangular) supergrid graphs and triangular grid graphs may not be bipartite. Let G g , G s , and G t be a grid, supergrid, and triangular grid graph, respectively. Let ν V ( G g ) , μ V ( G s ) , and ω V ( G t ) . Then, N G g ( ν ) { ( ν x , ν y + 1 ) , ( ν x , ν y 1 ) , ( ν x + 1 , ν y ) , ( ν x 1 , ν y ) } , N G s ( μ ) { ( μ x , μ y + 1 ) , ( μ x , μ y 1 ) , ( μ x + 1 , μ y ) , ( μ x 1 , μ y ) , ( μ x 1 , μ y 1 ) , ( μ x 1 , μ y + 1 ) , ( μ x + 1 , μ y 1 ) , ( μ x + 1 , μ y + 1 ) } , and N G t ( ω ) { ( ω x , ω y + 1 ) , ( ω x , ω y 1 ) , ( ω x + 1 , ω y ) , ( ω x 1 , ω y ) , ( ω x 1 , ω y 1 ) , ( ω x + 1 , ω y + 1 ) } . That is, d e g G g ( ν ) 4 , d e g G s ( μ ) 8 , and d e g G t ( ω ) 6 .
A rectangular grid graph, denoted G m × n , is the Cartesian product of paths P m and P n ; thus, ( u , v ) E ( G m × n ) if and only if their distance is 1, that is, | u x v x | + | u y v y | = 1 , where P i is the simple path with i vertices. A rectangular supergrid (called King’s) graph, denoted R m × n , is the strong product of paths P m and P n ; thus, ( u , v ) E ( R m × n ) if and only if their distance is less than or equal to 2 , that is, 0 | u x v x | 1 and 0 | u y v y | 1 . A rectangular triangular-supergrid graph, denoted T m × n , is obtained from G m × n by adding edges ( u , v ) for u , v V ( G m × n ) , u x = v x 1 , and u y = v y 1 , i.e., adding diagonal r-skewed edge to each square of G m × n . Then, for v V ( G m × n ) , u V ( R m × n ) and w V ( T m × n ) , we have d e g G m × n ( v ) 4 , d e g R m × n ( u ) 8 , and d e g T m × n ( v ) 6 . Furthermore, for m , n 2 , 2 d e g G m × n ( v ) , 3 d e g R m × n ( u ) , and 2 d e g T m × n ( w ) . Note that we use ( 1 , 1 ) to denote the coordinates of the upper-left-most vertex of a (grid, supergrid, triangular supergrid) graph in the figures. For example, Figure 3a–c shows G 8 × 9 , R 8 × 9 and T 8 × 9 , respectively. Notice that G m × n , R m × n , and T m × n are not paths; hence, m , n 2 . Without loss of generality, we assume that n m 2 for these rectangular graphs.
A path in an extended supergrid graph is called a horizontal (respectively, vertical) path if all of its edges are horizontal (respectively, vertical) edges. For instance, the arrow lines in Figure 3b depict a horizontal path P 9 . In [28,34], the domination number γ ( R m × n ) and the independent domination number γ ind ( R m × n ) of R m × n are computed as follows:
Lemma 2.
(see [28,34]). γ ( R m × n ) = γ ind ( R m × n ) = m 3 n 3 .
The complexities of the domination and independent domination problems on rectangular triangular-supergrid graphs remain open. In this paper, we provide a tight upper bound of γ ( T m × n ) and γ ind ( T m × n ) . To simplify notation, for a dominating set D of graph G and the subgraph H of G, we denote the restriction from D to H as D | H . In our method, a partition may be made on a rectangular triangular-supergrid graph which is split into two disjoint parts, and is defined below.
Definition 1.
Let T be a rectangular triangular-supergrid graph. The separation operation on T is to divide T into two vertex-disjoint rectangular triangular-supergrid subgraphs T 1 and T 2 , that is, V ( T ) = V ( T 1 ) V ( T 2 ) and V ( T 1 ) V ( T 2 ) = . If a separation consists of a set of horizontal edges, it is called vertical, and if it consists of a set of vertical edges, it is called horizontal. For example, the bold vertical (respectively, horizontal) dashed line in Figure 3c represents a vertical (respectively, horizontal) separation on T 8 × 9 divided into T 8 × 3 and T 8 × 6 (respectively, T 3 × 9 and T 5 × 9 ).

3. NP-Completeness Results

The domination and independent domination problems on grid graphs have been shown to be NP-complete [2]; thus, they are NP-complete for extended supergrid graphs as well, as extended supergrid graphs contain grid graphs as a subclass of graphs (see Figure 2). However, their complexities for diagonal supergrid, triangular supergrid, and supergrid graphs remain unknown. In [28], we have provided a rough proof to claim that they are NP-complete for supergrid graphs. In this section, we present a complete proof to show that they are NP-complete for diagonal supergrid graphs. We then expand this to verify that they are NP-complete for supergrid and triangular supergrid graphs as well. To demonstrate this, we establish a polynomial-time reduction from the domination problem on grid graphs. In [2], Clark et al. provided the following theorem:
Theorem 1.
(see [2]). The domination problem on grid graphs is NP-complete.
We reduce the domination problem on grid graphs to the domination problem on diagonal supergrid graphs. Consider a grid graph G g ; a diagonal supergrid graph G d is constructed to satisfy that G g has a dominating set D of size | D | k if and only if G d contains a dominating set D of size | D | k + 2 | E ( G g ) | . The steps for constructing the diagonal supergrid graph G d from the grid graph G g are as follows. First, the input grid graph G g is enlarged to transform each edge of G g into a vertical or horizontal path with seven edges, that is, each edge of G g is enlarged by a factor of seven. The enlarged grid graph is represented as G g . For example, Figure 4b shows the grid graph G g enlarged from G g in Figure 4a. The second step is to replace each ( u , v ) -path of the graph G g with a special diagonal supergrid graph, where u , v V ( G g ) . This special diagonal supergrid is a ( u , v ) -path with seven edges, and contains at least one l-skewed and one r-skewed edges; we call it snake ( u , v ) -path and denote it as S ( u , v ) . For a snake ( u , v ) -path S ( u , v ) , u and v are said to be the connectors of S ( u , v ) . Figure 4c shows a snake ( u , v ) -path. Then, the constructed graph is a diagonal supergrid graph G d . For example, Figure 4d depicts a diagonal supergrid graph G d constructed from the grid graph G g in Figure 4a.
Next, we propose a method for placing snake paths on the enlarged grid graph G g such that any two snake paths are vertex-disjoint except for their connectors. Consider a square of a grid graph G g with vertices ( i , j ) , ( i , j + 1 ) , ( i + 1 , j ) , ( i + 1 , j + 1 ) . Then, these four vertices are the connectors of the corresponding snake paths. If i , j are both odd or even, we place the four snake paths as shown in Figure 5a; otherwise, we place these snake paths as shown in Figure 5b. Then, in a corresponding square of an enlarged grid G g , at most two snake paths are placed inside it and opposite each other. In addition, the two snake paths inside the corresponding square are separated by at least two integer points. Therefore, none of the vertices are repeated except for the connectors of the snake paths. Algorithm 1 illustrates the detailed steps above for placing snake paths. For example, Figure 6 describes the arrangement of snake paths in G d for G g = G 16 × 16 . Then, the following property holds immediately.
Lemma 3.
Algorithm 1 arranges the snake paths of G d such that these paths are vertex-disjoint except for their connectors.
The construction algorithm of diagonal supergrid graph G d is formally presented as Algorithm 1. Because a snake path is a diagonal supergrid graph and the input grid graph G g contains at least one edge, the constructed graph G d of Algorithm 1 is a diagonal supergrid graph. In addition, each edge of G g is enlarged a constant number of times, and each enlarged edge is replaced with one snake path, Algorithm 1 runs in O ( | V ( G g ) | + | E ( G g ) | ) -linear time. Thus, the following lemma holds true.   
Algorithm 1: The diagonal supergrid graph construction algorithm
 Input: A grid graph G g . (see Figure 4a)
 Output: A diagonal supergrid graph G d . (see Figure 4d)
 Method: // ( an algorithm for constructing a diagonal supergrid graph from a grid graph (
1.enlarge G g to a grid graph G g , so that each edge of G g is transformed into a
 vertical or horizontal path with 7 edges; (see Figure 4b)
2.let G d = G g ;
3.foreach enlarged ( u , v ) -path P ( u , v ) in G g , where u , v V ( G g ) do (
4.  let u = ( u x , u y ) and v = ( v x , v y ) be the vertices in grid graph G g with u x v x
    and u y v y ;
5.  let S ( u , v ) be the snake ( u , v ) -path corresponding to P ( u , v ) ;
   // Note that if v x = u x + 1 , then P ( u , v ) is a horizontal path; otherwise, P ( u , v ) is a
    vertical path
6.  if v x = u x + 1 then
7.    if u y % 2 = 1 then
8.      if u x % 2 = 1 then
9.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is above P ( u , v ) ;
10.      else
11.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is below P ( u , v ) ;
          
12.    else
13.      if u x % 2 = 1 then
14.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is below P ( u , v ) ;
15.      else
16.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is above P ( u , v ) ;
          
          
17.  else
18.    if u x % 2 = 1 then
19.      if u y % 2 = 1 then
20.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is to the right of
           P ( u , v ) ;
21.      else
22.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is to the left of
           P ( u , v ) ;
23.    else
24.      if u y % 2 = 1 then
25.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is to the left of
           P ( u , v ) ;
26.      else
27.        replace P ( u , v ) with S ( u , v ) in G d so that S ( u , v ) is to the right of
           P ( u , v ) ;
        
      
    
28.output G d .
Lemma 4.
Given a grid graph G g , Algorithm 1 constructs a diagonal supergrid graph G d in O ( | V ( G g ) | + | E ( G g ) | ) -linear time.
Next, we verify that grid graph G g has a dominating set D of size | D | k if and only if diagonal supergrid graph G d contains a dominating set D of size | D | k + 2 | E ( G g ) | . Before providing the proof, we first observe several properties of the snake path. Note that the snake path is a simple path P 8 with eight vertices. Recall that for a dominating set D of graph G and the subgraph H of G, we denote the restriction from D to H as D | H . Let D be a dominating set of diagonal supergrid graph G d , and let S ( u , v ) be a snake path with connectors u and v in G d . Let u d N G d ( u ) D if u D , and v d N G d ( v ) D if v D . Then, u d and v d dominate u and v, respectively, if u , v D . According to whether u and v are in D , we consider the following situations.
Case 1: u , v D . Because D is a dominating set of G d , G d [ S ( u , v ) ( N G d [ u ] N G d [ v ] ) ] is a path P 4 with four vertices. Per Lemma 1, γ ( S ( u , v ) ( N G d [ u ] N G d [ v ] ) ) = 2 (see Figure 7a). Therefore, | D | S ( u , v ) { u , v } | 2 and γ ( S ( u , v ) ( N G d [ u ] N G d [ v ] ) ) = 2 .
Case 2: either u D or v D . Without loss of generality, assume u D and v D . Consider that S ( u , v ) does not contain v d . Then, G d [ S ( u , v ) ( N G d [ u ] { v } ) ] is a path P 5 with five vertices. Per Lemma 1, γ ( S ( u , v ) ( N G d [ u ] { v } ) ) = 2 . On the other hand, Consider that S ( u , v ) contains v d . Then, G d [ S ( u , v ) N G d [ u ] ] is a path P 6 with six vertices. Per Lemma 1, γ ( S ( u , v ) N G d [ u ] ) = 2 (see Figure 7b). In any case, γ ( S ( u , v ) ( N G d [ u ] { v } ) = γ ( S ( u , v ) N G d [ u ] ) ) = 2 , | D | S ( u , v ) | 3 , and if D S ( u , v ) does not dominate v then there exists a vertex v d in D S ( u , v ) such that v d dominates v.
Case 3: u , v D . Depending on the positions of u d and v d , we have the following three subcases.
Case 3.1: u d , v d S ( u , v ) . In this subcase, { u d , v d } S ( u , v ) = . Then, S ( u , v ) { u , v } is a path P 6 with six vertices. Per Lemma 1, γ ( S ( u , v ) { u , v } ) = 2 (see Figure 7c). Thus, | D | S ( u , v ) | 2 .
Case 3.2: either u d S ( u , v ) or v d S ( u , v ) . Without loss of generality, assume that u d S ( u , v ) and v d S ( u , v ) . Then, S ( u , v ) ( N G d ( u d ) { v } ) is a path P 4 with four vertices. Per Lemma 1, γ ( S ( u , v ) ( N G d ( u d ) { v } ) ) = 2 (see Figure 7d). Thus, | D | S ( u , v ) ( N G d ( u d ) { v } ) | 2 and | D | S ( u , v ) | 3 . Then, γ ( S ( u , v ) { u , v } ) = 3 .
Case 3.3: u d , v d S ( u , v ) . In this subcase, it needs at least one other vertex of S ( u , v ) to dominate S ( u , v ) ( N G d ( u d ) N G d ( v d ) ) . Thus, | D | S ( u , v ) | 3 and γ ( S ( u , v ) ) = 3 .
It follows from the above cases that we can conclude the following lemma.
Lemma 5.
Let D be a dominating set of diagonal supergrid graph G d constructed by Algorithm 1, and let S ( u , v ) be a snake path with connectors u and v in G d . Then, the following statement holds:
(1) 
If u , v D , then γ ( S ( u , v ) ( N G d [ u ] N G d [ v ] ) ) = 2 and | D | S ( u , v ) { u , v } | 2 (see Figure 7a).
(2) 
If u D and v D , then γ ( S ( u , v ) N G d [ u ] ) = γ ( S ( u , v ) ( N G d [ u ] { v } ) ) = 2 , | D | S ( u , v ) | 3 , and if D S ( u , v ) does not dominate v, then there exists a vertex v d in D S ( u , v ) such that v d dominates v (see Figure 7b).
(3) 
If u , v D , then
if ( N G d ( u ) S ( u , v ) ) D and ( N G d ( v ) S ( u , v ) ) D , then γ ( S ( u , v ) { u , v } ) = 2 and | D | S ( u , v ) | 2 (see Figure 7c); otherwise, γ ( S ( u , v ) { u , v } ) = 3 and | D | S ( u , v ) | 3 (see Figure 7d).
Figure 7. The minimum dominating set of S ( u , v ) in G d for (a) u , v D , (b) u D and v D , (c) u , v D and ( N G d ( u ) S ( u , v ) ) D and ( N G d ( v ) S ( u , v ) ) D , and (d) u , v D and, ( N G d ( u ) S ( u , v ) ) D = or ( N G d ( v ) S ( u , v ) ) D = , where D is a dominating set of G d and filled circles represent vertices in D .
Figure 7. The minimum dominating set of S ( u , v ) in G d for (a) u , v D , (b) u D and v D , (c) u , v D and ( N G d ( u ) S ( u , v ) ) D and ( N G d ( v ) S ( u , v ) ) D , and (d) u , v D and, ( N G d ( u ) S ( u , v ) ) D = or ( N G d ( v ) S ( u , v ) ) D = , where D is a dominating set of G d and filled circles represent vertices in D .
Algorithms 15 00402 g007
Based on the above lemma, we prove that grid graph G g contains a dominating set D with | D | k if and only if diagonal supergrid graph G d has a dominating set D with | D | k + 2 | E ( G g ) | . We first prove that the only if part is as follows.
Lemma 6.
Suppose grid graph G g has a dominating set D with size | D | k . Then, diagonal supergrid graph G d contains a dominating set D with size | D | k + 2 | E ( G g ) | .
Proof. 
We construct a dominating set D of G d from D such that the size of D is no greater than k + 2 | E ( G g ) | . Initially, let D = D . Let ( u , v ) be an edge of the grid graph G g , and let S ( u , v ) = u w 1 w 2 w 3 w 4 w 5 w 6 v be the snake ( u , v ) -path in the diagonal supergrid graph G d constructed from ( u , v ) , as depicted in Figure 7a. Consider the following three cases.
Case 1: u , v D . In this case, w 1 and w 6 are dominated by u and v, respectively. Let P = w 2 w 3 w 4 w 5 . Per Lemma 1, γ ( P ) = 2 . Then, { w 3 , w 5 } is a minimum dominating set of P . Let D = D { w 3 , w 5 } . Then, D dominates V ( S ( u , v ) ) and | D | = | D | + 2 . Figure 7a shows such a dominating set of S ( u , v ) .
Case 2: either u D or v D . Without loss of generality, assume that u D and v D . Then, w 1 is dominated by u. Consider that v is not dominated by D . Let P = w 2 w 3 w 4 w 5 w 6 v . Per Lemma 1, γ ( P ) = 2 . Then, { w 3 , w 6 } is a minimum dominating set of P . Let D = D { w 3 , w 6 } . Then, D dominates V ( S ( u , v ) ) and | D | = | D | + 2 . Figure 7b depicts such a dominating set of S ( u , v ) . On the other hand, consider that v is dominated by D . Let P = w 2 w 3 w 4 w 5 w 6 . Per Lemma 1, γ ( P ) = 2 . Then, { w 3 , w 6 } is a minimum dominating set of P . Let D = D { w 3 , w 6 } . Then, D dominates V ( S ( u , v ) ) and | D | = | D | + 2 .
Case 3: u , v D . Because D is a dominating set of G g , there exist two vertices z 1 N G g ( u ) and z 2 N G g ( v ) such that z 1 and z 2 dominate u and v, respectively. Let S ( z 1 , u ) and S ( z 2 , v ) be the snake paths of G d constructed from edges ( z 1 , u ) and ( z 2 , v ) , respectively. In our construction algorithm of D , we compute the dominating sets of S ( z 1 , u ) and S ( z 2 , v ) before the dominating set of S ( u , v ) , where z 1 , z 2 D and u , v D . From Case 2, we can find one vertex of S ( z 1 , u ) N G d ( u ) (respectively, S ( z 2 , v ) N G d ( v ) ) to dominate u (respectively, v) before computing the dominating set of S ( u , v ) (see Figure 7b). By Lemma 1, there exists a set { w 2 , w 5 } of S ( u , v ) { u , v } such that it dominates V ( S ( u , v ) ) { u , v } ; see Figure 7c. Let D = D { w 2 , w 5 } . Then, D dominates V ( S ( u , v ) ) and | D | = | D | + 2 .
Based on the above cases, we construct a dominating set D of G d by the following steps. Initially, let D = D and let ( u , v ) E ( G g ) . For each u , v D , we construct a dominating set of S ( u , v ) via Case 1. We then construct a dominating set of S ( u , v ) by Case 2 for each u D and v D . Finally, for each u , v D , a dominating set of S ( u , v ) is constructed via Case 3. From the above cases, | D | = | D | + 2 after processing each snake path of G d . Thus, we construct a dominating set D of G d with size | D | = | D | + 2 | E ( G g ) | k + 2 | E ( G g ) | after computing dominating sets of all snake paths in G d . For example, Figure 4a shows the dominating set D of G g with | D | = 4 , and the constructed dominating set D of G d from D is shown in Figure 4d, where | D | = | D | + 2 | E ( G g ) | = 4 + 2 · 11 = 26 . This completes the proof of the lemma. □
Next, we prove that the if part is in Lemma 7. Recall that for a dominating set D of graph G and the subgraph H of G, the restriction of D to H is represented as D | H .
Lemma 7.
Suppose diagonal supergrid graph G d has a dominating set D with | D | k + 2 | E ( G g ) | . Then, grid graph G g contains a dominating set D with size | D | k .
Proof. 
We show that there exists a dominating set D of G g with size k or less. To prove this lemma, we first construct a dominating set D ^ of G d obtained from D such that | D ^ | | D | and remove all vertices not in G g from D ^ , resulting in a dominating set D of G g . Initially, let D ^ = D . Consider a snake path S ( u , v ) = u w 1 w 2 w 3 w 4 w 5 w 6 v of G d constructed from edge ( u , v ) of G g . Let u d (respectively, v d ) be in D such that it dominates u (respectively, v) if u D (respectively, v D ). Depending on whether u , v D , we have the following three cases:
Case 1: u , v D . Let P = w 2 w 3 w 4 w 5 . By Lemma 1, γ ( P ) = 2 . Let W = { w 3 , w 5 } be a minimum dominating set of S ( u , v ) ( N G d [ u ] N G d [ v ] ) . If | D ^ | S ( u , v ) | > 4 , then let D ^ = D ^ D ^ | S ( u , v ) W { u , v } , that is, | D ^ | S ( u , v ) | = 4 , after processing S ( u , v ) for u , v D .
Case 2: either u D or v D . Without loss of generality, assume that u D and v D . Then, w 1 is dominated by u. Let P = w 2 w 3 w 4 w 5 w 6 v . By Statement (2) of Lemma 5, at least two vertices of P are in D . Let W = { w 3 , w 6 } be a minimum dominating set of S ( u , v ) N G d [ u ] ; see Figure 7b. If | D ^ | S ( u , v ) | > 3 or w 6 D ^ , then let D ^ = D ^ D ^ | S ( u , v ) W { u } , that is, | D ^ | S ( u , v ) | = 3 in this case. In addition, D ^ dominates v after processing S ( u , v ) for u D and v D .
Case 3: u , v D . First, consider that d e g G g ( u ) = 1 and d e g G g ( v ) = 1 . Then, E ( G g ) = { ( u , v ) } and G d only contains a snake path S ( u , v ) . By Lemma 1, | D | 3 . Let D ^ = { u , w 3 , w 6 } . Then, D ^ is a dominating set of G d with size 3. Let D = D ^ { w 3 , w 6 } ; hence, D is a dominating set of G g with size 1. Then, 3 | D | k + 2 · 1 , and hence | D | = 1 k . Thus, the lemma holds when u , v D and d e g G g ( u ) = d e g G g ( v ) = 1 . In the following, suppose that d e g G g ( u ) 1 or d e g G g ( v ) 1 . Then, there exists at least one vertex z 1 of G g such that z 1 N G g ( u ) or z 1 N G g ( v ) . Without loss of generality, assume that ( z 1 , u ) E ( G g ) . We pick z 1 to satisfy the requirement that if z 1 D , then N G g ( u ) D = . Let S ( z 1 , u ) = z 1 x 1 x 2 x 3 x 4 x 5 x 6 u be the snake path of G d constructed from edge ( z 1 , u ) of G g , as shown in Figure 8a. Depending on whether z 1 D , there are two subcases.
Case 3.1: z 1 D . In this subcase, N G g ( u ) D = . Suppose that u d S ( u , v ) . By Statement (3) of Lemma 5, | D | S ( u , v ) | 3 . Let D ^ = D ^ D | S ( u , v ) { u , w 3 , w 6 } . Then, the size of D ^ does not increase and u D ^ . On the other hand, suppose that u d S ( z 1 , u ) . By Statement (3) of Lemma 5, | D | S ( z 1 , u ) | 3 . Let D ^ = D ^ D | S ( z 1 , u ) { u , x 1 , x 4 } . Then, the size of D ^ does not increase and u D ^ . In any case, we can set u D ^ and | D ^ | does not increase. Then, it is the same as Case 2. Figure 8a depicts such a case.
Case 3.2: z 1 D . In this subcase, γ ( S ( z 1 , u ) ) = 3 and { z 1 , x 3 , x 6 } is a minimum dominating set of S ( z 1 , u ) ; see Figure 8b,c. If | D | S ( z 1 , u ) | > 3 or x 6 D , let D ^ = D ^ D | S ( z 1 , u ) { z 1 , x 3 , x 6 } . Depending on whether d e g G g ( v ) = 1 , we consider the following subcases.
Case 3.2.1: d e g G g ( v ) 1 . In this subcase, there exists a vertex z 2 of N G g ( v ) . We pick such a vertex z 2 , which is the same as that of z 1 . Let S ( z 2 , v ) = z 2 y 1 y 2 y 3 y 4 y 5 y 6 v be the snake path of G d constructed from edge ( z 2 , v ) of G g , as shown in Figure 8b. If z 2 D , then it is the same as Case 3.1. Consider that z 2 D . Then, { z 2 , y 3 , y 6 } is a minimum dominating set of S ( z 2 , v ) and v is dominated by y 6 . If | D | S ( z 2 , v ) | > 3 or y 6 D , then let D ^ = D ^ D | S ( z 2 , v ) { z 2 , y 3 , y 6 } . In addition, u and v are dominated by D ^ after processing S ( z 1 , u ) and S ( z 2 , v ) . By Statement (3) of Lemma 5, γ ( S ( u , v ) { u , v } ) = 2 . Let { w 2 , w 5 } be a minimum dominating set of S ( u , v ) { u , v } . If | D | S ( u , v ) | > 2 , then let D ^ = D ^ D | S ( u , v ) { w 2 , w 5 } . Figure 8b depicts a such construction of D ^ .
Case 3.2.2: d e g G g ( v ) = 1 . In this subcase, w 6 dominates v; see Figure 8c. By Statement (3) of Lemma 5, | D | S ( u , v ) | 3 . We then set u to be in D ^ and re-compute the minimum dominating set of S ( u , v ) , that is, D ^ = D ^ D | S ( u , v ) { u , w 3 , w 6 } . Then, | D ^ | does not increase and u D ^ . Figure 8c shows a such minimum dominating set of S ( z 1 , u ) S ( u , v ) in this subcase.
Figure 8. The dominating set of snake path S ( u , v ) in G d where u , v D , where (a) z 1 D , (b) z 1 D and d e g G g ( v ) 1 , and (c) z 1 D and d e g G g ( v ) = 1 . Note that D is a dominating set of G d ; the filled circles represent vertices of D .
Figure 8. The dominating set of snake path S ( u , v ) in G d where u , v D , where (a) z 1 D , (b) z 1 D and d e g G g ( v ) 1 , and (c) z 1 D and d e g G g ( v ) = 1 . Note that D is a dominating set of G d ; the filled circles represent vertices of D .
Algorithms 15 00402 g008
From the above cases, we can construct a dominating set D ^ of G d from D such that | D ^ | | D | , as follows. First, for each u , v D we construct dominating sets of S ( u , v ) via Case 3. Then, for each u D and v D we construct dominating sets of S ( u , v ) via Case 2. Finally, we construct dominating sets of S ( u , v ) via Case 1 for u , v D . For example, given a dominating set D of G d with size 22 in Figure 9a, the constructed dominating set D ^ of G d with size 22 from D is depicted in Figure 9b. Then, D ^ satisfies the following properties:
(p1)
| D ^ | | D | ,
(p2)
for each snake ( u , v ) -path S ( u , v ) , | D ^ ( S ( u , v ) { u , v } ) | = 2 , and
(p3)
for each snake ( u , v ) -path S ( u , v ) with u , v D ^ , there exist z 1 N G g ( u ) and z 2 N G g ( v ) such that z 1 , z 2 D ^ while d e g G g ( u ) 1 and d e g G g ( v ) 1 .
Figure 9. (a) The dominating set D of G d with size 22, and (b) a dominating set D ^ of G d with size 22 ( | D | ) obtained from D . Solid lines indicate the edges of G d , double circles represent the vertices of G g , and filled circles indicate the vertices in a dominating set of G d .
Figure 9. (a) The dominating set D of G d with size 22, and (b) a dominating set D ^ of G d with size 22 ( | D | ) obtained from D . Solid lines indicate the edges of G d , double circles represent the vertices of G g , and filled circles indicate the vertices in a dominating set of G d .
Algorithms 15 00402 g009
Then, a dominating set D of G g is obtained from D ^ according to the following steps:
(s1)
initially, let D = D ^ ;
(s2)
remove from D all vertices of D that are not in D g ;
(s3)
the result set D is a dominating set of G g .
Because for each snake path S ( u , v ) , D ^ S ( u , v ) contains exactly two vertices that are not in G g , we obtain | D | = | D ^ | 2 | E ( G g ) | . Then, | D | = | D ^ | 2 | E ( G g ) | | D | 2 | E ( G g ) | ( k + 2 | E ( G g ) | ) 2 | E ( G g ) | = k . Therefore, we construct a dominating set D of G g of size | D | k . □
It immediately follows from Lemmas 6 and 7 that the following lemma is summarized:
Lemma 8.
Let G g be a grid graph, and let G d be a diagonal supergrid graph constructed from G g by Algorithm 1. Then, G g has a dominating set D with size | D | k if and only if G d contains a dominating set D with size | D | k + 2 | E ( G g ) | .
Obviously, the domination problem on a diagonal supergrid graph is in NP. By Theorem 1 and Lemmas 4 and 8 we derive the following theorem:
Theorem 2.
The domination problem for diagonal supergrid graphs is NP-complete.
The dominating sets of diagonal supergrid graphs constructed in Lemmas 6 and 7 can be easily modified to be independent dominating sets. Therefore, the independent domination problem on diagonal supergrid graphs is NP-complete as well, and the following corollary holds true.
Corollary 1.
The independent domination problem for diagonal supergrid graphs is NP-complete.
Through the construction of diagonal supergrid graph G d , we can see that G d is a supergrid graph which is a vertex-induced subgraph of the infinite two-dimensional supergrid S . Therefore, the following theorem holds immediately.
Theorem 3.
The domination and independent domination problems for supergrid graphs are NP-complete.
The NP-complete results above can be easily extended to triangular supergrid graphs. Recall that a triangular supergrid graph is an extended supergrid graph of which the edge set contains at least one r-skewed diagonal edge and does not contain any l-skewed diagonal edges. To verify that the domination problem on a triangular supergrid graph is NP-complete, we modify Algorithm 1 as follows:
Step 1:
enlarge the input grid graph G g to another grid graph G g such that each edge of G g is transformed into a horizontal or vertical path with six edges (see Figure 10b);
Step 2:
for each horizontal (respectively, vertical) ( u , v ) -path in G g where u , v V ( G g ) , replace it by a horizontal (respectively, vertical) triangle path T ( u , v ) connecting u and v (see Figure 10c);
Step 3:
the constructed graph is a triangular supergrid graph G τ (see Figure 10d), and outputs G τ .
Figure 10. (a) A grid graph G g , (b) grid graph G g by magnifying each edge of G g by a factor of six, (c) (horizontal or vertical) triangle ( u , v ) -path T ( u , v ) , and (d) a triangular supergrid graph G τ constructed from G g by replacing each of its enlarged paths with the triangle path in (c).
Figure 10. (a) A grid graph G g , (b) grid graph G g by magnifying each edge of G g by a factor of six, (c) (horizontal or vertical) triangle ( u , v ) -path T ( u , v ) , and (d) a triangular supergrid graph G τ constructed from G g by replacing each of its enlarged paths with the triangle path in (c).
Algorithms 15 00402 g010
We can see that each triangle path is a path with eight vertices. Thus, Lemma 5 holds for G τ . By Lemma 8, G g has a dominating set D of size | D | k if and only if G τ contains a dominating set D of size | D | k + 2 | E ( G g ) | . Therefore, the following theorem holds immediately.
Theorem 4.
The domination and independent domination problems on triangular supergrid graphs are NP-complete.

4. The Domination and Independent Domination Numbers of Rectangular Triangular-Supergrid Graphs

In this section, we first compute γ ( T m × n ) = γ ind ( T m × n ) for a rectangular triangular-supergrid graph T m × n with n m and 3 m 2 . We then provide an upper bound of γ ( T m × n ) and γ ind ( T m × n ) for n m 4 . First, we consider n m and m = 2 , as follows.
Lemma 9.
γ ( T 2 × n ) = γ ind ( T 2 × n ) = 2 n 5 .
Proof. 
Through the structure of T 2 × n , a vertex of T 2 × n dominates at most five vertices, including its four neighbors and itself. Thus, γ ( T 2 × n ) 2 n 5 . We compute a dominating set of T 2 × n with size 2 n 5 , as follows. First, we make n 5 or n 5 1 vertical separations on T 2 × n to obtain n 5 subgraphs T 1 , T 2 , , T n 5 , T * of T 2 × n such that T i , 1 i n 5 is a rectangular triangular-supergrid graph T 2 × 5 and T * is a T 2 × j , 1 j 4 , if n % 5 0 . Note that T * = when n % 5 = 0 . Let μ i = ( 2 , 2 ) and ν i = ( 4 , 1 ) be two vertices of T i for 1 i n 5 , and let D = 1 i n 5 { μ i , ν i } . Then, D is a dominating set of T 2 × n T * . Consider that T * does exist, i.e., n % 5 0 . Then, T * = T 2 × j for 1 j 4 . We then compute one or two vertices μ and ν of T * as follows: if j = 1 , let μ = ( 1 , 2 ) ; otherwise, if j = 2 , let μ = ( 2 , 2 ) . Furthermore, if j = 3 , let μ = ( 2 , 2 ) and ν = ( 3 , 1 ) ; otherwise, if j = 4 , let μ = ( 2 , 2 ) and ν = ( 4 , 2 ) . Then, { μ , ν } dominates T * . Let D = D { μ , ν } . Then, | D | = 2 n 5 and D dominates T 2 × n . Thus, γ ( T 2 × n ) = 2 n 5 . By the above construction, we can see that D is an independent dominating set of T 2 × n ; hence, γ ind ( T 2 × n ) = 2 n 5 . For instance, Figure 11 depicts our constructed (independent) dominating set of T 2 × n for 2 n 10 . □
Next, we compute γ ( T 3 × n ) and γ ind ( T 3 × n ) as the following lemma.
Lemma 10.
γ ( T 3 × n ) = γ ind ( T 3 × n ) = n 2 + 1 .
Proof. 
We first claim the following:
(C1)
There exists a minimum dominating set D n of T 3 × n with size n 2 + 1 such that D n = { ( 1 + 2 i , 2 ) | 0 i n 2 } if n % 2 = 1 ; otherwise, D n = { ( 1 + 2 i , 2 ) | 0 i n 2 1 } { ( n , 2 ) } .
(C2)
For any minimum dominating set D ^ n of T 3 × n , D ^ does not contain vertex ( n , 3 ) , and if n % 2 = 1 , then D ^ contains vertex ( n , 2 ) and does not contain vertex ( n , 1 ) .
We prove the above claims by induction on n, where n 3 . Initially, let n = 3 , 4, or 5. By inspecting T 3 × 3 , T 3 × 4 , and T 3 × 5 , it is easy to verify that the above claims hold true; see Figure 12. Assume that the claims hold when n = k and k 5 . Then, there exists no minimum dominating set of T 3 × k containing vertex ( k , 3 ) , and there exists a minimum dominating set D k of T 3 × k with size k 2 + 1 such that D k = { ( 1 + 2 i , 2 ) | 0 i k 2 } if k % 2 = 1 ; otherwise, D k = { ( 1 + 2 i , 2 ) | 0 i k 2 1 } { ( k , 2 ) } . In addition, if k % 2 = 1 , then any minimum dominating set D ^ k of T 3 × k satisfies the requirement that D ^ k contains vertex ( k , 2 ) and does not contain vertices ( k , 1 ) and ( k , 3 ) . Now, suppose that n = k + 1 . There are two possible cases.
Case 1: k % 2 = 1 . Let k = 2 t + 1 , t 1 . By induction hypothesis, any minimum dominating set D ^ k of T 3 × k does not contain vertex ( k , 1 ) ; hence, D ^ k does not dominate vertex ( k + 1 , 1 ) . Thus, γ ( T 3 × ( k + 1 ) ) > γ ( T 3 × k ) . Let D k + 1 = D k { ( k + 1 , 2 ) } . Then, | D k + 1 | = | D k | + 1 = t + 2 ; hence, D k + 1 is a minimum dominating set of T 3 × ( k + 1 ) . Therefore, Claim (C1) holds true in this case. Next, we verify Claim (C2). Let u = ( k , 1 ) , v = ( k + 1 , 2 ) , and let w = ( k + 1 , 1 ) . Assume by contradiction that D ˜ is a minimum domination set of T 3 × ( k + 1 ) satisfying the requirement that D ˜ contain vertex ( k + 1 , 3 ) . To dominate w, one of u , v , w must be in D ˜ . Consider that u D ˜ . Then, | D ˜ | T 3 × k | > γ ( T 3 × k ) by induction hypothesis. Then, D ˜ = D ˜ | T 3 × k { ( k + 1 , 3 ) } ; hence, | D ˜ | > γ ( T 3 × k ) + 1 . Thus, | D ˜ | γ ( T 3 × k ) + 2 . This contradicts our above construction D k + 1 of T 3 × ( k + 1 ) with size | D k + 1 | = γ ( T 3 × k ) + 1 = t + 2 . In addition, consider that w or v is in D ˜ . Then, D ˜ | T 3 × ( k 1 ) { v , ( k + 1 , 3 ) } D ˜ ; hence, | D ˜ | | D ˜ | T 3 × ( k 1 ) | + 2 . By induction hypothesis, | D ˜ | T 3 × ( k 1 ) | | D k 1 | = k 1 2 + 1 = 2 t 2 + 1 = t + 1 . Then, | D ˜ | | D ˜ | T 3 × ( k 1 ) | + 2 t + 3 . Thus, | D ˜ | > | D k + 1 | , where | D k + 1 | = t + 2 and D k + 1 is a dominating set of T 3 × ( k + 1 ) ; hence, a contradiction occurs. By contradiction, there exists no minimum domination set of T 3 × ( k + 1 ) containing vertex ( k + 1 , 3 ) . Thus, Claim (C2) holds true when n = k + 1 .
Case 2: k % 2 = 0 . In this case, let D k + 1 = D k { ( k , 1 ) } { ( k + 1 , 2 ) } . Then, | D k + 1 | = | D k | = k 2 + 1 . Because T 3 × k is a subgraph of T 3 × ( k + 1 ) , γ ( T 3 × k ) γ ( T 3 × ( k + 1 ) ) , it is true that D k + 1 is a minimum dominating set of T 3 × ( k + 1 ) . Thus, Claim (C1) holds true in this case. Next, we verify Claim (C2) in this case. By similar arguments to those proving Case 1, we can verify that there exists no minimum domination set of T 3 × ( k + 1 ) containing vertices ( k + 1 , 1 ) and ( k + 1 , 3 ) . Let z = ( k + 1 , 2 ) , z 1 = ( k , 1 ) , z 2 = ( k , 2 ) , z 3 = ( k , 3 ) , and let Z = { z 1 , z 2 , z 3 } , as shown in Figure 12. Assume by contradiction that there exists a minimum domination set D ˜ of T 3 × ( k + 1 ) such that z D ˜ . To dominate ( k + 1 , 1 ) and ( k + 1 , 3 ) , at least two vertices of Z are necessary. If z 3 D ˜ , then D ˜ is not a minimum dominating set of T 3 × k ; by induction hypothesis, a contradiction occurs. Thus, z 1 , z 2 D ˜ . Let D ˜ = D ˜ { ( k , 1 ) } . Then, D ˜ remains a dominating set of T 3 × k , as N T 3 × k [ z 1 ] N T 3 × k ( z 2 ) ; that is, D ˜ is not a minimum dominating set of T 3 × k . Thus, | D ˜ | > γ ( T 3 × k ) . This contradicts the requirement that D k + 1 constructed above be a dominating set of T 3 × ( k + 1 ) with size γ ( T 3 × k ) . Thus, any minimum domination set of T 3 × ( k + 1 ) contains vertex z = ( k + 1 , 2 ) . It follows from the above arguments that Claim (C2) holds true when n = k + 1 .
By the above cases, Claims (C1) and (C2) hold true when n = k + 1 . By induction, these claims hold true for n 3 . Thus, γ ( T 3 × n ) = n 2 + 1 . Figure 12 shows the minimum dominating set D n of T 3 × n for 3 n 10 .
Because each independent dominating set of a graph is a dominating set for that graph, γ ( T 3 × n ) γ ind ( T 3 × n ) . For the case of n % 2 = 1 , D n in Claim (C1) is an independent set as well; hence, it is a minimum independent dominating set of T 3 × n . Consider n % 2 = 0 . Let D n = D n { ( n , 2 ) } { ( n , 1 ) } . Then, | D n | = | D n | and D n is an independent set. Thus, D n is a minimum independent dominating set of T 3 × n . In any case, we construct a minimum independent dominating set of T 3 × n with size γ ( T 3 × n ) . Thus, γ ( T 3 × n ) = γ ind ( T 3 × n ) = n 2 + 1 . □
Figure 12. γ ( T 3 × n ) = γ ind ( T 3 × n ) = n 2 + 1 for 3 n 10 ; filled circles indicate the vertices in the minimum (independent) dominating set of T 3 × n .
Figure 12. γ ( T 3 × n ) = γ ind ( T 3 × n ) = n 2 + 1 for 3 n 10 ; filled circles indicate the vertices in the minimum (independent) dominating set of T 3 × n .
Algorithms 15 00402 g012
Next, we consider n m 4 for a rectangular triangular-supergrid graph T m × n .
Lemma 11.
Let T m × n be a rectangular triangular-supergrid graph with n m 4 . Then, γ ( T m × n ) m 3 n + 1 2 and γ ind ( T m × n ) m 3 n + 1 2 .
Proof. 
Based on Lemmas 1, 9 and 10, we compute an (independent) dominating set of T m × n as follows. First, we make m 3 1 or m 3 horizontal separations on T m × n to obtain m 3 disjoint subgraphs T 3 × n and one T ( m 3 · m 3 ) × n if m % 3 0 , as shown in Figure 13a. Let T 1 , T 2 , ⋯, T m 3 be partitioned subgraphs such that T i is located above T i + 1 for 1 i m 3 1 . By Lemma 10, we can obtain a minimum (independent) dominating set D i of T i with size n 2 + 1 for 1 i m 3 1 . Depending on the number of m % 3 , we consider the following cases:
Case 1: m % 3 = 0 . In this case, let D m 3 be the minimum (independent) dominating set of T m 3 constructed from the proof of Lemma 10, and let D = 1 i m 3 D i . Then, | D | = m 3 ( n 2 + 1 ) .
Case 2: m % 3 = 1 . In this case, let D m 3 be the minimum (independent) dominating set of T m 3 constructed from Lemma 1. Then, | D m 3 | = n 3 . Let D = 1 i m 3 1 D i D m 3 . Then, | D | = ( m 3 1 ) ( n 2 + 1 ) + n 3 m 3 ( n 2 + 1 ) .
Case 3: m % 3 = 2 . In this case, let D m 3 be the minimum (independent) dominating set of T m 3 constructed from the proof of Lemma 9. Then, | D m 3 | = 2 n 5 . Let D = 1 i m 3 1 D i D m 3 . Then, | D | = ( m 3 1 ) ( n 2 + 1 ) + 2 n 5 m 3 ( n 2 + 1 ) .
In any case, we construct a (independent) dominating set D of T m × n with size m 3 ( n 2 + 1 ) = m 3 n + 1 2 or less. For example, Figure 13b shows the constructed (independent) dominating set D of T 8 × 13 with size 2 × 7 + 6 = ( 8 3 1 ) × 13 + 1 2 + 2 × 13 5 8 3 13 + 1 2 . That is, we obtain an upper bound m 3 n + 1 2 of γ ( T m × n ) ( γ ind ( T m × n ) ), and hence the lemma holds true. □
Figure 13. (a) Partitioning of T m × n into m 3 disjoint subgraphs, and (b) an (independent) dominating set of T m × n . Solid dashed lines indicate separations and filled circles indicate vertices in the (independent) dominating set.
Figure 13. (a) Partitioning of T m × n into m 3 disjoint subgraphs, and (b) an (independent) dominating set of T m × n . Solid dashed lines indicate separations and filled circles indicate vertices in the (independent) dominating set.
Algorithms 15 00402 g013
By the above lemma, we can see that each vertex in the constructed (independent) dominating set of T m × n almost dominates six vertices. By the structure of T m × n , each vertex dominates at most seven vertices, including its six neighbors and itself. However, there exists no dominating set of T m × n in which its each vertex dominates seven vertices. Thus, m n 7 < γ ( T m × n ) γ ind ( T m × n ) . Because an independent dominating set of a graph is a dominating set of the graph, γ ( T m × n ) provides a trivial lower bound of γ ind ( T m × n ) . Then, m n 7 < γ ( T m × n ) γ ind ( T m × n ) m 3 n + 1 2 for n m 4 . Thus, we obtain a tight upper bound of γ ( T m × n ) and γ ind ( T m × n ) . Using Lemmas 9–11, we can conclude the following theorem.
Theorem 5.
Let T m × n be a rectangular triangular-supergrid graph with n m 2 . Then, m n 7 < γ ( T m × n ) γ ind ( T m × n ) if n m 4 , and
γ ( T m × n ) ( γ ind ( T m × n ) ) = 2 n 5 , i f   m = 2 ; = n + 1 2 , i f   m = 3 ; m 3 n + 1 2 , o t h e r w i s e .
Proof. 
By Lemma 9, γ ( T 2 × n ) = γ ind ( T 2 × n ) = 2 n 5 . By Lemma 10, γ ( T 3 × n ) = γ ind ( T 3 × n ) = n + 1 2 . Lemma 11 provides that γ ( T m × n ) m 3 n + 1 2 and γ ind ( T m × n ) m 3 n + 1 2 for n m 4 . In addition, m n 7 < γ ( T m × n ) γ ind ( T m × n ) if n m 4 . Thus, the theorem holds true. □

5. Concluding Remarks

Here, we first introduce the class of extended supergrid graphs containing grid, triangular grid, supergrid, diagonal supergrid, and triangular supergrid graphs as subclasses. Domination and independent domination problems for grid graphs are known to be NP-complete, and they are NP-complete for extended supergrid graphs as well. However, the complexities of other subclasses of extended supergrid graphs remain unknown. In this paper, we first prove that the domination and independent domination problems on diagonal supergrid graphs are NP-complete. As this result can be immediately applie dto supergrid and triangular supergrid graphs, both problems are NP-complete for them as well. The studied problems on rectangular supergrid graphs and rectangular grid graphs have been solved in linear time. However, their complexities remain unknown for rectangular triangular-supergrid graphs. In this paper, we provide a tight upper bound of the domination and independent domination numbers for rectangular triangular-supergrid graphs. It might be interesting to obtain a lower bound of the domination and independent domination numbers for rectangular triangular-supergrid graphs, which we leave as an open question for future interested readers. Furthermore, the complexities of the domination and independent domination problems for triangular grid graphs remain unknown. We speculate that they are NP-complete. However, we are unable to verify this, and would like to publish it as an open problem for interested readers. Finally, we conclude the status of the complexities of the domination and independent domination problems for extended supergrid graphs in Figure 14.

Author Contributions

Conceptualization, J.-S.C. and R.-W.H.; formal analysis and investigation, R.-W.H. and Y.-F.H.; writing—original draft preparation, J.-S.C. and R.-W.H.; writing—review and editing, F.K.-K. and Y.-F.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by the National Science and Technology Council, Taiwan, under grant No. MOST 110-2221-E-324-007-MY3.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank anonymous referees for many useful comments and suggestions which have improved the presentation and correctness of this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Garey, M.R.; Johnson, D.S. Computers and Intractability: A Guide to the Theory of NP-Completeness; Freeman: San Francisco, CA, USA, 1979. [Google Scholar]
  2. Clark, B.N.; Colbourn, C.J.; Johnson, D.S. Unit disk graphs. Discret. Math. 1990, 86, 165–177. [Google Scholar] [CrossRef] [Green Version]
  3. Haynes, T.W.; Hedetniemi, S.T.; Slater, P.J. Fundamentals of Domination in Graphs; Marcel Dekker: New York, NY, USA, 1998. [Google Scholar]
  4. Haynes, T.W.; Hedetniemi, S.T.; Slater, P.J. Domination in Graphs: Advanced Topics; Marcel Dekker: New York, NY, USA, 1998. [Google Scholar]
  5. Corneil, D.G.; Perl, Y. Clustering and domination in perfect graphs. Discret. Appl. Math. 1984, 9, 27–39. [Google Scholar] [CrossRef] [Green Version]
  6. Zverovich, I.E. Satgraphs and independent domination. Part 1. Theoret. Comput. Sci. 2006, 352, 47–56. [Google Scholar] [CrossRef] [Green Version]
  7. Yannakakis, M.; Gavril, F. Edge dominating sets in graphs. SIAM J. Appl. Math. 1980, 38, 364–372. [Google Scholar] [CrossRef] [Green Version]
  8. Damaschke, P.; Muller, H.; Kratsch, D. Domination in convex and chordal bipartite graphs. Inform. Process. Lett. 1990, 36, 231–236. [Google Scholar] [CrossRef]
  9. Bui-Xuan, B.M.; Telle, J.A.; Vatshelle, M. Fast dynamic programming for locally checkable vertex subset and vertex partitioning problems. Theoret. Comput. Sci. 2013, 511, 66–76. [Google Scholar] [CrossRef]
  10. Farber, M. Independent domination in chordal graphs. Oper. Res. Lett. 1982, 1, 134–138. [Google Scholar] [CrossRef]
  11. Chang, M.S. Efficient algorithms for the domination problems on interval and circular-arc graphs. SIAM J. Comput. 1998, 27, 1671–1694. [Google Scholar] [CrossRef]
  12. Broersma, H.; Kloks, T.; Kratsch, D.; Müller, H. Independent sets in asteroidal triple-free graphs. SIAM J. Discrete Math. 1999, 12, 276–287. [Google Scholar] [CrossRef] [Green Version]
  13. Courcelle, B.; Makowsky, J.A.; Rotics, U. Linear time solvable optimization problems on graphs of bounded clique-width. Theory Comput. Syst. 2000, 33, 125–150. [Google Scholar] [CrossRef]
  14. Goddard, W.; Henning, M.A. Independent domination in graphs: A survey and recent results. Discret. Math. 2013, 313, 839–854. [Google Scholar] [CrossRef]
  15. Abrishami, G.; Henning, M.A. Independent domination in subcubic graphs of girth at least six. Discret. Math. 2018, 341, 155–164. [Google Scholar] [CrossRef]
  16. Abrishami, G.; Henning, M.A.; Bahbarnia, F. On independent domination in planar cubic graphs. Discuss. Math. Graph Theory 2019, 39, 841–853. [Google Scholar] [CrossRef]
  17. Bhangale, S.T.; Pawar, M.M. Isolate and independent domination number of some classes of graphs. AKCE Int. J. Graphs Comb. 2019, 16, 110–115. [Google Scholar] [CrossRef]
  18. Crevals, S.; Östergård, P.R.J. Independent domination of grids. Discret. Math. 2015, 338, 1379–1384. [Google Scholar] [CrossRef]
  19. Wang, G.; Yan, L.; Zaman, S.; Zhang, M. The connective eccentricity index of graphs and its applications to octane isomers and benzenoid hydrocarbons. Int. J. Quantum Chem. 2020, 120, e26334. [Google Scholar] [CrossRef]
  20. Zaman, S.; Ali, A. On connected graphs having the maximum connective eccentricity index. J. Appl. Math. Comput. 2021, 67, 131–142. [Google Scholar] [CrossRef]
  21. Zaman, S.; Abolaban, F.A.; Ahmad, A.; Asim, M.A. Maximum H-index of bipartite network with some given parameters. AIMS Math. 2021, 6, 5165–5175. [Google Scholar]
  22. Hung, R.W.; Yao, C.C.; Chan, S.J. The Hamiltonian properties of supergrid graphs. Theoret. Comput. Sci. 2015, 602, 132–148. [Google Scholar] [CrossRef]
  23. Hung, R.W. Hamiltonian cycles in linear-convex supergrid graphs. Discret. Appl. Math. 2016, 211, 99–112. [Google Scholar] [CrossRef] [Green Version]
  24. Hung, R.W.; Li, C.F.; Chen, J.S.; Su, Q.S. The Hamiltonian connectivity of rectangular supergrid graphs. Discrete Optim. 2017, 26, 41–65. [Google Scholar] [CrossRef]
  25. Hung, R.W.; Chen, H.D.; Zeng, S.C. The Hamiltonicity and Hamiltonian connectivity of some shaped supergrid graphs. IAENG Int. J. Comput. Sci. 2017, 44, 432–444. [Google Scholar]
  26. Keshavarz-Kohjerdi, F.; Hung, R.W. The Hamiltonicity, Hamiltonian connectivity, and longest (s,t)-path of L-shaped supergrid graphs. IAENG Int. J. Comput. Sci. 2020, 47, 378–391. [Google Scholar]
  27. Keshavarz-Kohjerdi, F.; Hung, R.W. Finding Hamiltonian and longest (s,t)-paths of C-shaped supergrid graphs in linear time. Algorithms 2022, 15, 61. [Google Scholar] [CrossRef]
  28. Hung, R.W.; Chiu, M.J.; Chen, J.S. The domination and independent domination problems in supergrid graphs. In Proceedings of the 21st International Conference on Computational Science and Its Applications (ICCSA’2021), University of Cagliari, Cagliari, Italy, 13–16 September 2021; pp. 631–646. [Google Scholar]
  29. Chang, T.Y.; Clark, W.E. The domination numbers of the 5×n and 6×n grid graphs. J. Graph Theory 1993, 17, 81–108. [Google Scholar] [CrossRef]
  30. Chang, T.Y.; Clark, W. E; Hare, E.O. Domination numbers of complete grids graphs. I. Ars Comb. 1994, 38, 97–112. [Google Scholar]
  31. Guichard, D.R. A lower bound for the domination number of complete grid graphs. J. Comb. Math. Comb. Comput. 2004, 49, 215–220. [Google Scholar]
  32. Bondy, J.A.; Murty, U.S.R. Graph Theory with Applications; Macmillan Press: London, UK, 1976. [Google Scholar]
  33. Itai, A.; Papadimitriou, C.H.; Szwarcfiter, J.L. Hamiltonian paths in grid graphs. SIAM J. Comput. 1982, 11, 676–686. [Google Scholar] [CrossRef]
  34. Klobučar, A. Independent sets and independent dominating sets in the strong product of paths and cycles. Math. Commun. 2005, 10, 23–30. [Google Scholar]
Figure 1. Partial fragments of (a) G , (b) T , and (c) S .
Figure 1. Partial fragments of (a) G , (b) T , and (c) S .
Algorithms 15 00402 g001
Figure 2. The containment relations among the classes of extended supergrid, grid, supergrid, diagonal supergrid, triangular supergrid, and triangular grid graphs, where C C indicates that C is a subclass of C . NP-c = NP-complete, P = Polynomial, and ? = unknown for the studied problems.
Figure 2. The containment relations among the classes of extended supergrid, grid, supergrid, diagonal supergrid, triangular supergrid, and triangular grid graphs, where C C indicates that C is a subclass of C . NP-c = NP-complete, P = Polynomial, and ? = unknown for the studied problems.
Algorithms 15 00402 g002
Figure 3. (a) A rectangular grid graph G 8 × 9 , (b) a rectangular supergrid graph R 8 × 9 , and (c) a rectangular triangular-supergrid graph T 8 × 9 , where the set of eight arrow lines in (b) indicates a horizontal path P 9 and the bold dashed lines in (c) indicate vertical and horizontal separations on T 8 × 9 .
Figure 3. (a) A rectangular grid graph G 8 × 9 , (b) a rectangular supergrid graph R 8 × 9 , and (c) a rectangular triangular-supergrid graph T 8 × 9 , where the set of eight arrow lines in (b) indicates a horizontal path P 9 and the bold dashed lines in (c) indicate vertical and horizontal separations on T 8 × 9 .
Algorithms 15 00402 g003
Figure 4. (a) A grid graph G g , (b) a grid graph G g that magnifies each edge of G g by a factor of seven, (c) a snake ( u , v ) -path S ( u , v ) with eight vertices, and (d) a diagonal supergrid graph G d constructed from G g by replacing each enlarged path with a snake path in (c), where the solid lines represent edges of G g and G d , double circles represent the vertices of G g , and filled circles represent the vertices in a dominating set of G g or G d .
Figure 4. (a) A grid graph G g , (b) a grid graph G g that magnifies each edge of G g by a factor of seven, (c) a snake ( u , v ) -path S ( u , v ) with eight vertices, and (d) a diagonal supergrid graph G d constructed from G g by replacing each enlarged path with a snake path in (c), where the solid lines represent edges of G g and G d , double circles represent the vertices of G g , and filled circles represent the vertices in a dominating set of G g or G d .
Algorithms 15 00402 g004
Figure 5. Arrangement of snake paths for a square ( i , j ) , ( i , j + 1 ) , ( i + 1 , j ) , ( i + 1 , j + 1 ) of G g , where (a) i , j are even or odd and (b) i is odd and j is even, or i is even and j is odd.
Figure 5. Arrangement of snake paths for a square ( i , j ) , ( i , j + 1 ) , ( i + 1 , j ) , ( i + 1 , j + 1 ) of G g , where (a) i , j are even or odd and (b) i is odd and j is even, or i is even and j is odd.
Algorithms 15 00402 g005
Figure 6. Arrangement of snake paths in G d from G g = G 16 × 16 ; thick triangle lines denote the snake paths of G d and horizontal or vertical dashed lines represent the enlarged paths of G g .
Figure 6. Arrangement of snake paths in G d from G g = G 16 × 16 ; thick triangle lines denote the snake paths of G d and horizontal or vertical dashed lines represent the enlarged paths of G g .
Algorithms 15 00402 g006
Figure 11. γ ( T 2 × n ) = γ ind ( T 2 × n ) = 2 n 5 for 2 n 10 ; filled circles indicate vertices in the minimum (independent) dominating set of T 2 × n .
Figure 11. γ ( T 2 × n ) = γ ind ( T 2 × n ) = 2 n 5 for 2 n 10 ; filled circles indicate vertices in the minimum (independent) dominating set of T 2 × n .
Algorithms 15 00402 g011
Figure 14. The complexities of the domination and independent domination problems for the classes of extended supergrid graphs. NP-c = NP-complete, P = Polynomial, * = this paper solved, ?NP-c = speculated to be NP-complete, and ?P = speculated to be polynomial.
Figure 14. The complexities of the domination and independent domination problems for the classes of extended supergrid graphs. NP-c = NP-complete, P = Polynomial, * = this paper solved, ?NP-c = speculated to be NP-complete, and ?P = speculated to be polynomial.
Algorithms 15 00402 g014
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chen, J.-S.; Hung, R.-W.; Keshavarz-Kohjerdi, F.; Huang, Y.-F. Domination and Independent Domination in Extended Supergrid Graphs. Algorithms 2022, 15, 402. https://doi.org/10.3390/a15110402

AMA Style

Chen J-S, Hung R-W, Keshavarz-Kohjerdi F, Huang Y-F. Domination and Independent Domination in Extended Supergrid Graphs. Algorithms. 2022; 15(11):402. https://doi.org/10.3390/a15110402

Chicago/Turabian Style

Chen, Jong-Shin, Ruo-Wei Hung, Fatemeh Keshavarz-Kohjerdi, and Yung-Fa Huang. 2022. "Domination and Independent Domination in Extended Supergrid Graphs" Algorithms 15, no. 11: 402. https://doi.org/10.3390/a15110402

APA Style

Chen, J. -S., Hung, R. -W., Keshavarz-Kohjerdi, F., & Huang, Y. -F. (2022). Domination and Independent Domination in Extended Supergrid Graphs. Algorithms, 15(11), 402. https://doi.org/10.3390/a15110402

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop