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 and edge . For every vertex , we denote the set is the open neighborhood and the set is the closed neighborhood . In graph G, the degree of a vertex v is denoted by , the minimum degree is denoted by and the maximum degree is denoted by . If , 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 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 by . The dihedral group is the symmetry group of a regular polygon with n sides.
For a graph , let be a function, for be a set, and be the ordered partition of V induced by f. The functions and the ordered partitions of V are a correspondence. So, we will write .
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
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
.
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
-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
, 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
-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 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 () 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 .
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
-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 -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 -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
-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 -complete for chordal bipartite graphs. Firstly, the independent Roman domination problem () is an 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 into an instance G of . Let and be an arbitrary of .
Construction 1. For each corresponding in C, we build a circle with four sides and add an edge from any one vertex of to . Let be the another three vertices different from of . Let . Now to obtain a graph G, we add edges if (see Figure 1). Set . Clearly, G is a chordal bipartite graph. Lemma 1. If the instance of has a solution , there exists an independent Roman dominating function with weight in graph G.
Proof. Suppose that the instance of has a solution . We construct an independent Roman dominating function f on G of weight k. For every , assign the 2 to if and 0 to if . If we assign the 2 to , let and . If we assign the 0 to , let and . Finally, assign 0 to the remaining vertices of G. Since exists, its cardinality is precisely q, the number of ’s with value 2 is q, having disjoint neighborhoods in , where every has one neighbor be assigned 2. Hence, it is straightforward to see that f is an independent Roman dominating function with weight . □
Claim 1. Let be the subgraph of G induced by the vertices of , and let be an IRDF on with minimum weight, then: We give all the assignment possibilities of the subgraph
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 will not be assigned a value of 1.
Proof. We suppose that there exists a t satisfies . By Claim 1, this implies that . Now, we can define a new IRDF as , and otherwise. It is clear that g is an IRDF on graph G and . Therefore, we can replace all cases where is assigned 1. □
Claim 3. For a graph G which has an independent Roman domination function f with weight at most k, .
Proof. Conversely, we suppose that for some . We have , thus for each which exists the edge with the , let . By Claims 1 and 2, we know that if , we have and if , we have . Then, we discuss the rest of the vertices in X except . □
- Case 1.
No vertex can be dominated by assigned to 2.
According the assumption, we know for each .
It implying that for each and for each .
Since , a contradiction we have .
- Case 2.
There exist some vertices be dominated by assigned to 2. Considering the following subcases.
- Subcase 2.1.
Except for vertex , the other vertices can be fully dominated by assigned to 2.
Hence, for each .
The number of equals .
When other vertices in Y are assigned a value of 0, the sum of the weights of graph G is the smallest.
We have , this contradicts our known.
- Subcase 2.2.
There exist some vertices not be dominated by assigned to 2.
We assume m equals the number of vertices which and we have .
We let represent vertices in set X whose assignments are greater than 0.
Hence, .
Combining these three formulas, we have a contradiction .
Combining the above two situations, we prove that for each .
Lemma 2. If there exists an independent Roman dominating function with weight in graph G, the instance of has a solution .
Proof. Suppose that G has an independent Roman function with weight at most k. Among all such functions let . Clearly, by Claims 2 and 3, we have or 0 for each and for each .
Moreover, each is dominated by its adjacent , so the number of vertices which equals p and . Since , combining the above two inequalities, we have . Consequently, 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 -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 -complete. Next, we describe the difference in complexity between Roman domination and independent Roman domination by defining two special graph classes and . On any graph, the Roman domination problem is solvable in polynomial time and the independent Roman domination problem is -complete. However, on any graph, the independent Roman domination problem is solvable in polynomial time and the Roman domination problem is -complete.
Firstly, we define that is constructed from G, which means that the original vertices and edges on graph G are not changed, but only changed into by adding a specific structure.
Construction 2. Let graph G have n vertices. For any vertex in graph G, we define some corresponding vertex sets and edge sets.
.
.
.
- (a)
For any vertex in the graph G, add the set of vertices .
- (b)
For any vertex in the graph G, add the set of edges .
On the basis of graph G, the new graph formed according to the above construction methods is called graph. See Figure 3. Lemma 3. Let be a graph which is constructed from graph , we have .
Proof. For any vertex , let be a subgraph of which is induced by the set of vertices . It is clear that for any IRDF f of , we have . Therefore we can infer that . Let a function with the property that for each , and otherwise. It is clear that g is an IRDF on and . So we have . This implies that . □
Lemma 4. Let be a graph which is constructed from graph . Then, graph G has a Roman domination function where the weight at most k if and only if graph has a Roman domination function where the weight at most .
Proof. (Necessity:) Since G has a Roman domination function with weight at most k, we can define as follows: for each ,
It is clear that is a Roman domination function on , and the weight of at most .
(Sufficiency:) We assume that function is a Roman domination function on with minimum weight and . □
Claim 4. for each .
Proof. We suppose that there exists a t satisfying . We have . Now, we can define a new RDF as , , and otherwise. It is clear that is a Roman domination function on graph and . There is a contradiction with our assumption that the weight of is minimum. The conclusion is proved. □
Claim 5. Let be the subgraph of induced by the vertex set , then for each .
Proof. Without loss of generality, we assume that . There is no vertex that connects all the other vertices on , so does not make all the vertices on under dominated, this is a contradiction. Therefore, for each . □
Now, we proceed to prove Lemma 4. Firstly, we define a function satisfying that for each , if and , let ; otherwise.
Since function is a Roman domination function on graph , it implies that g is a Roman domination function on graph G. By Claims 4 and 5, we have . By the known condition , we come to conclusion . The conclusion of Lemma 4 is proved.
For general graphs, the decision problem of RDF is -complete, by Lemma 4, we know that for graphs the decision problem of RDF is -complete.
By Lemmas 3 and 4, we came to the final conclusion.
Theorem 2. In graphs, the independent Roman domination problem is solvable in polynomial time and the Roman domination problem is -complete.
Below, we introduce another special graph, the graph.
Construction 3. Let graph G have n vertices. For any vertex in graph G, we define some corresponding vertex sets and edge sets.
.
.
.
- (a)
For any vertex in the graph G, add the set of vertices .
- (b)
For any vertex in the graph G, add the set of edges .
On the basis of graph G, the new graph formed according to the above construction methods is called graph. See Figure 4. Lemma 5. Let be a graph which is constructed from graph , we have .
Proof. Now, we define a function satisfying that for each ,
It is clear that function f is a Roman domination function on graph , and the weight of f is . So we have . □
Claim 6. Let be a graph which is constructed from graph . We have .
Proof. Let be the subgraph of graph which is induced by the vertex set for each . We assume that there exists a Roman domination function on graph and . It can infer that there exists a t satisfying for subgraph . It is obvious that and ; otherwise it contradicts that is a Roman domination function. So we can infer that .
This contradicts the assumption . So we have Therefore, Claim 6 is proved.
By Claim 6, we have . This implies that . Therefore, the Lemma 5 is proved. □
Lemma 6. Let be a graph which is constructed from graph . Then, graph G has an independent Roman domination function where the weight at most k if and only if graph has an independent Roman domination function where the weight at most .
Proof. Let be the subgraph of graph which is induced by the vertex set for each .
(Necessity:) We assume that graph G has an independent Roman domination function g and . Next, we define a function that satisfies the following conditions:
(1): if , let , and for .
(2): if , let , and for .
(3): if , let , and for .
It is obvious that is an independent Roman domination function on graph . Since we know that , by (1)–(3), we have . Therefore, function is an independent Roman domination function on graph and . We have completed the proof of the necessity.
(Sufficiency:) We assume that has an independent Roman domination function and the weight at most . Now, we define a function is an independent Roman domination function which has the minimum weight. It is clear that . □
Lemma 7 ([
27]).
For any graph G of order 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 graph which the weight at most . By Lemma 7, we know that for any graph G of order n, . Therefore, we can get an independent Roman domination function on which the weight at most . We have the fact that is the independent Roman domination function with the minimum weight, so . □
Claim 8. for each .
Proof. Conversely, we assume that there exists a t satisfying that .
If , for each , , it is easy to prove that there is a contradiction with is an IRDF.
If , this implies that for each . Since , we can infer that . It contradicts the conclusion of Claim 7. Hence, the conclusion is proven. □
Claim 9. for each .
Proof. Conversely, we assume that there exists a t satisfying that . We can know that the neighbor of must be assigned 0 for which . This is a contradiction by Claim 8. Hence, the conclusion is proven. □
Claim 10. for each .
Proof. It can be verified that for each ; otherwise it would contradict the known fact that is an independent Roman domination function on graph . Futher, by Claim 8, we know that . Therefore, we have
.
We now return to prove the sufficiency part of Lemma 6. Define as for each . We want to show that f is an independent Roman domination function on graph G. We know that . From Claim 9, we have that . Hence, does not dominated by . So we can infer that f is an independent Roman domination function on graph G. According to the known condition and Claim 10, we deduce that .
For general graphs, the decision problem of IRDF is
-complete [
2], by Lemma 6, we know that for
graphs the decision problem of IRDF is
-complete.
By Lemmas 5 and 6, we have reached the final conclusion. □
Theorem 3. In graphs, the Roman domination problem is solvable in polynomial time and the independent Roman domination problem is -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 in trees. Let 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 . So it is useful to consider the following three domination problems.
f is an IRDF of G and
f is an IRDF of G and
f is an IRDF of G and
Lemma 8. For any graph G with a specific vertex u, we have
is an IRDF of .
Note that since an IRDF f of G and is also an IRDF of
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 edge to the disjoint union of graph G and H. Therefore, the following equations are true.
- (1)
- (2)
- (3)
- (4)
=
Proof. (1) We can conclude from the fact that f is an IRDF of I with if and only if where g is an IRDF of G with and h is an IRDF of H with , g is an IRDF of G with and h is an IRDF of H with , or g is an IRDF of and h is an IRDF of H with .
(2) We can conclude from the fact that f is an IRDF of I with if and only if where g is an IRDF of G with and h is an IRDF of H with .
(3) We can conclude from the fact that f is an IRDF of I with if and only if where g is an IRDF of G with and h is an IRDF of .
(4) We can conclude from the fact that f is an IRDF of if and only if where g is an IRDF of 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 . Output: the Independent Roman domination number of T. - 1:
for to n do - 2:
= 0 - 3:
- 4:
- 5:
- 6:
for to do - 7:
let be the parent of - 8:
- 9:
- 10:
- 11:
- 12:
return min
|
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,
. Therefore, the independent Roman domination number of this tree is 3.