Next Article in Journal
Some Contributions to the Class of Branching Processes with Several Mating and Reproduction Strategies
Previous Article in Journal
Modeling of Cerebral Blood Flow Autoregulation Using Mathematical Control Theory
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Total 2-Rainbow Domination in Graphs

Institute of Computing Science and Technology, Guangzhou University, Guangzhou 510006, China
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(12), 2059; https://doi.org/10.3390/math10122059
Submission received: 7 April 2022 / Revised: 31 May 2022 / Accepted: 10 June 2022 / Published: 14 June 2022

Abstract

:
A total k-rainbow dominating function on a graph G = ( V , E ) is a function f : V ( G ) 2 { 1 , 2 , , k } such that (i) u N ( v ) f ( u ) = { 1 , 2 , , k } for every vertex v with f ( v ) = , (ii) u N ( v ) f ( u ) for f ( v ) . The weight of a total 2-rainbow dominating function is denoted by ω ( f ) = v V ( G ) | f ( v ) | . The total k-rainbow domination number of G is the minimum weight of a total k-rainbow dominating function of G. The minimum total 2-rainbow domination problem (MT2RDP) is to find the total 2-rainbow domination number of the input graph. In this paper, we study the total 2-rainbow domination number of graphs. We prove that the MT2RDP is NP-complete for planar bipartite graphs, chordal bipartite graphs, undirected path graphs and split graphs. Then, a linear-time algorithm is proposed for computing the total k-rainbow domination number of trees. Finally, we study the difference in complexity between MT2RDP and the minimum 2-rainbow domination problem.

1. Introduction

In this paper, only graphs without multiple edges or loops are considered. Let G = ( V , E ) be an undirected graph with | V ( G ) | = n and | E ( G ) | = m . The open neighborhood and closed neighborhood of a vertex v in G are denoted by N ( v ) = { u | u v E ( G ) } and N [ v ] = { v } N ( v ) , respectively. The degree of a vertex v is denoted by d ( v ) = | N ( v ) | . A graph is called k-regular if d ( v ) = k for v V ( G ) . For a positive integer n, we write [ n ] = { 0 , 1 , 2 , , n 1 } .
Let G = ( V , E ) , F be a finite family of subsets of a non-empty set, if there is a correspondence between V ( G ) and F such that f i f j if and only if u v E ( G ) , where f i , f j F and f i , f j are the corresponding sets of vertices u and v, respectively, then G is an intersection graph. A graph G is chordal if every cycle C k with k 4 in G has a chord, i.e., an edge joining two non-consecutive vertices of the cycle, and a chordal graph is also an intersection graph with F which is a finite family of subtrees of a tree, see [1]. If G is a chordal graph and F is a finite family of paths of a tree, then G is an undirected path graph [2]. A chordal bipartite graph is a bipartite graph and every cycle in G of length 4 has a chord [3].
In a graph G = ( V , E ) , a subset D V ( G ) is called a dominating set if N ( u ) D for u D . The domination number γ ( G ) is the minimum cardinality of a dominating set of G [4]. The problems of finding a minimum cardinality dominating set in graphs [5], split graphs and bipartite graphs [6], chordal bipartite graphs [7], planar bipartite graphs [8] and undirected path graphs [9] are NP-complete. For relevant papers on dominating set in graphs, see [10,11,12,13,14].
One of the most famous open problem involving domination in graphs is that γ ( G ) γ ( H ) γ ( G H ) for any graphs G and H, called Vizing’s conjecture [15], where G H denotes the Cartesian product of graphs G and H [16]. To investigate a similar problem for paired domination, Brešar et al. proposed k-rainbow domination [17]. A k-rainbow dominating function on a graph G is a function f : V ( G ) 2 { 1 , 2 , , k } such that every vertex u for which f ( u ) = , then u N ( v ) f ( u ) = { 1 , 2 , , k } . The weight ω ( f ) of a k-rainbow dominating function f is denoted by ω ( f ) = u V ( G ) | f ( u ) | . The k-rainbow domination number γ r k ( G ) of G is the minimum weight over all k-rainbow dominating functions on the graph G. A k-rainbow dominating function f of G with ω ( f ) = γ r k ( G ) is called a γ r k -function of G.
The minimum k-rainbow domination problem (MkRDP) is to finda minimum weight of a k-rainbow dominating function in graphs. B r e s ˘ a r et al. proved that M2RDP is NP-complete for chordal graphs and bipartite graphs [18]. Later, Chang et al. showed that the MkRDP for chordal graphs and bipartite graphs are NP-complete [19]. The linear-time algorithms for computing 2-rainbow domination number [20] and k-rainbow domination number [19] of trees are proposed. For a more detailed discussion of k-rainbow domination number in graphs, see [21,22,23,24,25,26,27].
Ahangar et al. [28] proposed a new dominating function named total k-rainbow dominating function for protecting the Empire under a more complex situation where the Empire is guarded by different types of guards, and where every location without guards needs all types of guards in its neighborhood and every location with guards needs at least one guard in its neighborhood. A total k-rainbow dominating function on a graph G = ( V , E ) is a k-rainbow dominating function f such that u N ( v ) f ( u ) for f ( v ) . The weight of a total k-rainbow dominating function is denoted by ω ( f ) = v V ( G ) | f ( v ) | . The total k-rainbow domination number of G is the minimum weight of a total k-rainbow dominating function on the graph G, denoted by γ t r k ( G ) . A total k-rainbow dominating function f of G with ω ( f ) = γ t r k ( G ) is called a γ t r k -function of G.
The properties of total k-rainbow dominating function in graphs was studied [28,29]. Ahangar et al. characterized all graphs G, where γ t r 2 ( G ) = | V ( G ) | 1 [30]. The problems of finding a minimum weight of a total 2-rainbow dominating function (MT2RDP) in chordal graphs and bipartite graphs are NP-complete [29].
In this paper, we study the total 2-rainbow domination number of graphs. Then, we prove that MT2RDP is NP-complete even when restricted to planar bipartite graphs, chordal bipartite graphs, undirected path graphs and split graphs. Next, a linear-time algorithm is proposed for computing the total k-rainbow domination number of trees. Finally, we study the difference in complexity between MT2RDP and the minimum 2-rainbow domination problem.

2. Results

Lemma 1.
If the graph G is k-regular with order n, then γ t r 2 ( G ) 2 n k + 1 .
Proof. 
Let f be a γ t r 2 -function of G. To prove the lower bound, we define an initial charge function s corresponding to f, such that s ( v ) = | f ( v ) | . Then, we apply the following two discharging rules to lead to the final charge function s corresponding to s of G, such that v V ( G ) s ( v ) = v V ( G ) s ( v ) .
Rule 1: For the vertex s ( v ) = 1 , N ( v ) = { v 1 , v 2 , v 3 , , v k } , suppose that f ( v 1 ) . Then, s ( v ) transmits 1 1 + k charge to v 2 , v 3 , , v k .
Rule 2: For each s ( v ) = 2 , N ( v ) = { v 1 , v 2 , v 3 , , v k } , suppose that f ( v 1 ) . Then, s ( v ) transmits 2 1 + k charge to v 2 , v 3 , , v k .
Thus, for  s ( v ) = 1 , we have s ( v ) s ( v ) k 1 k + 1 = 2 k + 1 by Rule 1.
For s ( v ) = 2 , then s ( v ) s ( v ) 2 ( k 1 ) k + 1 > 2 k + 1 by Rule 2.
For s ( v ) = 0 , since v is adjacent to at least one vertex u such that s ( u ) = 2 or two vertices s ( x ) 1 and s ( y ) 1 , then v will receive 2 k + 1 charge form u or x , y by Rules 2 and 1, then s ( v ) s ( v ) + 2 k + 1 = 2 k + 1 .
Therefore, ω ( f ) = v V ( G ) s ( v ) = v V ( G ) s ( v ) 2 k + 1 × n = 2 n k + 1 .    □
To show that γ t r 2 ( G ) 2 n k + 1 is sharp for k-regular graphs with order n = 4 t when k = 3 , t 2 , we investigate the total 2-rainbow domination number of double generalized Petersen graphs.
The double generalized Petersen graphs D P ( n , k ) was introduced by Kutnar and Petecki [31], n 3 and 1 k n 1 , with vertex set:
V ( D P ( n , k ) ) = U V X Y
where U = { u 0 , u 1 , , u n 1 } , V = { v 0 , v 1 , , v n 1 } , X = { x 0 , x 1 , , x n 1 } , Y = { y 0 , y 1 , , y n 1 } , and its edge set is the union:
E ( D P ( n , k ) ) = E 1 E 2 E 3
where E 1 = { u i u i + 1 , y i y i + 1 | i [ n ] } , E 2 = { u i v i , x i y i | i [ n ] } , E 3 = { v i x i + k , x i v i + k | i [ n ] } , and  the subscripts are reduced modulo n (see, e.g.,  ( n , k ) { ( 6 , 1 ) , ( 9 , 4 ) , ( n , 1 ) } in Figure 1 and Figure 2).
Let
A 4 × 4 = a 1 , 1 a 12 a 1 , 3 a 1 , 4 a 2 , 1 a 2 , 2 a 2 , 3 a 2 , 4 a 3 , 1 a 2 , 2 a 3 , 3 a 3 , 4 a 4 , 1 a 2 , 2 a 4 , 3 a 4 , 4 ,     B 4 × t = b 1 , 1 b 1 , 2 b 1 , 3 . . . b 1 , t b 2 , 1 b 2 , 2 b 2 , 3 b 2 , t b 3 , 1 b 2 , 2 b 3 , 3 b 3 , t b 4 , 1 b 2 , 2 b 4 , 3 . . . b 4 , t .
Let f A 4 × 4 , B 4 × t be a function of D P ( n , 1 ) with n = 4 s + t , such that f ( u p ) = f ( u p + 4 k ) = a 1 , p + 1 , f ( v p ) = f ( v p + 4 k ) = a 2 , p + 1 , f ( x p ) = f ( x p + 4 k ) = a 3 , p + 1 , f ( y p ) = f ( y p + 4 k ) = a 4 , p + 1 , f ( u n 1 q ) = b 1 , t q , f ( v n 1 q ) = b 2 , t q , f ( x n 1 q ) = b 3 , t q , f ( y n 1 q ) = b 4 , t q , where p { 0 , 1 , 2 , 3 } , k { 1 , 2 , , s } , q { 0 , 1 , 2 , , t 1 } .
Lemma 2.
γ t r 2 ( D P ( n , 1 ) ) 2 n + 1 , where n 9 and n 1 , 2 , 3 (mod 4).
Proof. 
Let f be a γ t r 2 -function of D P ( n , 1 ) , V 0 = { v | f ( v ) = } , V 1 = { v | f ( v ) = { 1 } } , V 2 = { v | f ( v ) = { 2 } } , V 3 = { v | f ( v ) = { 1 , 2 } } . Suppose that γ t r 2 ( D P ( n , 1 ) ) < 2 n + 1 , that is, ω ( f ) = γ t r 2 ( D P ( n , 1 ) ) = 2 n .
Then, V 3 = . Otherwise, s ( v ) = 2 1 2 1 2 = 1 , ω ( f ) = v V ( G ) s ( v ) = v V ( G ) s ( v ) = v V 0 s ( v ) + v V 1 s ( v ) + v V 2 s ( v ) + v V 3 s ( v ) 1 2 × 4 n + 1 2 according to the proof of Lemma 1, contradicting with ω ( f ) = γ t r 2 ( D P ( n , 1 ) ) = 2 n .
Similarly, | N ( v ) V 1 | = | N ( v ) V 2 | = | N ( v ) V 0 | = 1 for every vertex v V 0 , and  | N ( v ) V 1 | + | N ( v ) V 2 | = 1 , | N ( v ) V 0 | = 2 for every vertex v V 1 V 2 .
Let s s ¯ = { 1 , 2 } , | s | = | s ¯ | = 1 , t t ¯ = { 1 , 2 } , | t | = | t ¯ | = 1 , p p ¯ = { 1 , 2 } , | p | = | p ¯ | = 1 , q q ¯ = { 1 , 2 } , | q | = | q ¯ | = 1 , I i = { v i , u , x i , y i } , where i [ n ] .
Case 1: v I i | f ( v ) | = 4 for some i [ n ] .
In this case, f ( u i ) = s , f ( v i ) = t , f ( x i ) = p , f ( y i ) = q . Then, f ( u i + 1 ) = f ( v i + 1 ) = f ( x i + 1 ) = f ( y i + 1 ) = f ( u i 1 ) = f ( v i 1 ) = f ( x i 1 ) = f ( y i 1 ) = . To dominate u i + 1 , x i + 1 , v i + 1 , y i + 1 , we have f ( u i + 2 ) = s ¯ , f ( v i + 2 ) = t ¯ , f ( x i + 2 ) = p ¯ , f ( y i + 2 ) = q ¯ . Since | N ( v ) V 0 | = 2 for every vertex v V 1 V 2 , thus f ( u i + 3 ) = f ( v i + 3 ) = f ( x i + 3 ) = f ( y i + 3 ) = . To dominate u i + 3 , x i + 3 , v i + 3 , y i + 3 , then f ( u i + 4 ) = f ( u i ) = s , f ( v i + 4 ) = f ( v i ) = t , f ( x i + 4 ) = f ( x i ) = p , f ( y i + 4 ) = f ( y i ) = q . Therefore, f ( u i + 4 k ) = f ( u i ) = s , f ( v i + 4 k ) = f ( v i ) = t , f ( x i + 4 k ) = f ( x i ) = p , f ( y i + 4 k ) = f ( y i ) = q , f ( u i + 4 k 2 ) = f ( u i + 2 ) = s ¯ , f ( v i + 4 k 2 ) = f ( v i + 2 ) = t ¯ , f ( x i + 4 k 2 ) = f ( x i + 2 ) = p ¯ , f ( y i + 4 k 2 ) = f ( y i + 2 ) = q ¯ , f ( u i + 4 k 3 ) = f ( u i + 1 ) = f ( u i + 4 k 1 ) = f ( u i + 3 ) = f ( v i + 4 k 3 ) = f ( v i + 1 ) = f ( v i + 4 k 1 ) = f ( v i + 3 ) = f ( x i + 4 k 3 ) = f ( x i + 1 ) = f ( x i + 4 k 1 ) = f ( x i + 3 ) = f ( y i + 4 k 3 ) = f ( y i + 1 ) = f ( y i + 4 k 1 ) = f ( y i + 3 ) = , where k 1 and the subscripts are reduced modulo n. Thus, n 0 (mod 4), a contradiction.
Case 2: v I i | f ( v ) | = 3 for some i [ n ] .
Suppose that f ( u i ) = s , f ( v i ) = t , f ( x i ) = p , f ( y i ) = . Then f ( u i + 1 ) = f ( x i + 1 ) = f ( u i 1 ) = f ( x i 1 ) = . To dominate y i , without loss of gravity, we assume that f ( y i + 1 ) = p ¯ , f ( y i 1 ) = . Then f ( y i 2 ) = { 1 , 2 } for dominating y i 1 , contradicting with V 3 = .
Now we consider that f ( u i ) = s , f ( v i ) = t , f ( x i ) = , f ( y i ) = q . Then f ( u i + 1 ) = f ( x i + 1 ) = f ( u i 1 ) = f ( x i 1 ) = . To dominate x i , wl.o.g we assume that f ( v i + 1 ) = q ¯ , f ( v i 1 ) = . Thus, f ( x i 2 ) = { 1 , 2 } for dominating v i 1 , contradicting with V 3 = .
Case 3: v I i | f ( v ) | = 1 for some i [ n ] .
Suppose that f ( u i ) = s , f ( v i ) = f ( x i ) = f ( y i ) = . To dominate x i , y i , v i we have | f ( v i + 1 ) | = | f ( v i 1 ) | = 1 , | f ( y i + 1 ) | = | f ( y i 1 ) | = 1 , | f ( x i + 1 ) | + | f ( y i 1 ) | = 1 . Therefore, v I i + 1 f ( v ) 3 or v I i 1 | f ( v ) | 3 . The result is entirely consistent with Case 2, then contradicting with V 3 = .
Now we consider that f ( v i ) = t , f ( u i ) = f ( x i ) = f ( y i ) = . To dominate x i , y i , u i , we have | f ( v i + 1 ) | = | f ( v i 1 ) | = 1 , | f ( y i + 1 ) | = | f ( y i 1 ) | = 1 , | f ( u i + 1 ) | + | f ( u i 1 ) | = 1 . Therefore, v I i + 1 f ( v ) 3 or v I i 1 | f ( v ) | 3 . The result is entirely consistent with Case 2, then contradicting with V 3 = .
Case 4: v I i | f ( v ) | = 2 for some i [ n ] .
In this case, it is sufficient to consider the following three subcases.
Subcase 4.1: f ( u i ) = s , f ( v i ) = t , f ( x i ) = f ( y i ) = .
In this case, f ( u i + 1 ) = f ( u i 1 ) = f ( x i + 1 ) = f ( x i 1 ) = . To dominate x i , we have f ( v i 1 ) = q , f ( v i 1 ) = q ¯ . To dominate u i + 1 , then s = p . However, s = p ¯ for dominating v i 1 , a contradiction.
Subcase 4.2: f ( u i ) = s , f ( x i ) = p , f ( v i ) = f ( y i ) = .
To dominate y i , we may assume f ( y i + 1 ) = p ¯ and f ( y i 1 ) = . Since | N ( v ) V 0 | = 2 for every vertex v V 1 V 2 , assume that f ( u i + 1 ) = . Then, f ( v i + 1 ) = s ¯ , f ( v i 1 ) = , f ( u i 1 ) = p ¯ . To dominate v i , then f ( x i 1 ) = s ¯ . Therefore, f ( u i + 4 k ) = f ( u i ) = s , f ( v i + 4 k ) = f ( v i ) = , f ( x i + 4 k ) = f ( x i ) = p , f ( y i + 4 k ) = f ( y i ) = , f ( u i + 4 k 3 ) = f ( u i + 1 ) = , f ( v i + 4 k 3 ) = f ( v i + 1 ) = s ¯ , f ( x i + 4 k 3 ) = f ( x i + 1 ) = , f ( y i + 4 k 3 ) = f ( y i + 1 ) = p ¯ , f ( u i + 4 k 2 ) = f ( u i + 2 ) = , f ( v i + 4 k 2 ) = f ( v i + 2 ) = p , f ( x i + 4 k 2 ) = f ( x i + 2 ) = , f ( y i + 4 k 2 ) = f ( y i + 2 ) = s , f ( u i + 4 k 1 ) = f ( u i + 3 ) = p ¯ , f ( v i + 4 k 1 ) = f ( v i + 3 ) = , f ( x i + 4 k 1 ) = f ( x i + 3 ) = s ¯ , f ( y i + 4 k 1 ) = f ( y i + 3 ) = , where k 1 and the subscripts are reduced modulo n. Thus, n 0 (mod 4), a contradiction.
Now we consider f ( u i 1 ) = , then f ( v i 1 ) = s ¯ , f ( v i + 1 ) = , f ( u i + 1 ) = p ¯ . To dominate v i , then f ( x i 1 ) = s ¯ . Therefore, f ( u i + 4 k ) = f ( u i ) = s , f ( v i + 4 k ) = f ( v i ) = , f ( x i + 4 k ) = f ( x i ) = p , f ( y i + 4 k ) = f ( y i ) = , f ( u i + 4 k 3 ) = f ( u i + 1 ) = p ¯ , f ( v i + 4 k 3 ) = f ( v i + 1 ) = , f ( x i + 4 k 3 ) = f ( x i + 1 ) = , f ( y i + 4 k 3 ) = f ( y i + 1 ) = p ¯ , f ( u i + 4 k 2 ) = f ( u i + 2 ) = , f ( v i + 4 k 2 ) = f ( v i + 2 ) = p , f ( x i + 4 k 2 ) = f ( x i + 2 ) = , f ( y i + 4 k 2 ) = f ( y i + 2 ) = s , f ( u i + 4 k 1 ) = f ( u i + 3 ) = , f ( v i + 4 k 1 ) = f ( v i + 3 ) = s ¯ , f ( x i + 4 k 1 ) = f ( x i + 3 ) = s ¯ , f ( y i + 4 k 1 ) = f ( y i + 3 ) = , where k 1 and the subscripts are reduced modulo n. Thus, n 0 (mod 4), a contradiction.
Subcase 4.3: f ( u i ) = s , f ( y i ) = q , f ( v i ) = f ( x i ) = (or f ( v i ) = t , f ( x i ) = p , f ( u i ) = f ( y i ) = ).
In this case, we have f ( u i + 4 k ) = f ( u i ) = s , f ( v i + 4 k ) = f ( v i ) = , f ( x i + 4 k ) = f ( x i ) = , f ( y i + 4 k ) = f ( y i ) = q , f ( u i + 4 k 3 ) = f ( u i + 1 ) = , f ( v i + 4 k 3 ) = f ( v i + 1 ) = p ¯ , f ( x i + 4 k 3 ) = f ( x i + 1 ) = s ¯ , f ( y i + 4 k 3 ) = f ( y i + 1 ) = , f ( u i + 4 k 2 ) = f ( u i + 2 ) = , f ( v i + 4 k 2 ) = f ( v i + 2 ) = s ¯ , f ( x i + 4 k 2 ) = f ( x i + 2 ) = p ¯ , f ( y i + 4 k 2 ) = f ( y i + 2 ) = , f ( u i + 4 k 1 ) = f ( u i + 3 ) = s , f ( v i + 4 k 1 ) = f ( v i + 3 ) = , f ( x i + 4 k 1 ) = f ( x i + 3 ) = , f ( y i + 4 k 1 ) = f ( y i + 3 ) = p , where k 1 and the subscripts are reduced modulo n. Thus, n 0 (mod 4), a contradiction.    □
Theorem 1.
γ t r 2 ( D P ( n , 1 ) ) = 2 n , n 0 ( mod 4 ) , 2 n + 1 , n 1 , 2 , 3 ( mod 4 ) , where n 8 .
Proof. 
Case 1: n 0 (mod 4).
Let:
A 4 × 4 = { 2 } { 2 } { 1 } { 1 } { 1 } { 1 } { 2 } { 2 } .
Then f A 4 × 4 , A 4 × 4 is a total 2-rainbow dominating function of D P ( n , 1 ) with ω ( f ) = 2 n , and γ t r 2 ( D P ( n , 1 ) ) 2 n for n 0 (mod 4).
Case 2: n 1 (mod 4).
Let:
A 4 × 4 = { 2 } { 1 } { 1 } { 2 } { 1 } { 2 } { 2 } { 1 } ,     B 4 × 5 = { 2 } { 1 } { 1 } { 1 } { 2 } { 1 } { 1 } { 2 } { 2 } { 2 } { 1 } ,
Then f A 4 × 4 , B 4 × 5 is a total 2-rainbow dominating function of D P ( n , 1 ) with ω ( f ) = 2 n + 1 , and γ t r 2 ( D P ( n , 1 ) ) 2 n + 1 for n 1 (mod 4).
Case 3: n 2 (mod 4).
Let:
A 4 × 4 = { 1 } { 2 } { 1 } { 2 } { 2 } { 1 } { 1 } { 2 } ,     B 4 × 6 = { 2 } { 1 } { 2 } { 1 } { 1 } { 1 } { 2 } { 2 } { 1 } { 1 } { 1 } { 2 } { 1 } .
Then f A 4 × 4 , B 4 × 6 is a total 2-rainbow dominating function of D P ( n , 1 ) with ω ( f ) = 2 n + 1 , and γ t r 2 ( D P ( n , 1 ) ) 2 n + 1 for n 2 (mod 4).
Case 4: n 3 (mod 4).
Let:
A 4 × 4 = { 2 } { 1 } { 1 } { 2 } { 2 } { 1 } { 2 } { 1 } ,     B 4 × 7 = { 2 } { 1 } { 1 } { 1 } { 2 } { 2 } { 2 } { 2 } { 2 } { 2 } { 2 } { 1 } { 1 } { 1 } { 1 } .
Then f A 4 × 4 , B 4 × 7 is a total 2-rainbow dominating function of D P ( n , 1 ) with ω ( f ) = 2 n + 1 , and γ t r 2 ( D P ( n , 1 ) ) 2 n + 1 for n 3 (mod 4).
Furthermore, by Lemmas 1 and 2, this theorem holds.    □
Therefore, γ t r 2 ( D P ( n , 1 ) ) 2 n is sharp when n 0 (mod 4).

2.1. Complexity

In this section, we show that the problems of finding a minimum weight of a total 2-rainbow dominating function in planar bipartite graphs, chordal bipartite graphs, undirected path graphs and split graphs are NP-complete, by giving two polynomial time reductions from two NP-complete problems, MINIMUM DOMINATION PROBLEM and 3-SAT, which are defined as follows.
MINIMUM DOMINATION PROBLEM(MDP)
INSTANCE: A simple and undirected graph G = ( V , E ) and a positive integer k | V ( G ) | . QUESTION: Does G have a dominating set with cardinality at most k?
3-SAT
INSTANCE: A collection C = { C 1 , C 2 , , C m } of clauses over a finite set U of variables such that | C j | = 3 for j = 1 , 2 , , m .
QUESTION: Is there a truth assignment for U that satisfies all the clauses in C ?
MINIMUM TOTAL 2-RAINBOW DOMINATION PROBLEM(MT2RDP)
INSTANCE: A simple and undirected graph G = ( V , E ) and a positive integer k | V ( G ) | .
QUESTION: Does G have a total 2-rainbow dominating function of weight at most k?
Theorem 2.
The MT2RDP is NP-complete for planar bipartite graphs, chordal bipartite graphs and undirected path graphs.
Proof. 
Given a graph G = ( V , E ) , then let each vertex v V ( G ) be the tree T v , where V ( T v ) = { v , v 1 , v 2 , v 3 , v 4 , v 5 } , E ( T v ) = { v v 1 , v 1 v 2 , v 2 v 3 , v 2 v 4 , v 2 v 5 } . Let A = { T v i | i { 1 , 2 , , n } } be the set of disjoint trees corresponding to the graph G. If v i v j E ( G ) , then add an edges v i v j between the trees T v i A and T v j A . Therefore, we obtain a graph G , see Figure 3.
Claim 1.
The graph G has a dominating set with cardinality at most k if and only if there is a total 2-rainbow dominating function f of the graph G such that ω ( f ) k + 3 n .
Proof.
Suppose G has a dominating set D and | D | k . We define a function f : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } such that f ( v 1 ) = { 2 } , f ( v 2 ) = { 1 , 2 } , f ( v 3 ) = f ( v 4 ) = f ( v 5 ) = for every tree T v , and if v V ( G ) D , f ( v ) = { 1 } , if  v V ( G ) \ D , f ( v ) = .
Thus, f is a total 2-rainbow dominating function of G and ω ( f ) k + 3 n .
Conversely, suppose the graph G has a total 2-rainbow dominating function f such that ω ( f ) k + 3 n . It is immediate that | f ( v 1 ) | + | f ( v 2 ) | + | f ( v 3 ) | + | f ( v 4 ) | + | f ( v 5 ) | 3 with equality if and only if f ( v 2 ) = { 1 , 2 } . If f ( v ) , let v D , then v is dominated. If f ( v ) = and | f ( v 1 ) | 1 , v is total 2-rainbow dominated by u N G ( v ) and v 1 , that is, f ( u ) . Let v D , then v is dominated by u. If f ( v ) = and f ( v 1 ) = { 1 , 2 } , let v D , then v is dominated by u.
Since every vertex v V ( G ) is dominated, D is a dominating set of G with cardinality at most k.    □
If the graph G is a chordal bipartite graph or planar bipartite graph, so is G . Recall that the MDP is NP-complete for chordal bipartite graphs [7], planar bipartite graphs [8] and undirected path graphs [9]; thus, it can be immediately concluded that the MT2RDP is NP-complete for chordal bipartite graphs and planar bipartite graphs.
Now we show that if the graph G is an undirected path graph, so is G . Suppose G is an undirected path graph. Then, there exists a finite family F of paths { P v i | i { 1 , 2 , , n } } of a tree T. Let x i be the one of the end points of path P v i , T v i be a tree with V ( T v i ) = { a i , b i , s i , t i , r i } , E ( T v ) = { a i b i , b i s i , b i t i , b i r i } , where i { 1 , 2 , , n } . Construct T from T by adding edges x i a i between a i V ( T v i ) and x i V ( P v i ) , where i { 1 , 2 , , n } . Now let P v i = { x i a i , a i b i , b i s i , b i t i , b i r i } , where i { 1 , 2 , , n } , F = F { P v i | { 1 , 2 , , n } } . Thus, there is a 1-1 correspondence f between V ( G ) and F such that f ( a i ) = x i a i , f ( b i ) = a i b i , f ( s i ) = b i s i , f ( t i ) = b i t i , f ( r i ) = b i r i , and  u v E ( G ) if and only if f ( u ) f ( v ) . Therefore, G is an undirected path graph.
The proof is completed.   □
Theorem 3.
The MT2RDP is NP-complete for split graphs.
Proof. 
Let U = { x 1 , x 2 , , x n } , C = { C 1 , C 2 , , C m } be an arbitrary instance F of 3-SAT .
Let G F = ( V , E ) be a graph, V ( G F ) = V 1 V 2 V 3 , E ( G F ) = E 1 E 2 E 3 , where V 1 = { x i , x ¯ i | i { 1 , 2 , , n } } , V 2 = { c j | j { 1 , 2 , , m } } , V 3 = { a i , b i | i { 1 , 2 , , n } } , E 1 = { u v | u , v { V 1 } } , E 2 = { c j x i (or c j x ¯ i ) | x i C j (or x ¯ i C j ) } , E 3 = { x i a i , x i b i , x ¯ i a i , x ¯ i b i | x i C j } , i { 1 , 2 , , n } , j { 1 , 2 , , m } , see Figure 4.
It is immediate that the graph G F is a split graph with a partitioning V ( G F ) into a clique v 1 and a stable set V 2 V 3 .
If C is satisfiable, then we define a function f : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } , such that f ( a i ) = f ( b i ) = f ( c j ) = . If  x i is true, then f ( x i ) = { 1 , 2 } , f ( x ¯ i ) = ; otherwise, f ( x ¯ i ) = { 1 , 2 } , f ( x i ) = . Thus, f is a total 2-rainbow dominating function of G F and ω ( f ) 2n.
Conversely, suppose the graph G F has a total 2-rainbow dominating function f such that ω ( f ) 2 n . Let V 1 = { v | f ( v ) = { 1 } } , V 2 = { v | f ( v ) = { 2 } } , V 3 = { v | f ( v ) = { 1 , 2 } } . To dominate a i , b i for i { 1 , 2 , . . , n } , if  | f ( a i ) | 1 (or | f ( b i ) | 1 ), then | f ( x i ) | + | f ( x ¯ i ) | 1 with equality if and only if | f ( b i ) | 1 (or | f ( a i ) | 1 ). Thus, | f ( a i ) | + | f ( b i ) | + | f ( x i ) | + | f ( x ¯ i ) | 2 with equality if and only if | f ( a i ) | = | f ( b i ) | = 0 . Note that ω ( f ) 2 n , then | f ( x i ) | + | f ( x ¯ i ) | =2, | f ( a i ) | = | f ( b i ) | = 0 , | f ( c j ) | = 0 , where i { 1 , 2 , . . , n } , j { 1 , 2 , . . , m } .
Since c j is dominated by one vertex v V 3 or two vertices u V 1 , v V 2 , where j { 1 , 2 , . . , m } then let x be true for x V 1 V 3 . Therefore, the clause C j is satisfied for j { 1 , 2 , . . , m } . Note that V 1 V 3 V 1 , so V 1 V 3 is the true assignment for U that satisfies all the clauses in C .    □

2.2. A Linear-Time Algorithm for Trees

In this section, we propose a linear-time algorithm for computing the total k-rainbow domination number of trees. Let f be a total k-rainbow dominating function of G. If  S V(G), f ( S ) = v S f ( v ) .
If u V ( G ) , an H-trk function of ( G , u ) is a function g : V ( G ) 2 { 1 , 2 , , k } , such that g is a total k-rainbow dominating function of G u , that is, every vertex v V ( G ) \ { u } is dominated by the vertices in V ( G ) , the weight of g is denoted by ω ( g ) = v V ( G ) | g ( v ) | .
Denote F = { g | g is an H-trk function of ( G , u ) }:
γ ( G , u , t , 0 ) = m i n { ω ( f ) | f F , | f ( u ) | = t , f ( N ( u ) ) = }, 1 t k ,
γ ( G , u , t , 1 ) = m i n { ω ( f ) | f F , | f ( u ) | = t , f ( N ( u ) ) }, 1 t k ,
γ ( G , u , , t ) = m i n { ω ( f ) | f F , f ( u ) = , | f ( N ( u ) ) | t } , 0 t k .
Lemma 3.
Let u V ( G ) , then: γ t r k ( G ) = min { γ ( G , u , 1 , 1 ) , γ ( G , u , 2 , 1 ) , , γ ( G , u , k , 1 ) , γ ( G , u , , k ) } .
Lemma 4.
Let G be a graph and u V ( G ) . If f is an H-trk function of ( G , u ) such that | f ( u ) | = t , 1 t k , then for any A = { a 1 , a 2 , , a t } , a i { 1 , 2 , , k } , i { 1 , 2 , , t } , there exists an H-trk function f of ( G , u ) with v V ( G ) | f ( v ) | = v V ( G ) | f ( v ) | , f ( u ) = A , | f ( N ( u ) ) | = | f ( N ( u ) ) | .
Proof. 
Assume that f ( u ) = { x 1 , x 2 , , x t } where x i { 1 , 2 , , k } , i { 1 , 2 , , t } . Let B = { x 1 , x 2 , , x t } \ { a 1 , a 2 , , a t } , C = { a 1 , a 2 , , a t } \ { x 1 , x 2 , , x t } , then | B | = | C | . Assume that | B | = p , B = { y 1 , y 2 , . . , y p } , C = { z 1 , z 2 , . . , z p } . Let f be a function of G obtained by changing y i into z i , changing z i into y i for y i , z i f ( v ) , v V ( G ) , i { 1 , 2 , , p } . Then, f ( u ) = { a 1 , a 2 , , a t } and f is an H-trk function of ( G , u ) and v V ( G ) | f ( v ) | = v V ( G ) | f ( v ) | , | f ( N ( u ) ) | = | f ( N ( u ) ) | . For example, G is a graph with V ( G ) = { u , v , s } , E ( G ) = { u v , u s , v s } and f is a total 5-rainbow dominating function of G such that f ( u ) = { 1 , 4 , 5 } , f ( v ) = { 2 , 3 , 4 } , f ( s ) = { 1 , 2 } . Then, we try to obtain a total 5-rainbow dominating function f such that f ( u ) = { 1 , 2 , 3 } . Thus, let B = { 4 , 5 } , C = { 2 , 3 } . Then, for f ( v ) = { 2 , 3 , 4 } , change 3 into 5, 4 into 2, 2 into 4, so f ( v ) = { 2 , 4 , 5 } . For  f ( s ) = { 1 , 2 } , change 2 into 4, f ( s ) = { 1 , 4 } . For  f ( u ) = { 1 , 4 , 5 } , change 4 into 2, change 5 into 3, so f ( u ) = { 1 , 2 , 3 } , as desired).    □
Lemma 5.
Let P and Q be disjoint graphs and u and v be the vertices of P and Q, respectively. Suppose that G = ( V , E ) is a new graph with V ( G ) = V ( P ) V ( Q ) , E ( G ) = E ( P ) E ( Q ) { u v } . Then, the following statements hold:
(a) γ ( G , u , t , 0 ) = γ ( P , u , t , 0 ) + γ ( Q , v , , k t ) , 1 t k ;
(b) γ ( G , u , t , 1 ) = min { γ ( P , u , t , 1 ) + min 1 t 1 k { γ ( Q , v , , k t ) , γ ( Q , v , t 1 , 0 ) , γ ( Q , v , t 1 , 1 ) } , γ ( P , u , t , 0 ) + min 1 t 1 k { γ ( Q , v , t 1 , 0 ) , γ ( Q , v , t 1 , 1 ) } } , 1 t k ;
(c) γ ( G , u , , t ) = min 0 t 1 < t { γ ( P , u , , t 1 ) + γ ( Q , v , t t 1 , 1 ) , γ ( P , u , , t ) + γ ( Q , v , , k ) } , 1 t k ;
(d) γ ( G , u , , 0 ) = γ ( P , u , , 0 ) + min 1 t k { γ ( Q , v , , k ) , γ ( Q , v , t , 1 ) , } .
Proof. 
If h 1 is a function of P, h 2 is a function of Q, f is a function of G such that f ( x ) = h 1 ( x ) for x V ( P ) , f ( x ) = h 2 ( x ) for x V ( Q ) , then we write f = h 1 h 2 .
(a) Let f 1 be an H-trk function of ( P , u ) with minimum weight such that | f 1 ( u ) | = t , f 1 ( N P ( u ) ) = , f 2 be an H-trk function of ( Q , v ) with minimum weight such that f 2 ( v ) = , k q = | f 2 ( N Q ( v ) ) | k t . Then, assume that f 2 ( N Q ( v ) ) = { s 1 , s 2 , , s q } , s i { 1 , 2 , . . , k } .
If t + q > k , there exists a function f 1 such that f 1 ( N P ( u ) ) = , v V ( P ) | f 1 ( v ) | = v V ( P ) | f 1 ( v ) | and f 1 ( u ) = { 1 , 2 , , k } \ { s 1 , s 2 , , s q } { x 0 , x 1 , . . , x t ( k q ) } , where x i { s 1 , s 2 , , s q } for i { 0 , 1 , . . , t ( k q ) } by Lemma 4.
If t + q k , let A = { a 1 , a 2 , , a t } , where a i { 1 , 2 , , k } \ { s 1 , s 2 , , s q } , i { 1 , 2 , , t } . Then, there exists a function f 1 such that f 1 ( N P ( u ) ) = , v V ( P ) | f 1 ( v ) | = v V ( P ) | f 1 ( v ) | and f 1 ( u ) = A by Lemma 4. Therefore, f = f 1 f 2 is an H-trk function of ( G , u ) such that | f ( u ) | = t , f ( N G ( u ) ) = . Thus, γ ( G , u , t , 0 ) γ ( P , u , t , 0 ) + γ ( Q , v , , k t ) .
If f is an H-trk function of ( G , u ) with minimum weight such that | f ( u ) | = t , f ( N G ( u ) ) = , then f = g 1 g 2 , where g 1 is an H-trk function of ( P , u ) such that | g 1 ( u ) | = t , g 1 ( N P ( u ) ) = , g 2 is an H-trk function of ( Q , v ) such that g 2 ( v ) = , | g 2 ( N Q ( v ) ) | k t . Thus, γ ( G , u , t , 0 ) γ ( P , u , t , 0 ) + γ ( Q , v , , k t ) .
(b) Using similar strategies used in the proof of (a), we obtain the equation from the fact that f is an H-trk function of ( G , u ) with | f ( u ) | = t and f ( N G ( u ) ) if and only if f = f 1 f 2 , where f 1 is an H-trk function of ( P , u ) with | f 1 ( u ) | = t and f 1 ( N P ( u ) ) and f 2 is a total k-rainbow dominating function (TkRDF) of Q, such that | f 2 ( v ) | = t 1 , or  f 2 is a TkRDF of Q, such that f 2 ( v ) = , | f 2 ( N Q ( v ) ) | k t , or  f 1 is an H-trk function of ( P , u ) with | f 1 ( u ) | = t and f 1 ( N P ( u ) ) = and f 2 is a TkRDF of Q such that | f 2 ( v ) | = t 1 .
(c) Using similar strategies used in the proof of (a), we obtain the equation from the fact that f is an H-trk function of ( G , u ) with f ( u ) = and | f ( N G ( u ) ) | t if and only if f = f 1 f 2 , where f 1 is an H-trk function of ( P , u ) with f 1 ( u ) = and | f 1 ( N P ( u ) ) | t 1 and f 2 is a TkRDF of Q, such that | f 2 ( v ) | = t t 1 and f 2 ( N Q ( v ) ) , or f 1 is an H-trk function of ( P , u ) with f 1 ( u ) = and | f 1 ( N P ( u ) ) | t and f 2 is a TkRDF of Q such that f 2 ( v ) = and | f 2 ( N Q ( v ) ) | = k .
(d) We obtain the equation from the fact that f is an H-trk function of ( G , u ) , with f ( u ) = and | f ( N G ( u ) ) | 0 if and only if f = f 1 f 2 , where f 1 is an H-trk function of ( P , u ) , with f 1 ( u ) = and | f 1 ( N P ( u ) ) | 0 and f 2 is a TkRDF of Q.    □
By Lemmas 3 and 5, we propose the following linear-time algorithm, Algorithm 1, with time-complexity O ( k 2 | V ( T ) | ) for computing the total k-rainbow domination number of the tree T.
Algorithm 1: T k R D ( T ) .
Mathematics 10 02059 i001

2.3. Complexity Difference between Total 2-Rainbow Domination and 2-Rainbow Domination

In this section, we define two classes of graphs for which the complexities of total 2-rainbow domination is different from 2-rainbow domination.
CONSTRUCTION 1: Let G = ( V , E ) be a graph with | V ( G ) | = n , then let each vertex v i V ( G ) be the tree T v i , where V ( T v i ) = { v i , a i , b i , c i , d i , e i , s i , t i , p i , q i , r i } , E ( T v i ) = { v i a i , a i b i , a i c i , c i e i , c i s i , c i t i , d i p i , d i q i , d i r i } , i { 1 , 2 , , n } . Let B = { T v i | i { 1 , 2 , , n } } be the set of disjoint trees corresponding to the graph G. If v i v j E ( G ) , then add an edge v i v j between the trees T v i B and T v j B . Therefore, we obtain a graph G . An example is shown in the Figure 5a,b. Let GT be the set of G obtained from graphs by CONSTRUCTION 1.
CONSTRUCTION 2: Let G = ( V , E ) be a graph with | V ( G ) | = n , then let each vertex v i V ( G ) be the graph G v i , where V ( G v i ) = { v i , a i , b i , c i , d i , e i , f i , g i , g i 1 , g i 2 , g i 3 , h i , k i , m i , m i 1 , m i 2 , m i 3 , p i , q i , r i , s i , s i 1 , s i 2 , s i 3 } , E ( G v i ) = { v i a i , v i b i , a i c i , c i b i , a i d i , d i f i , d i e i , f i e i , f i g i , g i g i 1 , g i g i 2 , g i g i 3 , c i h i , c i k i , h i k i , k i m i , m i m i 1 , m i m i 2 , m i m i 3 , b i p i , p i q i , p i r i , r i q i , r i s i , s i s i 1 , s i s i 2 , s i s i 3 } , i { 1 , 2 , , n } . Let B = { G v i | i { 1 , 2 , , n } } be the set of disjoint graphs corresponding to the graph G. If v i v j E ( G ) , then add an edge v i v j between the graphs G v i B and G v j B . Therefore, we obtain a graph G . An example is shown in the Figure 5a,c. Let GG be the set of G obtained from graphs by CONSTRUCTION 2.
Lemma 6.
Let G = ( V , E ) be a graph constructed from G = ( V , E ) by CONSTRUCTION 1, then γ t r 2 ( G ) = 6 n .
Proof. 
First, we define a total 2-rainbow dominating function f of G , f : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } , such that f ( a i ) = f ( c i ) = f ( d i ) = { 1 , 2 } , f ( v i ) = f ( b i ) = f ( e i ) = f ( s i ) = f ( t i ) = f ( p i ) = f ( q i ) = f ( r i ) = , where i { 1 , 2 , , n } . Clearly, f is a total 2-rainbow dominating function of G and γ t r 2 ( G ) ω ( f ) = 6 n .
Suppose f is a γ t r 2 -function of G . To dominate e i , s i , t i , p i , q i , r i , it is clear that f ( c i ) = f ( d i ) = { 1 , 2 } , where i { 1 , 2 , , n } . Since b i need to be dominated, we have | f ( a i ) | + | f ( b i ) | 2 , i { 1 , 2 , , n } . Thus, γ t r 2 ( G ) = ω ( f ) 6 n .
Therefore, γ t r 2 ( G ) = 6 n . □
Lemma 7.
Let G be a graph constructed from G by CONSTRUCTION 1, then γ r 2 ( G ) = γ r 2 ( G ) + 5 n .
Proof. 
Let f be a 2-rainbow dominating function with minimum weight of G and let g be a function of G , such that g ( b i ) = { 1 } , g ( c i ) = g ( d i ) = { 1 , 2 } , g ( e i ) = g ( s i ) = g ( t i ) = g ( p i ) = g ( q i ) = g ( r i ) = , g ( v i ) = f ( v i ) , where i { 1 , 2 , , n } . It is clear that g is the 2-rainbow dominating function of G , and ω ( g ) = ω ( f ) + 5 n = γ r 2 ( G ) + 5 n . Therefore, γ r 2 ( G ) γ r 2 ( G ) + 5 n .
Conversely, let h be a γ r 2 -function of G . To dominate e i , s i , t i , p i , q i , r i , | h ( c i ) | + | h ( e i ) | + | h ( s i ) | + | h ( t i ) | 2 , and | h ( d i ) | + | h ( p i ) | + | h ( q i ) | + | h ( r i ) | 2 , where i { 1 , 2 , , n } . Then, we define a function l of G, l : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } such that l ( v i ) = if h ( v i ) = h ( a i ) = and | h ( b i ) | = 1 , l ( v i ) = { 1 } if h ( v i ) = and | h ( a i ) | + | h ( b i ) | 2 , l ( v i ) = h ( v i ) if h ( v i ) , where i { 1 , 2 , , n } . Thence, l is a 2-rainbow dominating function of G with ω ( l ) γ r 2 ( G ) 5 n . That is γ r 2 ( G ) γ r 2 ( G ) 5 n . This completes the proof of the lemma. □
Lemma 8.
Let G = ( V , E ) be a graph constructed from G = ( V , E ) by CONSTRUCTION 2, then γ t r 2 ( G ) = γ t r 2 ( G ) + 12 n .
Proof. 
Let f be a total 2-rainbow dominating function with minimum weight of G and let g be a function of G , such that g ( c i ) = g ( f i ) = g ( r i ) = { 2 } , g ( d i ) = g ( p i ) = g ( k i ) = { 1 } , g ( g i ) = g ( m i ) = g ( s i ) = { 1 , 2 } , g ( a i ) = g ( b i ) = g ( e i ) = g ( h i ) = g ( q i ) = g ( g i 1 ) = g ( g i 2 ) = g ( g i 3 ) = g ( m i 1 ) = g ( m i 2 ) = g ( m i 3 ) = g ( s i 1 ) = g ( s i 2 ) = g ( s i 3 ) = , g ( v i ) = f ( v i ) , where i { 1 , 2 , , n } . It is clear that g is total 2-rainbow dominating function of G , and ω ( g ) = ω ( f ) + 11 n = γ t r 2 ( G ) + 12 n . Therefore, γ t r 2 ( G ) γ t r 2 ( G ) + 12 n .
Conversely, let h be a γ t r 2 -function of G , V 0 = { v | h ( v ) = } . To dominate g i 1 , g i 2 , g i 3 , we have | h ( g i 1 ) | + | h ( g i 2 ) | + | h ( g i 3 ) | + | h ( g i ) | 2 . To dominate e i , | h ( e i ) | + | h ( f i ) | + | h ( d i ) | 2 . Similarly, | h ( m i 1 ) | + | h ( m i 2 ) | + | h ( m i 3 ) | + | h ( m i ) | 2 , | h ( c i ) | + | h ( h i ) | + | h ( k i ) | 2 , | h ( s i 1 ) | + | h ( s i 2 ) | + | h ( s i 3 ) | + | h ( s i ) | 2 , | h ( p i ) | + | h ( r i ) | + | h ( q i ) | 2 . Therefore, v G v i \ { v i } | h ( v ) | 12 with equality if and only if h ( a i ) = h ( b i ) = .
Then we define a function l of G, l : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } , such that
(1) if h ( a i ) = h ( b i ) = , then l ( v i ) = h ( v i ) , (2) if | h ( a i ) | + | h ( b i ) | 1 and h ( v i ) , then l ( v i ) = h ( v i ) , l ( v j ) = { 1 } for one vertex v j N ( v i ) \ { a i , b i } V 0 , (3) if | h ( a i ) | + | h ( b i ) | = 1 and h ( v i ) = , then l ( v i ) = { 1 } , (4) if | h ( a i ) | + | h ( b i ) | 2 and h ( v i ) = , then l ( v i ) = { 1 } , l ( v j ) = { 1 } for one vertex v j N ( v i ) \ { a i , b i } V 0 , where i { 1 , 2 , , n } .
Hence, l is a total 2-rainbow dominating function of G with ω ( l ) γ t r 2 ( G ) 12 n . That is γ r 2 ( G ) γ t r 2 ( G ) 12 n . This completes the proof of the lemma. □
Lemma 9.
Let G be a graph constructed from G by CONSTRUCTION 2, then γ r 2 ( G ) = 11 n .
Proof. 
First, we define a 2-rainbow dominating function f of G , f : V ( G ) { , { 1 } , { 2 } , { 1 , 2 } } , such that f ( g i ) = f ( m i ) = f ( s i ) = { 1 , 2 } , f ( a i ) = f ( h i ) = f ( q i ) = { 1 } , f ( b i ) = f ( e i ) = f ( k i ) = { 2 } , f ( v i ) = f ( c i ) = f ( d i ) = f ( f i ) = f ( k i ) = f ( p i ) = f ( r i ) = f ( g i 1 ) = f ( g i 2 ) = f ( g i 3 ) = f ( m i 1 ) = f ( m i 2 ) = f ( m i 3 ) = f ( s i 1 ) = f ( s i 2 ) = f ( s i 3 ) = , where i { 1 , 2 , , n } . Clearly, f is a 2-rainbow dominating function of G and γ r 2 ( G ) ω ( f ) = 11 n .
Suppose h is a γ r 2 -function of G . It is immediate that | h ( g i 1 ) | + | h ( g i 2 ) | + | h ( g i 3 ) | + | h ( g i ) | 2 . | h ( m i 1 ) | + | h ( m i 2 ) | + | h ( m i 3 ) | + | h ( m i ) | 2 , | h ( s i 1 ) | + | h ( s i 2 ) | + | h ( s i 3 ) | + | h ( s i ) | 2 , To dominate e i , d i , | h ( e i ) | + | h ( d i ) | + | h ( a i ) | + | h ( f i ) | 2 . Similarly, | h ( b i ) | + | h ( p i ) | + | h ( r i ) | + | h ( q i ) | 2 . Since h i need to be dominated, | h ( h i ) | + | h ( c i ) | + | h ( k i ) | 1 . Thus, γ r 2 ( G ) = ω ( h ) 11 n .
Therefore, γ r 2 ( G ) = 11 n . □
By Lemmas 6 and 7, Lemmas 8 and 9, and the fact that the M2RDP and MT2RDP are NP-complete, the following results are immediate.
Theorem 4.
For a graph G GT , the minimum 2-rainbow domination problem is NP-complete and the minimum total 2-rainbow domination problem is solvable in polynomial time.
Theorem 5.
For a graph G GG , the minimum 2-rainbow domination problem is solvable in polynomial time and the minimum total 2-rainbow domination problem is NP-complete.

3. Conclusions

In this paper, we study the total 2-rainbow domination numbers of k-regular graphs and prove that the lower bound of total 2-rainbow domination numbers of 3-regular graphs is sharp for the double generalized Petersen graph D P ( n , 1 ) when n = 4 t 8 . It will be interesting to characterize the 3-regular graphs with order n, such that γ t r 2 ( G ) = | V ( G ) | 2 . Then, we prove that the decision problem of minimum total 2-rainbow dominating function is NP-complete for planar bipartite graphs, chordal bipartite graphs, undirected path graphs and split graphs, prove the complexity difference between minimum total 2-rainbow domination problem and minimum 2-rainbow domination problem and show a linear-time algorithm for total k-rainbow domination problem on trees. For the algorithm and hardness aspects of the total 2-rainbow domination problem, designing approximation algorithms on general graphs, or polynomial algorithms on some special classes graphs such as interval graphs, deserves further research.

Author Contributions

Investigation, H.J. and Y.R.; Methodology, H.J. and Y.R.; Supervision, Y.R.; Writing—original draft, H.J.; Writing—review & editing, H.J. and Y.R. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (No. 62172116) and the Guangzhou Academician and Expert Workstation (No. 20200115-9).

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. Gavril, F. The intersection graphs of subtrees in trees are exactly the chordal graphs. J. Comb. Theory Ser. B 1974, 16, 47–56. [Google Scholar] [CrossRef] [Green Version]
  2. Gavril, F. A recognition algorithm for the intersection graphs of paths in trees. Discret. Math. 1978, 23, 211–227. [Google Scholar] [CrossRef] [Green Version]
  3. Golumbic, M.C.; Goss, C.F. Perfect elimination and chordal bipartite graphs. J. Graph Theory 1978, 2, 155–163. [Google Scholar] [CrossRef]
  4. Cockayne, E.J.; Hedetniemi, S.T. Towards a theory of domination in graphs. Networks 1977, 7, 247–261. [Google Scholar] [CrossRef]
  5. Garey, M.R.; Johnson, D.S. Computers, and Intractability: A Guide to the Theory of NP-Completeness; Bell Telephone Laboratories, Inc.: New York, NY, USA, 1979. [Google Scholar]
  6. Bertossi, A.A. Dominating sets for split and bipartite graphs. Inf. Process. Lett. 1984, 19, 37–40. [Google Scholar] [CrossRef]
  7. M<i>u</i>¨ller, H.; Andreas, B. The NP-completeness of steiner tree and dominating set for chordal bipartite graphs. Theor. Comput. Sci. 1987, 53, 257–265. [Google Scholar]
  8. Lee, C.M.; Chang, M.S. Variations of Y-dominating functions on graphs. Discret. Math. 2008, 308, 4185–4204. [Google Scholar] [CrossRef] [Green Version]
  9. Booth, K.S.; Johnson, J.H. Dominating sets in chordal graphs. SIAM J. Comput. 1982, 11, 191–199. [Google Scholar] [CrossRef]
  10. Haynes, T.; Hedetniemi, S.; Slater, P. Fundamentals of Domination in Graphs; Marcel Dekker, Inc.: New York, NY, USA, 1998. [Google Scholar]
  11. Chang, G.J. Algorithmic aspects of domination in graphs. In Handbook of Combinatorial Optimization; Springer: Boston, MA, USA, 1998; pp. 1811–1877. [Google Scholar]
  12. Cockayne, E.J.; Goodman, S.; Hedetniemi, S.T. A linear algorithm for the domination number of a tree. Inf. Process. Lett. 1975, 4, 41–44. [Google Scholar] [CrossRef]
  13. Gonçalves, D.; Pinlou, A.; Rao, M.; Thomassé, S. The Domination Number of Grids. SIAM J. Discret. Math. 2011, 25, 1443–1453. [Google Scholar] [CrossRef] [Green Version]
  14. Papadimitriou, C.H.; Yannakakis, M. Optimization, approximation, and complexity classes. J. Comput. Syst. Sci. 1991, 43, 425–440. [Google Scholar] [CrossRef] [Green Version]
  15. Vizing, V.G. Some unsolved problems in graph theory. Russ. Math. Surv. 1968, 23, 125. [Google Scholar] [CrossRef]
  16. Imrich, W.; Klavzar, S.; Rall, D.F. Topics in Graph Theory: Graphs and Their Cartesian Product; CRC Press: Boca Raton, FL, USA, 2008. [Google Scholar]
  17. Brešar, B.; Henning, M.A.; Rall, D.F. Paired-domination of Cartesian products of graphs and rainbow domination. Electron. Notes Discret. Math. 2005, 22, 233–237. [Google Scholar] [CrossRef]
  18. Brešar, B.; Šumenjak, T.K. On the 2-rainbow domination in graphs. Discret. Appl. Math. 2007, 155, 2394–2400. [Google Scholar]
  19. Chang, G.J.; Wu, J.; Zhu, X. Rainbow domination on trees. Discret. Appl. Math. 2010, 158, 8–12. [Google Scholar] [CrossRef] [Green Version]
  20. Brešar, B.; Henning, M.A.; Rall, D.F. Rainbow domination in graphs. Taiwan. J. Math. 2008, 12, 213–225. [Google Scholar] [CrossRef]
  21. Shao, Z.; Liang, M.; Yin, C.; Xu, X.; Pavlič, P.; Žerovnik, J. On rainbow domination numbers of graphs. Inf. Sci. 2014, 254, 225–234. [Google Scholar] [CrossRef]
  22. Wu, Y.; Rad, N.J. Bounds on the 2-rainbow domination number of graphs. Graphs Comb. 2013, 29, 1125–1133. [Google Scholar] [CrossRef] [Green Version]
  23. Wu, Y.; Xing, H. Note on 2-rainbow domination and Roman domination in graphs. Appl. Math. Lett. 2010, 23, 706–709. [Google Scholar] [CrossRef] [Green Version]
  24. Šumenjak, T.K.; Rall, D.F.; Tepeh, A. Rainbow domination in the lexicographic product of graphs. Discret. Appl. Math. 2013, 161, 2133–2141. [Google Scholar] [CrossRef]
  25. Chellali, M.; Haynes, T.W.; Hedetniemi, S.T. Bounds on weak Roman and 2-rainbow domination numbers. Discret. Appl. Math. 2014, 178, 27–32. [Google Scholar] [CrossRef]
  26. Fujita, S.; Furuya, M.; Magnant, C. General bounds on rainbow domination numbers. Graphs Comb. 2015, 31, 601–613. [Google Scholar] [CrossRef]
  27. Shao, Z.; Jiang, H.; Wu, P.; Wang, S.; Žerovnik, J.; Zhang, X.; Liu, J.B. On 2-rainbow domination of generalized Petersen graphs. Discret. Appl. Math. 2019, 257, 370–384. [Google Scholar] [CrossRef]
  28. Ahangar, H.A.; Amjadi, J.; Rad, N.J.; Samodivkin, V. Total k-Rainbow domination numbers in graphs. Commun. Comb. Optim. 2018, 3, 37–50. [Google Scholar]
  29. Ahangar, H.A.; Amjadi, J.; Chellali, M.; Nazari-Moghaddam, S.; Sheikholeslami, S.M. Total 2-Rainbow Domination Numbers of Trees. Discuss. Math. Graph Theory 2021, 41, 345–360. [Google Scholar] [CrossRef] [Green Version]
  30. Ahangar, H.A.; Khaibari, M.; Rad, N.J.; Sheikholeslami, S. Graphs with large total 2-rainbow domination number. Iran. J. Sci. Technol. Trans. A Sci. 2018, 42, 841–846. [Google Scholar] [CrossRef]
  31. Kutnar, K.; Petecki, P. On automorphisms and structural properties of double generalized Petersen graphs. Discret. Math. 2016, 339, 2861–2870. [Google Scholar] [CrossRef]
Figure 1. The graph D P ( n , 1 ) .
Figure 1. The graph D P ( n , 1 ) .
Mathematics 10 02059 g001
Figure 2. (a) The graph D P ( 6 , 1 ) ; (b) The graph D P ( 9 , 4 ) .
Figure 2. (a) The graph D P ( 6 , 1 ) ; (b) The graph D P ( 9 , 4 ) .
Mathematics 10 02059 g002
Figure 3. (a) The graph G. (b) The graph G obtained from G.
Figure 3. (a) The graph G. (b) The graph G obtained from G.
Mathematics 10 02059 g003
Figure 4. The graph G F constructed from the instance F, where C 1 = x 1 x 2 x 3 , C 2 = x ¯ 1 x ¯ 3 x 4 , C 3 = x ¯ 2 x ¯ 3 x 4 .
Figure 4. The graph G F constructed from the instance F, where C 1 = x 1 x 2 x 3 , C 2 = x ¯ 1 x ¯ 3 x 4 , C 3 = x ¯ 2 x ¯ 3 x 4 .
Mathematics 10 02059 g004
Figure 5. (a) The graph G, (b) the graph G obtained from G by CONSTRUCTION 1, (c) the graph G obtained from G by CONSTRUCTION 2.
Figure 5. (a) The graph G, (b) the graph G obtained from G by CONSTRUCTION 1, (c) the graph G obtained from G by CONSTRUCTION 2.
Mathematics 10 02059 g005
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jiang, H.; Rao, Y. Total 2-Rainbow Domination in Graphs. Mathematics 2022, 10, 2059. https://doi.org/10.3390/math10122059

AMA Style

Jiang H, Rao Y. Total 2-Rainbow Domination in Graphs. Mathematics. 2022; 10(12):2059. https://doi.org/10.3390/math10122059

Chicago/Turabian Style

Jiang, Huiqin, and Yongsheng Rao. 2022. "Total 2-Rainbow Domination in Graphs" Mathematics 10, no. 12: 2059. https://doi.org/10.3390/math10122059

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