Next Article in Journal
Some New James Type Geometric Constants in Banach Spaces
Previous Article in Journal
Inference for Kumaraswamy Distribution under Generalized Progressive Hybrid Censoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Independent Roman Domination: The Complexity and Linear-Time Algorithm for Trees

1
Institute of Computing Science and Technology, Guangzhou University, Guangzhou 510006, China
2
School of Electronic Engineering and Computer Science, Peking University, Beijing 100871, China
*
Author to whom correspondence should be addressed.
Symmetry 2022, 14(2), 404; https://doi.org/10.3390/sym14020404
Submission received: 13 January 2022 / Revised: 5 February 2022 / Accepted: 10 February 2022 / Published: 18 February 2022

Abstract

:
For a graph G = ( V , E ) , an independent Roman dominating function (IRDF) is a function f : V { 0 , 1 , 2 } having the property that: (1) every vertex assigned a value of 0 is adjacent to at least one vertex assigned a value of 2, (2) there are no two adjacent vertices with positive assignments. The weight of an IRDF ( w ( f ) ) is the sum of assignments for all vertices. The minimum weight of an independent Roman dominating function on graph G is the independent Roman domination number, denoted by i R ( G ) . In this paper, we prove that the decision problem of minimum IRDF is N P -complete for chordal bipartite graphs. Then, we research the difference in complexity between the decision problem of RDF and IRDF. Finally, we propose a linear-time algorithm for computing the minimum weight of an independent Roman dominating function in trees.

1. Introduction

In this paper, the independent Roman dominating function we have studied is a variant of the Roman dominating function.
Let G be a simple and undirected graph with sets of vertex V ( G ) and edge E ( G ) . For every vertex v V , we denote the set { u V ( G ) : u v E ( G ) } is the open neighborhood N ( v ) and the set N ( v ) { v } is the closed neighborhood N [ v ] . In graph G, the degree of a vertex v is denoted by d G ( v ) , the minimum degree is denoted by δ = δ ( G ) and the maximum degree is denoted by Δ = Δ ( G ) . If d G ( u ) = 1 , then we call the vertex u is a leaf and its neighbor is a support vertex. If a support vertex is adjacent to at least two leaves, we call it a strong support vertex. If V ( G ) can be partitioned into two disjoint independent sets, we call the graph G a bipartite graph. If every cycle of length at least 6 has a chord in bipartite graph G, then the bipartite graph G is called a chordal bipartite graph. A tree T is an acyclic connected graph. For any positive integer k, we denote the set { 1 , 2 , . . . , k } by [ k ] . The dihedral group D n is the symmetry group of a regular polygon with n sides.
For a graph G = ( V , E ) , let f : V { 0 , 1 , 2 } be a function, V i = { v V : f ( v ) = i } for i = 0 , 1 , 2 be a set, and ( V 0 , V 1 , V 2 ) be the ordered partition of V induced by f. The functions f : V { 0 , 1 , 2 } and the ordered partitions ( V 0 , V 1 , V 2 ) of V are a 1 1 correspondence. So, we will write f = ( V 0 , V 1 , V 2 ) .
The concept of Roman domination in graphs was introduced by Cockayne et al. in 2004 [1]. The definition of Roman dominating function is that a function f : V { 0 , 1 , 2 } is a Roman dominating function (RDF) if every vertex assigned a value of 0 is adjacent to at least one vertex assigned a value of 2 [2]. The weight of an RDF is the sum of assignments for all vertices. The minimum weight of a Roman dominating function on G is the Roman domination number, denoted by γ R ( G ) .
To date, many articles have been published on the topic of Roman domination. Cockayne et al. [2] introduced the properties of Roman dominating functions. Blidia, Chambers et al. [3,4,5,6] researched the bounds on Roman dominating functions and Bermudo et al. [7,8] discovered the relationships with some domination parameters. In terms of algorithm and complexity, Cockayne et al. [2] introduced a linear-time algorithm for computing Roman domination problem on trees. McRae [2] showed the decision problem corresponding to Roman dominating functions (DECIDE-RDF) was N P -complete for bipartite graphs, split graphs, and planar graphs. Moreover, some linear-time algorithms for the Roman domination problem on bounded treewidth graphs and block graphs were proposed [9]. Liedloff et al. [10] discovered that there were linear-time algorithms for computing the Roman domination number on cographs and interval graphs. Many variants of the Roman domination problem have also been studied in depth by many scholars [11,12,13,14].
The concept of the independent dominating set originated from the chessboard problems. The correlation theory was formalized by Berge [15] in 1962. A set S is independent if there are no connected edges for any two vertices in S. An independent dominating set of G is a set that is both dominating and independent in G. The independent domination number of G, denoted by i G , is the minimum size of an independent dominating set.
Bound on the independent domination number was established by Berge [16]. Subsequently, the upper bound was improved by Blidia et al. [17]. Moreover, the research of independent dominating problem has also been extended to various special graph classes, for example, claw-free graph [18], bipartite graph [19], regular graph [20]. In terms of complexity, the independent domination problem is N P -complete even when restricted to bipartite graphs [21], to unit disk graphs [22], or to planar cubic graphs [23]. It was straightforward to calculate the independent domination number of a tree in linear-time [24]. Telle and Proskurowski [25] proved a polynomial-time algorithm for graphs of bounded treewidth and Farber [26] showed the linear-time algorithm of chordal graphs.
The independent Roman domination we studied in this paper is a variant of independent domination and Roman domination. An independent Roman dominating function (IRDF) is a function f : V { 0 , 1 , 2 } having the property that: (1) every vertex assigned a value of 0 is adjacent to at least one vertex assigned a value of 2, (2) there are no two adjacent vertices with positive assignments. The weight of an IRDF ( w ( f ) ) is the sum of assignments for all vertices. The minimum weight of an independent Roman dominating function on graph G is the independent Roman domination number, denoted by i R ( G ) .

1.1. Related Work

Cockayne et al. [2] put forward relevant concepts and conjectures, and proposed some open questions. Adabi et al. [27] studied the relations with independent domination, Roman domination and obtained some properties and bounds. Rad et al. [28] improved some previous bounds which were proposed by Adabi et al. [27]. Chellali et al. proposed a strong equivalence relationship between independent Roman domination numbers and Roman domination numbers on Trees [29]. In the private communication between Cockayne et al. and BMcRae [2], they proposed about the decision problem corresponding to independent Roman dominating functions is N P -complete, even when restricted to bipartite graphs. Wu et al. [30] conducted an in-depth study of independent Roman domination for stable and vertex-critical graphs.

1.2. Our Results

In this paper, we study the complexity and algorithmic aspects of independent Roman domination in graphs. Firstly, we show that the decision problem corresponding to independent Roman dominating functions (DECIDE-IRDF) is N P -complete, even when restricted to chordal bipartite graphs. Secondly, we discuss the complexity difference between DECIDE-RDF and DECIDE-IRDF by portraying a special graph class where one problem can be solved in polynomial time and the other is N P -complete. Finally, we present a linear-time algorithm for computing the independent Roman domination number in trees.
The rest of the paper is organized as follows. In Section 2, we show that the decision problem of IRDF is N P -complete for chordal bipartite graphs. In Section 3, we give a characterization of the difference in complexity between the decision problems of RDF and IRDF. In Section 4, we propose a linear-time algorithm for computing the independent Roman domination number in trees. In Section 5, we conclude the paper.

2. DECIDE-IRDF Is NP-Complete for Chordal Bipartite Graphs

In this section, we show that the decision problem of IRDF is N P -complete for chordal bipartite graphs. Firstly, the independent Roman domination problem ( I R D ) is an N P problem, since we can check whether a function f is an IRDF and the weight of f at most k in polynomial time. Secondly, our goal is to transform any instance of X 3 C into an instance G of I R D . Let X = { x 1 , x 2 , . . . , x 3 q } and C = { C 1 , C 2 , . . . , C t } be an arbitrary of X 3 C .
Construction 1.
For each corresponding c j in C, we build a circle C 4 with four sides and add an edge from any one vertex of C 4 ( a j ) to c j . Let b j , d j , e j be the another three vertices different from a j of C 4 . Let Y = { c 1 , c 2 , . . . , c t } . Now to obtain a graph G, we add edges c j x i if x i C j (see Figure 1). Set k = 3 t + q . Clearly, G is a chordal bipartite graph.
Lemma 1.
If the instance X , C of X 3 C has a solution C , there exists an independent Roman dominating function with weight f ( G ) = 3 t + q in graph G.
Proof. 
Suppose that the instance X , C of X 3 C has a solution C . We construct an independent Roman dominating function f on G of weight k. For every C j , assign the 2 to c j if C j C and 0 to c j if C j C . If we assign the 2 to c j , let f ( a j ) = 0 and f ( d j ) = 2 . If we assign the 0 to c j , let f ( a j ) = 2 and f ( d j ) = 1 . Finally, assign 0 to the remaining vertices of G. Since C exists, its cardinality is precisely q, the number of c j ’s with value 2 is q, having disjoint neighborhoods in { x 1 , x 2 , . . . , x 3 q } , where every x i has one neighbor be assigned 2. Hence, it is straightforward to see that f is an independent Roman dominating function with weight f ( G ) = 3 t + q = k .    □
Claim 1.
Let H j be the subgraph of G induced by the vertices of { a j , b j , c j , d j , e j } , and let f : V { 0 , 1 , 2 } be an IRDF on H j with minimum weight, then:
f ( H j ) = 3 i f f ( c j ) = 0 4 i f f ( c j ) 0
We give all the assignment possibilities of the subgraph H j on independent Roman dominating function f and show them in Figure 2 with symmetrical Figure 2 and Figure 3.
Claim 2.
For a graph G which has an independent Roman function f with weight at most k, the c j will not be assigned a value of 1.
Proof. 
We suppose that there exists a t satisfies f ( c t ) = 1 . By Claim 1, this implies that f ( H t ) = 4 . Now, we can define a new IRDF g : V { 0 , 1 , 2 } as g ( c t ) = g ( d t ) = 2 , g ( a t ) = g ( b t ) = 0 and g ( u ) = f ( u ) otherwise. It is clear that g is an IRDF on graph G and w ( g ) = w ( f ) . Therefore, we can replace all cases where c j is assigned 1.    □
Claim 3.
For a graph G which has an independent Roman domination function f with weight at most k, f ( x i ) = 0 .
Proof. 
Conversely, we suppose that f ( x a ) 0 for some x a X . We have f ( x a ) 1 , thus for each c a C which exists the edge with the x a , let f ( c a ) = 0 . By Claims 1 and 2, we know that if f ( c a ) = 0 , we have f ( H a ) = 3 and if f ( c a ) = 2 , we have f ( H a ) = 4 . Then, we discuss the rest of the vertices in X except x a .   □
Case 1. 
No vertex can be dominated by c j assigned to 2.
According the assumption, we know u N ( x i ) f ( u ) = 0 for each x i X .
It implying that f ( x i ) > 0 for each x i X and f ( c j ) = 0 for each c j Y .
Since X = 3 q , a contradiction we have f ( G ) 3 q + 3 t > k .
Case 2. 
There exist some vertices be dominated by c j assigned to 2. Considering the following subcases.
Subcase 2.1. 
Except for vertex x a , the other vertices can be fully dominated by c j assigned to 2.
Hence, f ( x i ) = 0 for each { x i : x i X , x i x a } .
The number of f ( c j ) = 2 equals 3 q 1 3 .
When other vertices in Y are assigned a value of 0, the sum of the weights of graph G is the smallest.
We have f ( G ) 3 q 1 3 * 4 + 1 + ( t 3 q 1 3 ) * 3 > 3 t + q , this contradicts our known.
Subcase 2.2. 
There exist some vertices not be dominated by c j assigned to 2.
We assume m equals the number of vertices which f ( c j ) = 2 and we have m < q .
We let n = 3 q 3 m represent vertices in set X whose assignments are greater than 0.
Hence, f ( G ) n + 4 m + ( t m ) * 3 .
Combining these three formulas, we have a contradiction f ( G ) > 3 t + q .
Combining the above two situations, we prove that f ( x i ) = 0 for each x i X .
Lemma 2.
If there exists an independent Roman dominating function with weight f ( G ) = 3 t + q in graph G, the instance X , C of X 3 C has a solution C .
Proof. 
Suppose that G has an independent Roman function with weight at most k. Among all such functions let f = ( V 0 , V 1 , V 2 ) . Clearly, by Claims 2 and 3, we have f ( c j ) = 2 or 0 for each j [ t ] and f ( x i ) = 0 for each i [ 3 q ] .
Moreover, each x i is dominated by its adjacent c j , so the number of vertices which f ( c j ) = 2 equals p and p 3 q 3 = q . Since f ( G ) = 4 p + ( t p ) * 3 3 t + q , combining the above two inequalities, we have p = q . Consequently, C = { C j : g ( c j ) = 2 } is an exact cover for C.
By Lemmas 1 and 2, we have reached the final conclusion.   □
Theorem 1.
The decision problem of IRDF is N P -complete for chordal bipartite graphs.

3. Complexity Difference between Roman Domination and Independent Roman Domination

Before that, many scholars have conducted in-depth research on the complexity of decision problems for different graph classes. However, from the overall perspective, we hope that through the research on the complexity differences, we can make more effective decisions when constructing models for practical problems in life.
Therefore, we want to find some special graph classes in which one problem is solvable in polynomial time, whereas the other one is N P -complete. Next, we describe the difference in complexity between Roman domination and independent Roman domination by defining two special graph classes G R and G I R . On any G R graph, the Roman domination problem is solvable in polynomial time and the independent Roman domination problem is N P -complete. However, on any G I R graph, the independent Roman domination problem is solvable in polynomial time and the Roman domination problem is N P -complete.
Firstly, we define that G is constructed from G, which means that the original vertices and edges on graph G are not changed, but only changed into G by adding a specific structure.
Construction 2.
Let graph G have n vertices. For any vertex v i in graph G, we define some corresponding vertex sets and edge sets.
  • A i = { a i 1 , a i 2 } .
  • B i = { b i 1 , b i 2 , b i 3 } .
  • C i = { c i 1 , c i 2 , c i 3 , c i 4 , c i 5 } .
  • E i A = { a i 1 a i 2 }
  • E i B = { b i 1 b i 2 , b i 2 b i 3 , b i 3 b i 1 }
  • E i C = { c i 1 c i 2 , c i 1 c i 3 , c i 1 c i 4 , c i 1 c i 5 }
(a) 
For any vertex v i in the graph G, add the set of vertices A i B i C i .
(b) 
For any vertex v i in the graph G, add the set of edges { v i a i 1 } E i A { a i 1 b i 1 } E i B { b i 1 c i 1 } E i C .
On the basis of graph G, the new graph formed according to the above construction methods is called G I R graph. See Figure 3.
Lemma 3.
Let G = ( V , E ) be a G I R graph which is constructed from graph G = ( V , E ) , we have i R ( G ) = 6 n .
Proof. 
For any vertex v i V , let H i be a subgraph of G which is induced by the set of vertices ( { v i } A i B i C i ) . It is clear that for any IRDF f of G , we have u V ( H i ) f ( u ) 6 . Therefore we can infer that i R ( G ) 6 n . Let a function g : V { 0 , 1 , 2 } with the property that for each i n , g ( a i 1 ) = g ( b i 2 ) = g ( c i 1 ) = 2 and g ( u ) = 0 otherwise. It is clear that g is an IRDF on G and w ( g ) = 6 n . So we have i R ( G ) 6 n . This implies that i R ( G ) = 6 n .   □
Lemma 4.
Let G = ( V , E ) be a G I R graph which is constructed from graph G = ( V , E ) . Then, graph G has a Roman domination function where the weight at most k if and only if G I R graph G has a Roman domination function where the weight at most k + 5 n .
Proof. 
(Necessity:) Since G has a Roman domination function f : V ( G ) { 0 , 1 , 2 } with weight at most k, we can define f : V ( G ) { 0 , 1 , 2 } as follows: for each i n ,
  • f ( a i 2 ) = 1 , f ( b i 1 ) = f ( c i 1 ) = 2 .
  • f ( v i ) = f ( v i ) .
  • f ( u ) = 0 otherwise.
It is clear that f is a Roman domination function on G , and the weight of f at most k + 5 n .
(Sufficiency:) We assume that function g : V ( G ) { 0 , 1 , 2 } is a Roman domination function on G with minimum weight and w ( g ) k + 5 n .    □
Claim 4.
g ( c i 1 ) = 2 for each i n .
Proof. 
We suppose that there exists a t satisfying g ( c t 1 ) < 2 . We have g ( c t 2 ) + g ( c t 3 ) + g ( c t 4 ) + g ( c t 5 ) 4 . Now, we can define a new RDF g : V ( G ) { 0 , 1 , 2 } as g ( c t 1 ) = 2 , g ( c t 2 ) = g ( c t 3 ) = g ( c t 4 ) = g ( c t 5 ) = 0 , and g ( u ) = g ( u ) otherwise. It is clear that g is a Roman domination function on G I R graph G and w ( g ) < w ( g ) . There is a contradiction with our assumption that the weight of g is minimum. The conclusion is proved.   □
Claim 5.
Let H i be the subgraph of G induced by the vertex set ( A i B i ) , then g ( H i ) 3 for each i n .
Proof. 
Without loss of generality, we assume that g ( H i ) 2 . There is no vertex that connects all the other vertices on H i , so g ( H i ) 2 does not make all the vertices on H i under dominated, this is a contradiction. Therefore, g ( H i ) 3 for each i n .   □
Now, we proceed to prove Lemma 4. Firstly, we define a function g : V ( G ) { 0 , 1 , 2 } satisfying that for each i n , if g ( a i 1 ) = 2 and g ( v i ) = 0 , let g ( v i ) = 1 ; g ( v i ) = g ( v i ) otherwise.
Since function g is a Roman domination function on G I R graph G , it implies that g is a Roman domination function on graph G. By Claims 4 and 5, we have w ( g ) w ( g ) 5 n . By the known condition w ( g ) k + 5 n , we come to conclusion w ( g ) k . The conclusion of Lemma 4 is proved.
For general graphs, the decision problem of RDF is N P -complete, by Lemma 4, we know that for G I R graphs the decision problem of RDF is N P -complete.
By Lemmas 3 and 4, we came to the final conclusion.
Theorem 2.
In G I R graphs, the independent Roman domination problem is solvable in polynomial time and the Roman domination problem is N P -complete.
Below, we introduce another special graph, the G R graph.
Construction 3.
Let graph G have n vertices. For any vertex v i in graph G, we define some corresponding vertex sets and edge sets.
  • A i = { a i j : j [ 7 ] } .
  • B i = { b i j : j [ 7 n + 1 ] } .
  • E i A = { a i 1 a i 2 , a i 2 a i 3 , a i 3 a i 4 , a i 4 a i 5 , a i 5 a i 6 , a i 6 a i 1 , a i 2 a i 4 , a i 1 a i 7 , a i 3 a i 7 , a i 6 a i 7 } .
(a) 
For any vertex v i in the graph G, add the set of vertices { s i } A i B i .
(b) 
For any vertex v i in the graph G, add the set of edges { v i a i 1 } E i A { a i 1 s i } { s i b i j : j [ 7 n + 1 ] } .
On the basis of graph G, the new graph formed according to the above construction methods is called G R graph. See Figure 4.
Lemma 5.
Let G = ( V , E ) be a G R graph which is constructed from graph G = ( V , E ) , we have γ R ( G ) = 6 n .
Proof. 
Now, we define a function f : V { 0 , 1 , 2 } satisfying that for each i n ,
  • f ( a i 1 ) = f ( a i 4 ) = 2 , f ( p ) = 0 p A i { a i 1 , a i 4 } .
  • f ( s i ) = 2 .
  • f ( p ) = 0 otherwise.
It is clear that function f is a Roman domination function on G R graph G , and the weight of f is 6 n . So we have γ R ( G ) 6 n .   □
Claim 6.
Let G = ( V , E ) be a G R graph which is constructed from graph G = ( V , E ) . We have γ R ( G ) 6 n .
Proof. 
Let H i be the subgraph of G R graph G which is induced by the vertex set ( { s i } A i B i ) for each i n . We assume that there exists a Roman domination function f on graph G and w ( f ) < 6 n . It can infer that there exists a t satisfying w ( f ) < 6 for subgraph H t . It is obvious that v A t f ( v ) 4 and v { s t } B t f ( v ) 2 ; otherwise it contradicts that f is a Roman domination function. So we can infer that v V ( H t ) f ( v ) v A t f ( v ) + v { s t } B t f ( v ) 4 + 2 = 6 .
This contradicts the assumption v V ( H t ) f ( v ) < 6 . So we have w ( f ) 6 n Therefore, Claim 6 is proved.
By Claim 6, we have γ R ( G ) 6 n . This implies that γ R ( G ) = 6 n . Therefore, the Lemma 5 is proved.   □
Lemma 6.
Let G = ( V , E ) be a G R graph which is constructed from graph G = ( V , E ) . Then, graph G has an independent Roman domination function where the weight at most k if and only if G R graph G has an independent Roman domination function where the weight at most k + 6 n .
Proof. 
Let H i be the subgraph of G R graph G which is induced by the vertex set ( { s i } A i B i ) for each i n .
(Necessity:) We assume that graph G has an independent Roman domination function g and w ( g ) k . Next, we define a function g : V ( G ) { 0 , 1 , 2 } that satisfies the following conditions:
  • (1): if g ( v i ) = 0 , let g ( v i ) = 0 , g ( a i 1 ) = g ( a i 4 ) = g ( s i ) = 2 , and g ( p ) = 0 for p V ( H i ) { a i 1 , a i 4 , s i } .
  • (2): if g ( v i ) = 1 , let g ( v i ) = 1 , g ( a i 4 ) = g ( a i 7 ) = g ( s i ) = 2 , and g ( p ) = 0 for p V ( H i ) { a i 4 , a i 7 , s i } .
  • (3): if g ( v i ) = 2 , let g ( v i ) = 2 , g ( a i 4 ) = g ( a i 7 ) = g ( s i ) = 2 , and g ( p ) = 0 for p V ( H i ) { a i 4 , a i 7 , s i } .
It is obvious that g is an independent Roman domination function on G R graph G . Since we know that w ( g ) k , by (1)–(3), we have w ( g ) k + 6 n . Therefore, function g is an independent Roman domination function on G R graph G and w ( g ) k + 6 n . We have completed the proof of the necessity.
(Sufficiency:) We assume that G has an independent Roman domination function and the weight at most k + 6 n . Now, we define a function f : V ( G ) { 0 , 1 , 2 } is an independent Roman domination function which has the minimum weight. It is clear that w ( f ) k + 6 n .    □
Lemma 7
([27]). For any graph G of order n, i R ( G ) n .
Claim 7.
w ( f ) 7 n
Proof. 
Through the proof of necessity, we know that given an independent Roman domination function which the weight at most k on graph G, we can find an independent Roman domination function on G R graph G which the weight at most k + 6 n . By Lemma 7, we know that for any graph G of order n, i R ( G ) n . Therefore, we can get an independent Roman domination function on G which the weight at most 7 n . We have the fact that f is the independent Roman domination function with the minimum weight, so w ( f ) 7 n .    □
Claim 8.
f ( s i ) = 2 for each i n .
Proof. 
Conversely, we assume that there exists a t satisfying that f ( s t ) 2 .
If f ( s t ) = 1 , for each b t j B t , f ( b t j ) = 0 , it is easy to prove that there is a contradiction with f is an IRDF.
If f ( s t ) = 0 , this implies that f ( b t j ) > 0 for each b t j B t . Since B t = 7 n + 1 , we can infer that w ( f ) > 7 n . It contradicts the conclusion of Claim 7. Hence, the conclusion is proven.    □
Claim 9.
f ( a i 1 ) = 0 for each i n .
Proof. 
Conversely, we assume that there exists a t satisfying that f ( a t 1 ) > 0 . We can know that the neighbor of a t 1 must be assigned 0 for which f ( s t ) = 0 . This is a contradiction by Claim 8. Hence, the conclusion is proven.    □
Claim 10.
v V ( H i ) f ( v ) 6 for each i n .
Proof. 
It can be verified that v A i f ( v ) 4 for each i n ; otherwise it would contradict the known fact that f is an independent Roman domination function on G R graph G . Futher, by Claim 8, we know that f ( s i ) = 2 . Therefore, we have
v V ( H i ) f ( v ) v A i f ( v ) + f ( s i ) 4 + 2 = 6 .
We now return to prove the sufficiency part of Lemma 6. Define f : V ( G ) { 0 , 1 , 2 } as f ( v i ) = f ( v i ) for each i n . We want to show that f is an independent Roman domination function on graph G. We know that N G ( v t ) = N G ( v t ) { a t 1 } . From Claim 9, we have that f ( a t 1 ) = 0 . Hence, v t does not dominated by a t 1 . So we can infer that f is an independent Roman domination function on graph G. According to the known condition w ( f ) k + 6 n and Claim 10, we deduce that w ( f ) w ( f ) 6 n k .
For general graphs, the decision problem of IRDF is N P -complete [2], by Lemma 6, we know that for G R graphs the decision problem of IRDF is N P -complete.
By Lemmas 5 and 6, we have reached the final conclusion.    □
Theorem 3.
In G R graphs, the Roman domination problem is solvable in polynomial time and the independent Roman domination problem is N P -complete.

4. A Linear Algorithm for Independent Roman Domination in Trees

In this section, we propose a linear-time algorithm for computing the independent Roman dominating number i R ( G ) in trees. Let γ I R D ( G ) similarly represent the independent Roman domination number of graph G.
Let u be a special vertex of graph G, and an independent Roman domination function with minimum weight on graph G satisfy that f ( u ) { 0 , 1 , 2 } . So it is useful to consider the following three domination problems.
γ I R D 0 ( G , u ) = m i n { ω ( f ) : f is an IRDF of G and f ( u ) = 0 }
γ I R D 1 ( G , u ) = m i n { ω ( f ) : f is an IRDF of G and f ( u ) = 1 }
γ I R D 2 ( G , u ) = m i n { ω ( f ) : f is an IRDF of G and f ( u ) = 2 }
Lemma 8.
For any graph G with a specific vertex u, we have
γ I R D ( G , u ) = m i n { γ I R D 0 ( G , u ) , γ I R D 1 ( G , u ) , γ I R D 2 ( G , u ) }
γ I R D 00 ( G , u ) = m i n { ω ( f ) : f is an IRDF of G u } .
Note that γ I R D 00 ( G , u ) γ I R D 0 ( G , u ) , since an IRDF f of G and f ( u ) = 0 is also an IRDF of G u .
Theorem 4.
Suppose that graph G contains special vertices u and graph H contains special vertices v, and graph I is obtained by adding a new u v edge to the disjoint union of graph G and H. Therefore, the following equations are true.
(1) 
γ I R D 0 ( I , u ) = m i n { γ I R D 0 ( G , u ) + γ I R D 0 ( H , v ) , γ I R D 0 ( G , u ) + γ I R D 1 ( H , v ) , γ I R D 00 ( G , u ) + γ I R D 2 ( H , v ) }
(2) 
γ I R D 1 ( I , u ) = γ I R D 1 ( G , u ) + γ I R D 0 ( H , v )
(3) 
γ I R D 2 ( I , u ) = γ I R D 2 ( G , u ) + γ I R D 00 ( H , v )
(4) 
γ I R D 00 ( I , u ) = γ I R D 00 ( G , u ) + γ I R D ( H , v )
= γ I R D 00 ( G , u ) + m i n { γ I R D 0 ( H , v ) , γ I R D 1 ( H , v ) , γ I R D 2 ( H , v ) }
Proof. (1) We can conclude from the fact that f is an IRDF of I with f ( u ) = 0 if and only if f = g h , where g is an IRDF of G with g ( u ) = 0 and h is an IRDF of H with h ( v ) = 0 , g is an IRDF of G with g ( u ) = 0 and h is an IRDF of H with h ( v ) = 1 , or g is an IRDF of G u and h is an IRDF of H with h ( v ) = 2 .
(2) We can conclude from the fact that f is an IRDF of I with f ( u ) = 1 if and only if f = g h , where g is an IRDF of G with g ( u ) = 1 and h is an IRDF of H with h ( v ) = 0 .
(3) We can conclude from the fact that f is an IRDF of I with f ( u ) = 2 if and only if f = g h , where g is an IRDF of G with g ( u ) = 2 and h is an IRDF of H v .
(4) We can conclude from the fact that f is an IRDF of I u if and only if f = g h , where g is an IRDF of G u and h is an IRDF of H.    □
Lemma 8 and Theorem 4 give the following dynamic programming algorithm for the independent Roman domination problem in trees (See Algorithm 1). The tree ordering in the algorithm refers to any traversal order of the tree, and pre-order, in-order, and post-order traversal are possible.
Algorithm 1 Independent Roman Domination
Input: A tree T with a tree ordering { v 1 , v 2 , . . . , v n } .
Output: the Independent Roman domination number γ I R D ( T ) of T.
1:
for i = 1 to n do
2:
     γ 00 ( v i ) = 0
3:
     γ 0 ( v i ) =
4:
     γ 1 ( v i ) = 1
5:
     γ 2 ( v i ) = 2
6:
for i = 1 to n 1  do
7:
    let v j be the parent of v i
8:
     γ 0 ( v j ) = m i n { γ 0 ( v j ) + γ 0 ( v i ) , γ 0 ( v j ) + γ 1 ( v i ) , γ 00 ( v j ) + γ 2 ( v i ) }
9:
     γ 1 ( v j ) = γ 1 ( v j ) + γ 0 ( v i )
10:
     γ 2 ( v j ) = γ 2 ( v j ) + γ 00 ( v i )
11:
     γ 00 ( v j ) = γ 00 ( v j ) + m i n { γ 0 ( v i ) , γ 1 ( v i ) , γ 2 ( v i ) }
12:
return min { γ 0 ( v n ) , γ 1 ( v n ) , γ 2 ( v n ) }
Below, we take Figure 5 as an example to show the changes in the values of intermediate parameters during the execution of each step of the algorithm in the form of a table (See Table 1, Table 2, Table 3, Table 4, Table 5 and Table 6). We take the result of the post-order traversal as the tree order.
It can be seen from Table 6, min { γ 0 ( v 6 ) , γ 1 ( v 6 ) , γ 2 ( v 6 ) } = 3 . Therefore, the independent Roman domination number of this tree is 3.

5. Conclusions

In this paper, we research the decision problem IRDF corresponding to independent Roman dominating functions is N P -complete, even when restricted to chordal bipartite graphs. We prove the complexity difference between DECIDE-RDF and DECIDE-IRDF. At the same time, we also propose a linear-time algorithm for computing the independent Roman domination number in trees. We believe that linear-time algorithms on block graphs and interval graphs are also possible, and we will continue to study this aspect in the future.

Author Contributions

Z.S. and P.W. contributed to the supervision, methodology, validation, project administration, and formal analysis. Z.D., H.J. and X.L. contributed to the investigation, resources, and some computations and wrote the initial draft of the paper, which was investigated and approved by Z.S. and Z.D. wrote the final draft. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Stewart, I. Defend the Roman Empire! Sci. Am. 1999, 281, 136–138. [Google Scholar] [CrossRef]
  2. Cockayne, E.J.; Dreyer, P.A.; Hedetniemi, S.M.; Hedetniemi, S.T. Roman domination in graphs. Discret. Math. 2004, 278, 11–22. [Google Scholar] [CrossRef] [Green Version]
  3. Blidia, M.; Bouchou, A.; Chellali, M. Extremal Graphs for a Bound on the Roman Domination Number. Discuss. Math. Graph Theory 2020, 40, 771–785. [Google Scholar] [CrossRef]
  4. Chambers, E.W.; Kinnersley, B.; Prince, N.; West, D.B. Extremal problems for roman domination. Siam J. Discret. Math. 2009, 23, 1575–1586. [Google Scholar] [CrossRef] [Green Version]
  5. Liu, C.; Chang, G. Roman Domination On 2-Connected Graphs. Siam J. Discret. Math. 2012, 26, 193–205. [Google Scholar] [CrossRef] [Green Version]
  6. Liu, C.H.; Chang, G.J. Upper bounds on Roman domination numbers of graphs. Discret. Math. 2012, 312, 1386–1391. [Google Scholar] [CrossRef] [Green Version]
  7. Xing, H.M.; Chen, X.; Chen, X.G. A note on Roman domination in graphs. Discret. Math. 2006, 306, 3338–3340. [Google Scholar] [CrossRef] [Green Version]
  8. Bermudo, S.; Fernau, H.; Sigarreta, J. The Differential And The Roman Domination Number Of A Graph. Appl. Anal. Discret. Math. 2014, 8, 155–171. [Google Scholar] [CrossRef]
  9. Fernau, H. Roman domination: A parameterized perspective. Int. J. Comput. Math. 2008, 85, 25–38. [Google Scholar] [CrossRef]
  10. Liedloff, M.; Kloks, T.; Liu, J.; Peng, S.L. Efficient algorithms for Roman domination on some classes of graphs. Discret. Appl. Math. 2008, 156, 3400–3415. [Google Scholar] [CrossRef]
  11. Ahangar, H.A.; Álvarez, M.; Chellali, M.; Sheikholeslami, S.M.; Valenzuela-Tripodoro, J.C. Triple Roman domination in graphs. Appl. Math. Comput. 2021, 391, 125444. [Google Scholar]
  12. Ahangar, H.A.; Amjadi, J.; Chellali, M.; Nazari-Moghaddam, S.; Sheikholeslami, S.M. Total Roman reinforcement in graphs. Discuss. Math. Graph Theory 2019, 39. [Google Scholar] [CrossRef]
  13. Ahangar, H.A.; Chellali, M.; Sheikholeslami, S.; Valenzuela-Tripodoro, J. Maximal double Roman domination in graphs. Appl. Math. Comput. 2022, 414, 126662. [Google Scholar]
  14. Liu, C. A note on domination number in maximal outerplanar graphs. Discret. Appl. Math. 2021, 293, 90–94. [Google Scholar] [CrossRef]
  15. Berge, C. Theory of Graphs and Its Applications [Russian Translation]; IL: Moscow, Russia, 1962; pp. 150–152. [Google Scholar]
  16. Berge, C. Graphs and Hypergraphs; North-Holland Mathematical Library: Hong Kong, China, 1973; Volume 6, pp. 3–528. [Google Scholar]
  17. Blidia, M.; Chellali, M.; Maffray, F. Extremal graphs for a new upper bound on domination parameters in graphs. Discret. Math. 2006, 306, 2314–2326. [Google Scholar] [CrossRef] [Green Version]
  18. Bollobás, B.; Cockayne, E.J. Graph-theoretic parameters concerning domination, independence, and irredundance. J. Graph Theory 1979, 3, 241–249. [Google Scholar] [CrossRef]
  19. Ma, D.X.; Chen, X.G. A note on connected bipartite graphs having independent domination number half their order. Appl. Math. Lett. 2004, 17, 959–962. [Google Scholar] [CrossRef]
  20. Rosenfeld, M. Independent sets in regular graphs. Isr. J. Math. 1964, 2, 262–272. [Google Scholar] [CrossRef]
  21. Corneil, D.G.; Perl, Y. Clustering and domination in perfect graphs. Discret. Appl. Math. 1984, 9, 27–39. [Google Scholar] [CrossRef] [Green Version]
  22. Clark, B.N.; Colbourn, C.J.; Johnson, D.S. Unit disk graphs. Discret. Math. 1990, 86, 165–177. [Google Scholar] [CrossRef] [Green Version]
  23. Manlove, D.F. On the algorithmic complexity of twelve covering and independence parameters of graphs. Discret. Appl. Math. 1999, 91, 155–175. [Google Scholar] [CrossRef] [Green Version]
  24. Beyer, T.; Proskurowski, A.; Hedetniemi, S.; Mitchell, S. Independent domination in trees. Congr. Numer 1977, 19, 3. [Google Scholar]
  25. Telle, J.A.; Proskurowski, A. Algorithms for vertex partitioning problems on partial k-trees. SIAM J. Discret. Math. 1997, 10, 529–550. [Google Scholar] [CrossRef]
  26. Farber, M. Independent domination in chordal graphs. Oper. Res. Lett. 1982, 1, 134–138. [Google Scholar] [CrossRef]
  27. Rad, N.J.; Targhi, E.E.; Adabi, M.; Moradi, M.S. Properties of independent Roman domination in graphs. Australas. J. Comb. 2012, 52, 11–18. [Google Scholar]
  28. Rad, N.J. Note on the Independent Roman Domination Number of a Graph. J. Comb. Math. Comb. Comput. 2015, 95, 119–125. [Google Scholar]
  29. Chellali, M.; Rad, N.J. Strong Equality Between the Roman Domination and Independent Roman Domination Numbers in Trees. Discuss. Math. Graph Theory 2013, 33, 337–346. [Google Scholar] [CrossRef]
  30. Wu, P.; Shao, Z.; Zhu, E.; Jiang, H.; Nazari-Moghaddam, S.; Sheikholeslami, S.M. Independent Roman Domination Stable and Vertex-Critical Graphs. IEEE Access 2018, 6, 74737–74746. [Google Scholar] [CrossRef]
Figure 1. Construction example.
Figure 1. Construction example.
Symmetry 14 00404 g001
Figure 2. H j assignment possibilities.
Figure 2. H j assignment possibilities.
Symmetry 14 00404 g002
Figure 3. A construction example of G I R graph.
Figure 3. A construction example of G I R graph.
Symmetry 14 00404 g003
Figure 4. A construction example of G R graph.
Figure 4. A construction example of G R graph.
Symmetry 14 00404 g004
Figure 5. example.
Figure 5. example.
Symmetry 14 00404 g005
Table 1. Initial state.
Table 1. Initial state.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0
γ 1 111111
γ 2 222222
γ 00 000000
Table 2. i = 1.
Table 2. i = 1.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0 2
γ 1 11111
γ 2 222222
γ 00 000100
Table 3. i = 2.
Table 3. i = 2.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0 3
γ 1 11111
γ 2 222222
γ 00 000200
Table 4. i = 3.
Table 4. i = 3.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0 4
γ 1 11111
γ 2 222222
γ 00 000300
Table 5. i = 4.
Table 5. i = 4.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0 42
γ 1 11115
γ 2 222225
γ 00 000302
Table 6. i = 5.
Table 6. i = 5.
v 1 v 2 v 3 v 4 v 5 v 6
γ 0 43
γ 1 1111
γ 2 222225
γ 00 000303
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Duan, Z.; Jiang, H.; Liu, X.; Wu, P.; Shao, Z. Independent Roman Domination: The Complexity and Linear-Time Algorithm for Trees. Symmetry 2022, 14, 404. https://doi.org/10.3390/sym14020404

AMA Style

Duan Z, Jiang H, Liu X, Wu P, Shao Z. Independent Roman Domination: The Complexity and Linear-Time Algorithm for Trees. Symmetry. 2022; 14(2):404. https://doi.org/10.3390/sym14020404

Chicago/Turabian Style

Duan, Zhixing, Huiqin Jiang, Xinyue Liu, Pu Wu, and Zehui Shao. 2022. "Independent Roman Domination: The Complexity and Linear-Time Algorithm for Trees" Symmetry 14, no. 2: 404. https://doi.org/10.3390/sym14020404

APA Style

Duan, Z., Jiang, H., Liu, X., Wu, P., & Shao, Z. (2022). Independent Roman Domination: The Complexity and Linear-Time Algorithm for Trees. Symmetry, 14(2), 404. https://doi.org/10.3390/sym14020404

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