Next Article in Journal
A Complex Network Epidemiological Approach for Infectious Disease Spread Control with Time-Varying Connections
Next Article in Special Issue
Broadcasting in Stars of Cliques and Path-Connected Cliques
Previous Article in Journal
Computational Analysis of Parallel Techniques for Nonlinear Biomedical Engineering Problems
Previous Article in Special Issue
Text Indexing for Faster Gapped Pattern Matching
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Perfect Roman Domination: Aspects of Enumeration and Parameterization †

Theoretical Computer Science, Fachbereich IV, Trier University, 54296 Trier, Germany
*
Authors to whom correspondence should be addressed.
This paper is an extended version of our paper published in Perfect Roman Domination: Aspects of Enumeration and Parameterization. In: Rescigno, A.A., Vaccaro, U. (eds) Combinatorial Algorithms. IWOCA 2024. Lecture Notes in Computer Science, vol 14764. Springer, Cham.
Algorithms 2024, 17(12), 576; https://doi.org/10.3390/a17120576
Submission received: 8 November 2024 / Revised: 5 December 2024 / Accepted: 9 December 2024 / Published: 14 December 2024
(This article belongs to the Special Issue Selected Algorithmic Papers from IWOCA 2024)

Abstract

:
Perfect Roman Dominating Functions and Unique Response Roman Dominating Functions are two ways to translate perfect code into the framework of Roman Dominating Functions. We also consider the enumeration of minimal Perfect Roman Dominating Functions and show a tight relation to minimal Roman Dominating Functions. Furthermore, we consider the complexity of the underlying decision problems Perfect Roman Domination and Unique Response Roman Domination on special graph classes. For instance, split graphs are the first graph class for which Unique Response Roman Domination is polynomial-time solvable, while Perfect Roman Domination is NP-complete. Beyond this, we give polynomial-time algorithms for Perfect Roman Domination on interval graphs and for both decision problems on cobipartite graphs. However, both problems are NP-complete on chordal bipartite graphs. We show that both problems are W [ 1 ] -complete if parameterized by solution size and FPT if parameterized by the dual parameter or by clique width.

1. Introduction

There are many ways to get along with NP-complete problems. For example, you could consider exponential-time algorithms or approximation algorithms. Here, we want to deal with Perfect Roman Domination and Unique Response Roman Domination by looking into enumeration, into the complexity of related decision problems in special graph classes, and into parameterized complexity.
We only consider simple undirected graphs G = ( V , E ) throughout this paper. We recall some notions next. N G ( v ) : = { u V u v E } describes the open neighborhood of v V with respect to G. The closed neighborhood of v V with respect to G is defined by N G [ v ] : = N G ( v ) { v } . D V is a dominating set (or a perfect code, respectively) of G if each vertex v finds a (unique) vertex u in D N G [ v ] . A function f : V { 0 , 1 , 2 } is called a Roman dominating function (Rdf for short) if each v V with f ( v ) = 0 is adjacent to a u V with f ( u ) = 2 . The weight of a function f : V { 0 , 1 , 2 } is defined by ω f = v V f ( v ) . The decision problem Roman Domination has as input a graph G and a positive number k, and the question is whether there exists a Roman dominating function such that the weight of the function is at most k. Roman Domination is a well-studied variation of the dominating set. It is motivated by a defense strategy of the Roman Empire. The idea is to position the armies in regions in such a way that either (1) one army is in this region or (2) two armies are in one neighbored region. We model the distribution of the armies on the region (viewed as vertices of the graph) by a function that maps each region to the number of armies placed on this region.
In recent years, this problem received notable attention [1,2,3,4,5,6,7]. As for the dominating set, there are also many variants of Roman Dominating Functions considered in the literature. Examples are Roman- { 2 } -domination (also known as Italian domination) [8] or double Roman Domination [9,10,11]. Clearly, as testified by books written on this topic [12,13,14], there are even more variations of the basic concept of domination in graphs.
Here, we will consider two further variations of Roman Domination, perfect and Unique Response Roman Domination. A perfect Roman dominating function (pRdf for short) (introduced by Henning et al. [15]) is a Roman Dominating Function where each vertex with value 0 has exactly one neighbor with value 2. If, moreover, all vertices with at least 1 as a value have no neighbor with value 2, then we have a unique response Roman dominating function (urRdf for short) (as introduced in [16]). Both variations can be seen as a way to translate the idea of perfect code into the realm of Roman dominating function. A further motivation can also be the idea of positioning armies in regions: if the armies are placed according to a perfect Roman dominating function and a region without any army is attacked, then it is clear from which region an army moves to secure the attacked region, so no time is wasted to first agree on who is the one to take action and move to the endangered region. This article is a revised and expanded version of a paper entitled “Perfect Roman Domination: Aspects of Enumeration and Parameterization”, which was presented at the 35th International Workshop Combinatorial Algorithms, IWOCA 2024, which took place on the island of Ischia, Italy, 1–3 July 2024. An extended abstract of this paper has appeared in the proceedings of IWOCA 2024; see [17]. More formally, the decision problems sketched so far are given as follows:
Problem name: Unique Response Roman Domination (URRD)
Given: A graph G = ( V , E ) and k N
Question: Is there a unique response Roman dominating function f on G with ω ( f ) k ?
Problem name: Perfect Roman Domination (PRD)
Given: A graph G = ( V , E ) and k N
Question: Is there a perfect Roman dominating function f on G with ω ( f ) k ?
Let u R ( G ) denote the smallest weight of any unique response Roman dominating function f on G. Furthermore, γ R p ( G ) denotes the smallest weight of any perfect Roman dominating function on G. The following is known about the complexity of these decision problems. Unique Response Roman Domination is NP-complete on regular bipartite graphs [18]. Banerjee et al. [19] showed that it is NP-complete on chordal graphs, and polynomial-time solvable on distance-hereditary and interval graphs. They also proved that there is no Unique Response Roman Domination polynomial-time approximation algorithm within a factor of n 1 ϵ for any constant ϵ > 0 and any n-vertex input graph, if NP P . Perfect Roman Domination is NP-complete on chordal graphs, planar graphs, and bipartite graphs, and polynomial-time solvable on block graphs, cographs, series-parallel graphs, and proper interval graphs as shown in [20]. These results are complemented by our complexity results in this paper as surveyed in Table 1 that presents the main classical complexity results of our paper. Notice that, in particular, our results concerning split and chordal bipartite graphs solve questions posed as open in [19] (Table 1). We complement the NP-hardness results by providing FPT-algorithms for the parameters treewidth and solution size, as well as for the dual parameter, both for Perfect Roman Domination and for Unique Response Roman Domination. Also, if the clique decomposition is explicitly given, the problems can be solved in FPT-time when parameterized by the clique width of this decomposition.
Enumeration is a wide area of research as testified by specialized workshops like [21]. For some examples, we refer to the survey [22]. From a practical point of view, enumeration can be interesting if not all aspects of the problem have been satisfactorily modeled. This also makes sense for the motivation of Roman Domination (variants). It could be the case that between neighbored regions, there is a conflict unknown to the strategic planner of the army deployment. Such a conflict could be a reason why the regions do not want to defend each other. Enumerating minimal Roman dominating functions was considered by Abu-Khzam et al. [23]. There, it was shown that all pointwise (i.e., for f , g : V { 0 , 1 , 2 } , f g if and only if f ( v ) g ( v ) for all v V ) minimal Roman dominating functions of a graph of order n can be enumerated in time O ( 1.9332 n ) with polynomial delay. An enumeration algorithm has polynomial delay if the time between two subsequent outputs of the algorithm can be bounded by some polynomial, as well as the time from the start to the first output and the time between the last output and the termination of the algorithm. This property is interesting if a user (or another program) processes the results in a pipeline fashion. Also, it is not known if there is such an algorithm for enumerating (inclusion-wise) minimal dominating sets. In this context, we remark the following.
Observation 1.
Unless P = NP , there exists no polynomial-delay enumeration algorithm for (inclusion-wise minimal) perfect codes.
Namely, such a polynomial-delay enumeration algorithm could also be used to decide (in polynomial time) if a perfect code exists in a given graph, a problem known to be NP-hard; see [24]. This contrasts with the polynomial-delay algorithms that we develop in this paper for enumerating minimal unique response and Perfect Roman Dominating Functions. We also obtain input-sensitive enumeration results in this way.
We now collect more notation that we will use in the paper. Let N denote the set of all non-negative integers (including 0). For n N , we will use the notation [ n ] : = { 1 , , n } . Let A , B be two sets. B A is the set of all total functions f : A B . Likewise, A 2 is the set of all 2-element subsets of A. For A B , χ A : B N denotes the characteristic function ( χ A ( a ) = 1 if and only if a A ; χ A ( a ) = 0 , otherwise). Let G = ( V , E ) be a graph. For a set A V , the open neighborhood is defined as N G ( A ) : = v A N G ( v ) . The closed neighborhood of A is given by N G [ A ] : = N G ( A ) A . The private neighborhood of a vertex v A with respect to G and A is denoted by P G , A ( v ) : = N G [ v ] \ N G [ A \ { v } ] . Let G = ( V , E ) be a graph and f : V { 0 , 1 , 2 } . We define V i ( f ) : = { v V f ( v ) = i } for i { 0 , 1 , 2 } . If v V obeys f ( v ) = 2 , then u N G ( v ) with f ( u ) = 0 is called a private neighbor of v (with respect to f) if | N G ( u ) V 2 ( f ) | = 1 . In the previous notation, we dropped the subscript G if it was clear from the context.
Observation 2.
Let G = ( V , E ) be a graph and f : V { 0 , 1 , 2 } . (1) If f is a perfect Roman dominating function, then for all v V 2 ( f ) and u N ( v ) V 0 ( f ) , u is a private neighbor of v. (2) If f is a Roman dominating function such that for all v V 2 ( f ) and u N ( v ) V 0 ( f ) , u is a private neighbor of v, then f is a perfect Roman dominating function.
Observation 3.
Each unique response Roman dominating function on a graph without isolated vertices is a minimal Roman dominating function.
A final note on parameterized complexity: If P is some problem and κ is some parameter, we write κ - P to denote the problem P parameterized by κ .

2. Enumerating Minimal Perfect Roman Domination

The main goal of this section is to find a polynomial-delay algorithm to enumerate all minimal perfect Roman dominating functions even when solving the extension problem is hard, which blocks the standard approach to obtaining such enumeration algorithms.
Remark 1.
It should be mentioned that there are graphs G = ( V , E ) such that the set of perfect Roman dominating functions on G is not closed under ≤. This means that there exists a perfect Roman dominating function f { 0 , 1 , 2 } V and a g { 0 , 1 , 2 } V with f g such that g is no perfect Roman dominating function. One example of this is the 4-cycle
C 4 = ( { v 1 , v 2 , v 3 , v 4 } , { { v 1 , v 2 } , { v 2 , v 3 } , { v 3 , v 4 } , { v 4 , v 1 } } )
with the two functions
f ( v 1 ) = 0 , f ( v 2 ) = 2 , f ( v 3 ) = 0 , f ( v 4 ) = 1 , g ( v 1 ) = 0 , g ( v 2 ) = 2 , g ( v 3 ) = 0 , g ( v 4 ) = 2 .
This contradicts the idea of extension problems as they are defined in [25] because this violates the so-called upward closedness condition, but this condition is a matter of debate even in [25].
We often employ the following characterization result that is of independent interest.
Theorem 1.
Let G = ( V , E ) be a graph. A function f : V { 0 , 1 , 2 } is a minimal perfect Roman dominating function if and only if the following conditions are true:
1.
v V 0 ( f ) : | N G ( v ) V 2 ( f ) | = 1 .
2.
v V 1 ( f ) : | N G ( v ) V 2 ( f ) | 1 .
3.
v V 2 ( f ) : | N G ( v ) V 0 ( f ) | 0 .
Proof. 
Let f be a minimal perfect Roman dominating function. This implies the first condition. If there exists a v V 1 ( f ) with | N G ( v ) V 2 ( f ) | = 1 , then f χ { v } is also a perfect Roman dominating function, cf. Observation 2. For each v V 2 ( f ) , | N G ( v ) V 0 ( f ) | 0 , as, otherwise, f χ { v } is also a perfect Roman dominating function.
Now assume f is a function that fulfills these conditions. By Condition 1, we know f is a perfect Roman dominating function. Let g be a minimal perfect Roman dominating function with g f . Thus, V 0 ( f ) V 0 ( g ) and V 2 ( g ) V 2 ( f ) hold. Assume there exists a v V with g ( v ) < f ( v ) = 2 . By Condition 3, there exists some u N G ( v ) V 0 ( f ) . Because of condition 1, v is the only neighbor of u with value 2. Hence, N G ( u ) V 2 ( g ) N G ( u ) ( V 2 ( f ) \ { v } ) = . This contradicts the construction of g as a perfect Roman dominating function. Therefore, V 2 ( g ) = V 2 ( f ) . If there were a v V with g ( v ) = 0 < 1 = f ( v ) , then this would contradict that g is a perfect Roman dominating function since | N G ( v ) V 2 ( g ) | = | N G ( v ) V 2 ( f ) | 1 . □
Remark 2.
This result implies that the constant function χ V : V { 0 , 1 , 2 } , v 1 is the maximum minimal perfect Roman dominating function with respect to ω for each graph G = ( V , E ) , similar to maximum minimal Roman dominating functions as discussed in [26]. The reason is simple: if there exists a vertex v V of value 2, then this vertex needs a neighbor u with value 0. Since u has exactly one neighbor in V 2 ( f ) , ω f | V | for each perfect Roman dominating function f.
Problem name: Extension Perfect Roman Domination (Ext PRD)
Given: A graph G = ( V , E ) and f { 0 , 1 , 2 } V .
Question: Is there a minimal perfect Roman dominating function g on G with f g ?
For the NP-hardness proof, we use Monotone 3-Sat-(2,2). This is a variant of 3-Sat where each clause includes only positive or negative literals and each variables appears twice positive and twice negative in clauses. It is known by [27] that also this restriction of 3-Sat is NP-complete.
Theorem 2.
Extension Perfect Roman Domination is NP-complete even on bipartite graphs of maximum degree 4.
Proof. 
For the NP-hardness result, we employ Monotone 3-Sat-(2,2). So, let X : = { x 1 , , x n } be the set of variables and C : = { c 1 , , c m } the set of clauses. To simplify the notation, denote X = { x i , x i ¯ i [ n ] } . For each j [ m ] , let c j = l j , 1 l j , 2 l j , 3 C with l j , 1 , l j , 2 , l j , 3 X .
Define G = ( V , E ) with
V : = { v i , v i ¯ , w i , y i , z i i [ n ] } { p j , q j , r j j [ m ] } E : = { { v i , w i } , { v i ¯ , w i } , { v i , y i } , { v i ¯ , y i } , { z i , y i } i [ n ] } { { v i , p j } j [ m ] , k [ 3 ] , i [ n ] , x i = l j , k } { { v i ¯ , p j } j [ m ] , k [ 3 ] , i [ n ] , x i ¯ = l j , k } { { q j , p j } , { q j , r j } j [ m ] } .
The gadgets are also depicted in Figure 1. Furthermore, let
f : = 2 · χ { q j j [ m ] } { y i i [ n ] } + χ { p j j [ m ] } { 0 , 1 , 2 } V .
Clearly, G can be constructed in polynomial time. Furthermore, the sets A : = { v i , v i ¯ , z i i [ n ] } { q j j [ m ] } and B : = { w i , y i i [ n ] } { p j , r j j [ m ] } are partition classes. This is easy to observe, as in each of the edges, we mention first the element of A and then the one of B. Since we consider Monotone 3-Sat-(2,2), for all i [ n ] , j [ m ]
deg ( r j ) = deg ( z i ) = 1 < deg ( w i ) = deg ( q j ) = 2 < deg ( y i ) = 3 < deg ( v i ) = deg ( v i ¯ ) = deg ( p j ) = 4 .
Claim 1.
There is an assignment ϕ satisfying C if and only if there is a minimal perfect Roman dominating function g { 0 , 1 , 2 } V with f g .
Proof. 
Let ϕ be an assignment satisfying the clauses. Then, define
g : = f + 2 · χ { v i ϕ ( x i ) = 1 } { v i ¯ ϕ ( x i ) = 0 } .
Trivially, f g . For j [ m ] , r j V 0 ( g ) is only dominated by q j V 2 ( g ) . Let i [ n ] . Observe that z i V 0 ( g ) and that N ( z i ) V 2 ( g ) = { y i } . The last type of vertex to discuss in V 0 ( g ) is w i . If ϕ ( x i ) = 1 , w i is only dominated by v i . For ϕ ( x i ) = 0 , N ( w i ) V 2 ( g ) = { v i ¯ } . Hence, the first condition of Theorem 1 is fulfilled.
In order to see the validity of the second condition, let j [ m ] . Assume c j includes only positive literals (otherwise, the proof is analogous). Since ϕ is a solution to the SAT instance, there exists x i c j with ϕ ( x i ) = 1 , which implies | N ( p j ) V 2 ( g ) | 2 . As V 1 ( g ) = { p j j [ m ] } , the second condition is also satisfied.
This leaves us to show the last condition. For each j [ m ] , N ( r j ) V 2 ( g ) = { q j } . Let i [ n ] . The vertex z i is a private neighbor of y i V 2 ( g ) . Since ϕ is an assignment, w i is the private neighbor of the vertex in V 2 ( g ) { v i , v i ¯ } . Hence, g is a minimal perfect Roman dominating function.
For the reverse direction, assume there is a minimal perfect Roman dominating function g { 0 , 1 , 2 } V with f g . Observe that V \ N ( V 2 ( f ) ) = { w i i [ n ] } . Because each vertex in V 2 ( g ) needs to have a private neighbor, V 2 ( g ) \ V 2 ( f ) { v i , v i ¯ i [ n ] } . For any i [ n ] , { v i , v i ¯ } V 2 ( g ) . Otherwise, v i would not have a private neighbor.
Define ϕ : = χ { x i i [ n ] , g ( v i ) = 2 } . Assume there is a clause c j which is not satisfied by ϕ . Then, q j is the only neighbor of p j in V 2 ( g ) . Since g ( p j ) = 1 , this contradicts Condition 2 of Theorem 1 and g is not a minimal perfect Roman dominating function. Hence, ϕ is a solution to the Sat instance. □
This proves that we have described a valid polynomial-time computable reduction and hence we have shown NP-hardness. Membership in NP is easy by a guess-and-check approach. This concludes the proof of Theorem 2. □
We use Theorem 1 also to obtain the announced polynomial-delay enumeration algorithm. This algorithm uses the idea that there is a bijection between all minimal perfect Roman dominating functions and all minimal Roman dominating functions of a graph. To show this bijection, we need the following characterization theorem from [23].
Theorem 3.
Let G = V , E be a graph, f : V { 0 , 1 , 2 } be a function and let G : = G V 0 f V 2 f . Then, f is a minimal Roman dominating function if and only if the following holds:
1.
N G V 2 f V 1 f = .
2.
v V 2 f : P G , V 2 f v { v } .
3.
V 2 f is a minimal dominating set on G .
Let G = ( V , E ) be a graph. Define the following sets of functions:
μ - RDF G = { f : V { 0 , 1 , 2 } f is a minimal Roman dominating function} and
μ - PRDF G = { f : V { 0 , 1 , 2 } f is a minimal perfect Roman dominating function}.
Theorem 4.
Let G = ( V , E ) be a graph. There is a bijection B : μ - RDF G μ - PRDF G . Furthermore, B ( f ) and B 1 ( g ) can be computed in polynomial time (with respect to G) for each f μ - RDF G and g μ - PRDF G .
Proof. 
Let f μ - RDF G and g μ - PRDF G . Define B ( f ) by the three sets
V 0 ( B ( f ) ) = { v V 0 ( f ) | N G ( v ) V 2 ( f ) | = 1 } , V 1 ( B ( f ) ) = { v V 0 ( f ) | N G ( v ) V 2 ( f ) | 2 } V 1 ( f ) , V 2 ( B ( f ) ) = V 2 ( f ) .
By the definition of B, | N G ( v ) V 2 ( f ) | = 1 holds for all v V 0 ( B ( f ) ) . Since each v V with f ( v ) = 2 needs a private neighbor except itself by Theorem 3, N G ( v ) V 0 ( B ( f ) ) holds. As any v V 1 ( f ) has no neighbor in V 2 ( f ) and any v V 1 ( B ( f ) ) \ V 1 ( f ) has at least two neighbors in V 2 ( f ) , all conditions of Theorem 1 are met. Therefore, B ( f ) μ - PRDF G .
Define B 1 ( g ) by the three sets
V 0 ( B 1 ( g ) ) = V 0 ( g ) { v V 1 ( g ) | N G ( v ) V 2 ( g ) | 2 } , V 1 ( B 1 ( g ) ) = { v V 1 ( g ) | N G ( v ) V 2 ( g ) | = 0 } , V 2 ( B 1 ( g ) ) = V 2 ( f ) .
By the definition of B 1 , N G ( v ) V 2 ( B 1 ( g ) ) = for each v V 1 ( B 1 ( g ) ) . By Theorem 1, each v V 0 ( g ) has exactly one neighbor in V 2 ( g ) . Therefore, each vertex in V 0 ( B 1 ( g ) ) has a neighbor in V 2 ( B 1 ( g ) ) , and V 2 ( B 1 ( g ) ) is a dominating set on G [ V 0 ( B 1 ( g ) ) V 2 ( B 1 ( g ) ) ] . Theorem 1 implies that each v V 2 ( g ) has a u N G ( v ) V 0 ( g ) with { v } = N G ( u ) V 2 ( g ) . Hence, u is a private neighbor of v and B 1 ( g ) μ - RDF G . This leaves to show that B 1 ( B ( f ) ) = f and B ( B 1 ( g ) ) = g . Trivially,
V 2 ( B 1 ( B ( f ) ) ) = V 2 ( f ) and V 2 ( B ( B 1 ( g ) ) ) = V 2 ( g )
holds. Let v V 1 ( f ) . By Theorem 3, we know N G ( v ) V 2 ( f ) = . This implies v V 1 ( B ( f ) ) V 1 ( B 1 ( B ( f ) ) ) . Let v V 0 ( f ) with | N G ( v ) V 2 ( f ) | = 1 . Thus, v V 0 ( B ( f ) ) V 0 ( B 1 ( B ( f ) ) ) . Let v V 0 ( f ) with | N G ( v ) V 2 ( f ) | 2 . Therefore, v V 1 ( B ( f ) ) holds. The definition of B 1 implies v V 0 ( B 1 ( B ( f ) ) ) . Hence, B 1 ( B ( f ) ) = f . Assume v V 0 ( g ) . Theorem 1 implies | N G ( v ) V 2 ( f ) | = 1 . Therefore, v V 0 ( B ( B 1 ( f ) ) ) V 0 ( B 1 ( f ) ) . For v V 1 ( g ) with N G ( v ) V 2 ( g ) = , the construction of the functions B , B 1 implies v V 1 ( B ( B 1 ( f ) ) ) V 1 ( B 1 ( f ) ) . Let v V 1 ( g ) with | N G ( v ) V 2 ( g ) | 2 . This leads to v V 0 ( B 1 ( g ) ) and v V 1 ( B ( B 1 ( g ) ) ) . Hence, B ( B 1 ( g ) ) = g . Therefore, the theorem holds. □
This bijection is a so-called parsimonious reduction. This is a class of reductions designed for enumeration problems. For more information, we refer to [28]. Even without this paper, Theorem 4 implies some further results thanks to [23].
Corollary 1.
There are graphs of order n that have at least 16 5 n Ω ( 1.7441 n ) many minimal perfect rdf.
Theorem 5.
There is a polynomial-space, polynomial-delay algorithm that enumerates all minimal perfect Roman dominating functions of a given graph of order n in time O * ( 1.9332 n ) .
Remark 3.
It should be mentioned that the function B defined in the proof of Theorem 4 inherits inclusion-wise minimality, but this does not mean that, if f is a minimum Roman Dominating Function, then B ( f ) is a minimum perfect Roman dominating function. To see this, we consider the graph G = ( V , E ) with V : = { v 1 , , v 8 } and
E : = { { v 1 , v 3 } , { v 2 , v 3 } , { v 4 , v 3 } , { v 5 , v 3 } , { v 4 , v 6 } , { v 5 , v 6 } , { v 7 , v 6 } , { v 8 , v 6 } } .
The graph is visualized in Figure 2. Since v 1 , v 2 and v 7 , v 8 are pairs of false twins and v 1 , v 7 have no common neighbors, for each Roman dominating function f on G, ω f 4 . Therefore, f { 0 , 1 , 2 } V with V 0 ( f ) = { v 1 , v 2 , v 4 , v 5 , v 7 , v 8 } , V 1 ( f ) = , and V 2 ( f ) = { v 3 , v 6 } is a minimum Roman dominating function. B ( f ) is given by V 0 ( B ( f ) ) = { v 1 , v 2 , v 7 , v 8 } , V 1 ( B ( f ) ) = { v 4 , v 5 } , and V 2 ( f ) = { v 3 , v 6 } . The weight is ω B ( f ) = 6 . The minimal perfect Roman dominating function g { 0 , 1 , 2 } with V 0 ( g ) = { v 1 , v 2 , v 4 , v 5 } , V 1 ( g ) = { v 6 , v 7 , v 8 } and V 2 ( g ) = { v 3 } fulfills ω g = 5 . Hence, B ( f ) is no minimum perfect Roman dominating function.
Let h { 0 , 1 , 2 } V be a minimal perfect Roman dominating function. For h ( v 3 ) = h ( v 6 ) = 2 , h = B ( f ) , as v 1 , v 2 , v 7 , v 8 N ( V 2 ( h ) ) are pendant. Assume h ( v 3 ) = 2 h ( v 6 ) . If h ( v 4 ) = 2 (respectively, h ( v 5 ) = 2 ), then h ( v 7 ) = h ( v 8 ) = 1 and ω h 6 . For h ( v 7 ) = 2 (respectively, h ( v 8 ) = 2 ), h ( v 8 ) = 1 (respectively, h ( v 7 ) = 1 ) and ω g = 5 ω h . As v 1 , v 2 V 2 ( h ) for h ( v 3 ) = 2 , the remaining possibility is h = g . Thus, ω g = 5 ω h holds for each minimal perfect Roman dominating function with h ( v 3 ) = 2 h ( v 6 ) . Analogously, for perfect Roman dominating functions h with h ( v 6 ) 2 = h ( v 3 ) , ω g = 5 ω h . Let h ( v 3 ) 2 and h ( v 6 ) 2 . Since N ( v i ) { v 3 , v 6 } for i { 1 , 2 , 4 , 5 , 7 , 8 } , v 1 , v 2 , v 4 , v 5 , v 7 , v 8 V 0 ( h ) . Hence, ω h 6 and g is a minimum perfect Roman dominating function. Furthermore, B 1 ( g ) = g is not a minimum Roman dominating function.
According to [29], we obtain some further results for special graph classes: Let G = ( V , E ) , with n : = | V | being of the order of G. If G is a forest or interval graph, then there is a perfect Roman dominating function enumeration algorithm that runs in time O * ( 3 n ) with polynomial delay. For both graph classes, a graph with many isolated edges is an example of a graph with 3 n many minimal perfect Roman dominating function. This is also the worst-case example for chordal graphs which is known so far. We can enumerate all perfect Roman dominating functions of these graphs in time O ( 1 . 8940 n ) . If G is a split or cobipartite graph, then we can enumerate all perfect Roman dominating functions of G in O * ( 3 3 n ) with polynomial delay. Further, both classes include graphs of order n with Ω ( 3 3 n ) many perfect Roman dominating functions. There is also a polynomial-time recursive algorithm to count all perfect Roman dominating functions of paths. The enumeration of unique response Roman dominating functions in split graphs is considered in Section 3.4.

3. Complexity and Enumeration in Special Graph Classes

In this section, we consider the complexity of our problems Perfect Roman Domination and Unique Response Roman Domination on different graph classes: interval, split, cobipartite, and chordal bipartite graphs. Perfect Roman Domination is known to be NP-complete on chordal graphs [20].

3.1. Interval Graphs

We first start with a polynomial-time algorithm for Perfect Roman Domination for interval graphs. A graph G = ( V , E ) is called an interval graph (see [30]) if, for v V , there is an interval I v = [ l v , r v ] such that { v , u } E if and only if I v I u . We can assume that the interval representation obeys u , v V : r u = r v u = v .
Theorem 6.
Perfect Roman Domination is polynomial-time solvable on interval graphs.
Proof. 
Let G = ( V , E ) be an interval graph such that I v = [ l v , r v ] is the interval representation of v V . The dynamic programming works from “left to right” according to some linear extension of the partial order defined as w v if and only if l w l v r w r v . For v V , L v : = { w V l w r v } denotes the set of vertices which are dominated by v or “to the left” of I v . To simplify our notation, we define P v : = { w V \ { v } w v } to easily refer to the already considered vertices in the dynamic program. W v : = { w V r v < r w } is the set of not yet considered vertices. For v V , u P v and w P u , define Z u , v : = L v \ ( N [ u ] N [ v ] ) ( N ( u ) N ( v ) ) and Y w , u , v : = N ( u ) N ( v ) \ N [ w ] L v \ ( L u N [ v ] ) ; see Figure 3. All these sets and their cardinalities can be computed before the actual dynamic programming starts. Also, we can compute the perfect Roman dominating functions that set at most one vertex to 2 and store their minimum weight in min 1 .
We need some more notation to formulate the dynamic programming algorithm and prove its correctness. For v V and u P v , define Γ u , v : = { f { 0 , 1 , 2 } V f | L v PRDF G [ L v ] f ( u ) = f ( v ) = 2 w W u \ { v } : f ( w ) 2 } and γ u , v = min f Γ u , v ω f . In the following, f u , v will denote one function from Γ u , v that attains this minimum, i.e., ω f u , v = γ u , v . For the inductive computation, we will reuse the values γ w , u with w P u . For the correctness of this approach, the following observations are helpful.
  • Z u , v is connected to the function f u , v Γ u , v by setting V 2 ( f u , v ) = { u , v } and V 1 ( f u , v ) = Z u , v .
  • Y w , u , v = V 1 ( f w , u , v ) \ V 1 ( f w , u ) , where f w , u , v is the auxiliary perfect Roman dominating function which we will construct from f w , u in the induction step.
  • If f Γ u , v , then f ˜ : = f + χ V \ L v is a perfect Roman dominating function on G. If f is a minimum, then f ˜ is a minimum perfect Roman dominating function on G.
By the third property, after the inductive computations,
min min 1 , min { γ u , v + | V \ L v | | v V , u P v }
gives the minimum weight of any perfect Roman dominating function for G.
Assume now that v is a vertex for which we want to compute all relevant γ u , v next, with u P v . The following claim contains a formula that describes how to do this. It implicitly also covers the initial step: then, γ u , v = 4 + | Z u , v | since P u = .
Claim 2.
Let v V and u P v . Then,
γ u , v = min { 4 + | Z u , v | , 2 | { v } N ( u ) N ( w ) | + γ w , u + | Y w , u , v | w P u } .
Proof. 
Let f w , u Γ w , u for w P u such that ω f w , u = γ w , u . Define
f w , u , v : = f w , u + ( 2 χ N ( u ) N ( w ) ) · χ { v } + χ Y w , v , u .
Clearly, ω f w , u , v = γ w , u + 2 | { v } N ( u ) N ( w ) | + | Y w , u , v | and f w , u , v ( x ) = f w , u ( x ) { 0 , 1 , 2 } for x V \ ( { v } Y w , u , v ) . In particular, f w , u , v ( u ) = f w , u ( u ) = 2 . (More generally, V 2 ( f w , u , v ) V 2 ( f w , u ) .) Now we consider x Y w , u , v . For x L v \ ( L u N ( v ) ) V \ L u , f w , u ( x ) = 0 . Otherwise, f w , u χ { x } would belong to Γ w , u with ω f w , u χ { x } < ω f w , u . So assume x N ( v ) N ( u ) \ N ( w ) . Since w P u , r w < l x < r u < r v . If ( V 2 ( f w , u ) \ { u } ) N ( x ) , this would contradict the fact that f w , u ( z ) 2 for all z W w \ { u } . Hence, f w , u ( z ) = 0 because of minimality. Hence, Y w , u , v V 0 ( f w , u ) and f w , u , v ( x ) { 0 , 1 , 2 } for x Y w , u , v .
Now consider f w , u , v ( v ) . As f w , u ( v ) 2 , v Y w , u , v and f w , u ( v ) + 1 f w , u , v ( v ) f w , u ( v ) + 2 , i.e., 1 f w , u , v ( v ) 3 . We will next show that 1 f w , u , v ( v ) 2 . For the sake of contradiction, assume f w , u , v ( v ) = 3 . Then, f w , u ( v ) = 1 and v N ( u ) N ( w ) . As (in addition) r w < r u < r v and l w l u l v , we must have r w < l v . Hence, { w , v } E . If N ( v ) V 2 ( f w , u ) { u } , then f w , u χ { v } Γ w , u , contradicting minimality of f w , u in Γ w , u . If ( V 2 ( f w , u ) N ( v ) ) \ { u , w } , this would contradict the construction of Γ w , u , as r w < l v < r x . Hence, f w , u , v ( v ) { 1 , 2 } . If f w , u , v ( v ) = 1 , then v N ( u ) N ( w ) L u and f w , u ( v ) = 0 . But then f w , u | L u would not be a perfect Roman dominating function. Therefore, f w , u , v ( v ) = 2 .
Now we want show that f w , u , v | L v is a perfect Roman dominating function on G [ L v ] . Since f w , u is a Roman dominating function on G [ L u ] and L v = L u N [ v ] ( L v \ ( L u N [ v ] ) ) L u N [ v ] Y w , u , v , f w , u , v | L v is a Roman dominating function on G [ L v ] . Assume there is an x V 0 ( f w , u , v | L v ) with | V 2 ( f w , u , v | L v ) N ( x ) | > 1 . Since V 2 ( f w , u , v ) = V 2 ( f w , u ) { v } (also implying that for all y W u \ { v } , f w , u , v ( y ) 2 ), x N ( v ) . For each x N ( v ) N ( u ) , either x Y w , u , v or x N ( u ) N ( w ) V 1 ( f w , u ) V 2 ( f w , u ) . Hence, x N ( v ) \ N ( u ) and N ( x ) W u W w (otherwise u P v ). By definition of Γ w , u , N ( x ) V 2 ( f w , u , v ) = { v } . In total, f w , u , v Γ u , v .
By the definition of Γ u , v , { u , v } V 2 ( f u , v ) . (a) Assume { u , v } = V 2 ( f ) . Since f u , v | L v is a perfect Roman dominating function on G [ L v ] , L v \ ( N [ u ] N [ v ] ) V 1 ( f u , v ) , as these vertices are not dominated. Further, N ( u ) N ( v ) V 1 ( f u , v ) because these vertices have two neighbors in V 2 ( f u , v ) . So f : = 2 · χ { u , v } + χ Z u , v f u , v . As f Γ u , v , f = f u , v with ω f = 4 + | Z u , v | . (b) Assume { u , v } V 2 ( f u , v ) . Then, let w V 2 ( f u , v ) \ { u , v } with maximal r w . Since w W u \ { v } , r w < r u . If l u < l w , f u , v χ { w } Γ u , v with ω f u , v χ { w } < f u , v . Therefore, w P u and for each y V 2 ( f u , v ) \ { v } , N ( y ) L u . Hence, x L v \ L u N [ v ] has no neighbor in V 2 ( f u , v ) and L v \ L u N [ v ] V 1 ( f u , v ) . Consider a x ( N ( u ) N ( v ) ) \ N ( w ) . Since x has more than one neighbor in V 2 ( f u , v ) , f u , v ( x ) > 0 . Clearly, r w < l x < r u holds. By the definition of w, f u , v ( x ) 2 . Define f : = f u , v χ Y w , u , v ( 2 χ N ( u ) N ( u ) ) · χ { v } . Clearly, ω f = ω f u , v 2 + | { v } N ( u ) N ( w ) | | Y w , u , v | . We want to show that f Γ w , u to obtain γ w , u < ω f and
min { 4 + | Z u , v | , 2 | { v } N ( u ) N ( w ) | + γ w , v + | Y w , u , v | w P u } ω f u , v .
By the definition of w, f ( y ) 2 for all y W w \ { u } . Further, f ( w ) = f ( u ) = 2 . This leaves us to show that f ˜ = f | L u PRDF G [ L u ] . Assume there is a x V 0 ( f ˜ ) with | N ( x ) V 2 ( f ˜ ) | 1 . As V 2 ( f ) = V 2 ( f u , v ) \ { v } , for x V 0 ( f u , v ) \ ( N [ v ] Y u , v , w ) , | N ( x ) V 2 ( f ˜ ) | = 1 . Since L u L v \ L u N [ v ] = , we can assume x N [ v ] L u . For y N ( v ) N ( u ) N ( w ) , f ˜ ( y ) = f ( y ) = 1 and w V 2 ( f ˜ ) . Let x N ( u ) \ N [ w ] . Hence, | N ( x ) V 2 ( f ˜ ) | > 1 . This contradicts the definition of w, as there is a z V 2 ( f ˜ ) \ { u } = V 2 ( f u , v ) \ { u , v } with r w < l x < r z . If x N ( v ) \ N ( u ) , then r u < l x and x L u , since l u < l v and r u < r v . Now consider x = v . For v N ( u ) N ( w ) , f ˜ ( v ) = 1 . If v N ( u ) , then r u < l v and v L u . Since the case v N ( u ) \ N ( w ) is discussed above, this completes the proof of the claim. □
Let f be a minimum perfect Roman dominating function on G. If there is a u V with V 2 ( f ) = { u } , then ω u = | V \ N [ u ] | + 2 . So assume | V 2 ( f ) | > 1 . Then, let u , v V 2 ( f ) such that for all w V 2 ( f ) \ { v , u } , r w < r u < r v . Therefore, N ( x ) \ L v = for each x V 2 ( f ) . So f is perfect Roman dominating function on L v . Further V \ L v V 1 ( f ) . Because f is also minimal, l u < l v . Hence, γ v , u + | V \ L v | ω f . Since f u , v + χ V \ L v is also a perfect Roman dominating function for f u , v Γ u , v , equality holds.
In total, an algorithm only has to compute γ u , v + | V \ L v | for each v V and u P v as explained above. Clearly, γ u , v can be computed in polynomial time, and as there are at most | V | 2 many such pairs, the whole algorithm runs in polynomial time. This concludes the proof of Theorem 6. □

3.2. Split Graphs

A split graph  G = ( V , E ) is a graph in which the vertex set V can be partitioned into C , I , where C is a clique and I is an independent set of G. It seems to be open as to which complexity class Perfect Roman Domination and Unique Response Roman Domination belong on split graphs as explicitly asked in [19]. We will answer this question in a somewhat surprising manner: while Unique Response Roman Domination can be solved in linear time, Perfect Roman Domination turns out to be NP-complete. First, we will consider unique response Roman dominating functions on split graphs and prove a combinatorial result.
Lemma 1.
Let G = ( V , E ) be a connected split graph with a clique C and an independent set I such that V = C I and C I = . For each unique response Roman dominating function f : V { 0 , 1 , 2 } , one of the following conditions holds:
1.
V 2 ( f ) I = and | V 2 ( f ) C | 1 ;
2.
V 2 ( f ) I .
Proof. 
Suppose that V 2 ( f ) I . By the definition of unique response Roman dominating function, two vertices of C cannot have the value 2 since C is a clique. Hence, | V 2 ( f ) C | 1 . For the sake of contradiction, assume there are v I and u C with f ( u ) = f ( v ) = 2 . As the function f is a unique response Roman dominating function, u and v cannot be neighbors. Since G is connected, N G ( v ) C \ { u } N G ( u ) . This contradicts the assumption that f is a unique response Roman dominating function. □
This lemma implies that we can solve Unique Response Roman Domination by looking for a vertex v of maximum degree (which must be in an inclusion-wise maximal clique) and setting the value of v to two and the values of the other vertices accordingly. This implies the following.
Theorem 7.
Unique Response Roman Domination can be solved in linear time on split graphs.
Proof. 
How can we find a unique response Roman dominating function of the smallest weight? Let us take a look at the unique response Roman dominating function for the two cases of Lemma 1. Without loss of generality, we can assume that for the given split graph G = ( V , E ) , we have a decomposition V = C I into a clique C and an independent set I such that C is inclusion-wise maximal. Consider the unique response Roman dominating function f : V { 0 , 1 , 2 } .
First, assume f fulfills V 2 ( f ) I = and | V 2 ( f ) C | 1 . Since V 2 ( f ) C = would imply f = 1 (constant) and ω ( f ) = | C | + | I | , let us assume { v } = V 2 ( f ) C . Therefore, C V 1 ( f ) = holds. Hence, ω ( f ) = 2 + | I \ N G ( v ) | . This implies u R ( G ) min v C 2 + | I \ N G ( v ) | 2 + | I | .
Secondly, let us assume V 2 ( f ) I . As I is an independent set and there is no vertex in C with the value 2, f ( v ) 1 for each v I . This implies
ω ( f ) = | I | + | V 2 ( f ) | + | C \ N G ( V 2 ( f ) ) | | I | + 1 .
Equality holds if and only if there exists a vertex v I with N G ( v ) = C and, for all u I , f ( u ) = 2 if and only if u = v . In this case, C is not maximal, contradicting our assumption. Thus, this second case can never give a smaller value than the first one, i.e., u R ( G ) = min v C 2 + | I \ N G ( v ) | . Hence, in order to solve the Unique Response Roman Domination on G, we only have to find the vertex with the highest degree, as it will be in a maximal clique. □
Interestingly, the seemingly very similar problem of Perfect Roman Domination on split graphs is harder to solve. To see this, we will use a problem called Perfect Code that is formally defined next.
Problem name: Perfect Code (PC for short)
Given: A graph G = ( V , E ) and k N
Question: Is there a perfect code D on G with | D | k ?
It is known that Perfect Code is NP-complete, also in restricted graph classes like cubic planar graphs and if k | V | ; see [24,31,32].
Theorem 8.
Perfect Roman Domination on split graphs is NP-complete.
Proof. 
Membership follows from Perfect Roman Domination on general graphs. To prove NP-hardness, we will make use of the NP-hardness of Perfect Code. Let G = ( V , E ) be a graph and k N . To avoid trivialities, assume k | V | .
Define t = 3 · | V | + 4 , k = k + | V | + 4 and G = ( V , E ) with
V = { x , y } { v v V } { v i v V , i [ t ] } { a 1 , b 1 , , a t , b t } , E = { { x , a i } , { y , b i } i t } { { v , u i } v , u V , u N [ v ] , i [ t ] } { x , y } { v v V } 2 .
The instance ( G , k ) of Perfect Roman Domination can be constructed in polynomial time. Moreover, G is easily seen to be a split graph. We still have to prove that ( G , k ) is a yes-instance of Perfect Code if and only if ( G , k ) is a yes-instance of Perfect Roman Domination.
Let S V be a perfect code of G with | S | k . Define f { 0 , 1 , 2 } V by the sets
V 0 ( f ) = { v i i [ t ] , v V } { a i , b i i [ t ] } , V 1 ( f ) = { v v S } , V 2 ( f ) = { x , y } { v v S } .
This implies ω ( f ) = | V \ S | + 4 + 2 · | S | = | V | + 4 + | S | k . The set { a 1 , , a t } { v f ( v ) 2 } is only dominated by x and the vertices b 1 , , b t are only dominated by y. Assume there are v V and i [ t ] such that | N G ( v i ) V 2 ( f ) | [ 4 ] 1 . By N G ( v i ) = { u u N G [ v ] } , this implies | N G ( v i ) V 2 ( f ) | = | N G ( v ) S | [ 4 ] 1 . This contradicts that S is a perfect code.
Assume that f { 0 , 1 , 2 } V is a minimum perfect Roman dominating function (so also minimal) with ω ( f ) k .
Claim 3.
For each z { v i , a i , b i i [ t ] , v V } , it holds that f ( z ) = 0 .
Proof. 
For the sake of contradiction, assume that there is some v V and i [ t ] with f ( v i ) = 2 . This implies with Theorem 1 that { x , y } { z z V } N G ( u ) has no vertex with f-value 2. Thus, N G ( v i ) V 2 ( f ) = . Therefore, f ( v j ) 0 for each j [ t ] . Hence, ω ( f ) t + 1 > k , contradicting the choice of f.
Assume that there are some v V and i [ t ] with f ( v i ) = 1 . Furthermore, we can assume | N G ( v i ) V 2 ( f ) | 1 , by Theorem 1. As by construction N G ( v i ) = N G ( v j ) for each j [ t ] , we find | N G ( v i ) V 2 ( f ) | = | N G ( v j ) V 2 ( f ) | . If | N G ( v i ) V 2 ( f ) | = 0 , then f ( v j ) 0 holds for each j [ t ] since v j is not dominated. Hence, ω ( f ) t · | V | t > k , contradicting the choice of f. Assume | N G ( v i ) V 2 ( f ) | 2 . Thus, for each j [ t ] , f ( v j ) 0 , as, otherwise, f is not perfect. This contradicts the construction as above.
We can discuss the claims concerning a i and b i along very similar lines. □
Further, we know f ( x ) = f ( y ) = 2 . Define S = { v f ( v ) = 2 } . As f ( v i ) = 0 for each v V , i [ t ] , | N G ( v i ) V 2 ( f ) | = 1 . This implies that | N G [ v ] S | = 1 for each v V . Therefore, S is a perfect code.
Since f ( x ) = f ( y ) = 2 , f ( v ) 1 for all v V . This implies that ω ( f ) = | V | + | V 2 ( f ) | + 4 = | V | + | S | + 4 k . Hence, | S | k 4 | V | = k . This concludes the proof of Theorem 8. □
We contrast this by giving a branching algorithm for Perfect Roman Domination that yields the following result. Our algorithm relies on combinatorial insights from Theorem 4 and [29], where Roman dominating functions have been discussed on split graphs so that V 2 ( f ) I = or V 2 ( f ) C = for minimum f .
Theorem 9.
ω f -Perfect Roman Domination can be solved in time O * ( φ ω f ) on split graphs, where φ is the golden ratio.
Proof. 
Let G = ( V , E ) be a split graph with the vertex set partition V = C I , where C is a clique and I an independent set. Let k be the input parameter. Further, let f : V { 0 , 1 , 2 } be a minimum perfect Roman dominating function on G. Then, by Theorem 4 and [29], where Roman dominating functions have been discussed on split graphs, V 2 ( f ) I = or V 2 ( f ) C = . We have to consider these two possibilities for the perfect Roman dominating functions f that we will consider in our algorithm.
For V 2 ( f ) C = , we just branch on each vertex in I if it obtains the value 1 or 2. The vertices cannot obtain the value 0, as they cannot be dominated by any other vertex. After deciding this, we can delete the vertex, and the parameter goes down by either 1 or 2. This gives us the branching vector ( 1 , 2 ) . When we have branched on each vertex in I, then we assign 0 to each c C with | V 2 ( f ) N ( c ) | = 1 , and we assign 1 otherwise (this is important to obtain the perfect Roman dominating function property). Now, we only need to check if any ω f is at most the given parameter value k.
Now, we consider the perfect Roman dominating functions f { 0 , 1 , 2 } V with V 2 ( f ) I = . As C is a clique, if | V 2 ( f ) C | 2 , then C V 1 ( f ) V 2 ( f ) . First, we consider the polynomially many perfect Roman dominating functions with | V 2 ( f ) C | = 1 . Since these functions are unique response Roman dominating functions, this can be performed in polynomial time. After this, we guess two vertices from C and assign the value 2 to these vertices. Again, there are polynomially many possibilities here. From now on, we can branch on the remaining vertices in C and decide if these will be assigned to 1 or 2. Analogously to V 2 ( f ) C = , then we assign 0 to each v I with | V 2 ( f ) N ( v ) | = 1 , and we assign 1 otherwise. Again, we also have to check if ω f is at most the given parameter value k.
Our algorithm obviously runs in time O * ( φ k ) , where φ is the golden ratio and k the parameter. □

3.3. Cobipartite Graphs

Now, we consider cobipartite graphs, which are the complementary graphs of bipartite graphs. These graphs can be also characterized as graphs for which the vertex set can be partitioned into two cliques. On this graph class, Perfect Roman Domination is solvable in polynomial time.
Theorem 10.
Perfect Roman Domination  is polynomial-time solvable on cobipartite graphs.
Proof. 
Let G = ( V , E ) be a cobipartite graph, with V partitioned into the two cliques C 1 , C 2 V . For v V , define the perfect Roman dominating function
g v : V { 0 , 1 , 2 } , x 0 , x N ( v ) , 1 , x V \ N [ v ] , 2 , x = v .
Let f { 0 , 1 , 2 } V be a perfect Roman dominating function with | V 2 ( f ) C 1 | 2 and v C 2 . Next, we prove that ω g v ω f . For each u C 1 \ V 2 ( f ) , | V 2 ( f ) N ( u ) | 2 . Hence, C 1 V 1 ( f ) V 2 ( f ) . Since C 2 N [ v ] = V 0 ( g v ) { v } , ω g v | C 1 | + 2 ω f . Symmetrically, ω g v | C 1 | + 2 ω f for v C 1 and a perfect Roman dominating function f with | V 2 ( f ) C 2 | 2 .
Let f be a minimum perfect Roman dominating function on G. By the previous considerations, we can assume | V 2 ( f ) C i | 1 for each i { 1 , 2 } . This leaves only | V | 2 + | V | many possibilities to check. □
As mentioned before, Cabrera et al. [18] proved that Unique Response Roman Domination is NP-complete on bipartite graphs. For cobipartite graphs, this problem is polynomial-time solvable. For this result, we use the idea of 2-packings; we also refer to the discussion in [33]. Let G = ( V , E ) be a graph. A set S V is called a 2-packing if the distance between two vertices in S is at least 3. Targhi et al. [34] presented a proof for u r ( G ) = min { 2 | S | + | V ( G ) \ N G [ S ] | S is a 2 - packing } . Analogously to this, we can prove that, for each graph G = ( V , E ) , there exists a bijection ψ G between all 2-packings of the graph and all unique response Roman dominating functions. Here, for a 2-packing S and for x V ,
ψ G ( S ) ( x ) = 0 , x N ( S ) \ S , 1 , x V \ N ( S ) , 2 , x S .
This also yields that, for each unique response Roman dominating function f, V 2 ( f ) is a 2-packing. This is the main idea of our algorithm.
Lemma 2.
Unique Response Roman Domination  is polynomial-time solvable on cobipartite graphs. Furthermore, there are at most | V | 2 4 many 2-packings, or unique response Roman dominating functions, in G = ( V , E ) .
Proof. 
Let G = ( V , E ) be a cobipartite graph, together with the partition into the two cliques C 1 , C 2 V . Two vertices from the same clique cannot be in a 2-packing at the same time. Therefore, from each clique, there can be at most one vertex in a 2-packing. Hence, there are at most | C 1 | · | C 2 | many 2-packings, or unique response Roman dominating functions. As C 1 , C 2 is a partition of V, this leads to | C 1 | · | C 2 | = | C 1 | · | V \ C 1 | = | C 1 | · | V | | C 1 | many 2-packings. This expression is maximal if | C 1 | = | C 2 | , which implies that there are at most | V | 2 4 many 2-packings, or unique response Roman dominating functions, in G. □
As indicated in the proof, the upper bound | V | 2 4 is tight: consider the complement of the complete bipartite graph K t , t , where both classes have the same size t. This is interesting, as there could be exponentially many unique response Roman dominating functions even on connected split graphs, which is quite a related class of graphs that we consider next.

3.4. Remarks on Enumeration of Unique Response Roman Dominating Functions in Split Graphs

Enumerating 2-packings (corresponding to unique response Roman dominating functions) in general graphs in time O ( 1.5399 n ) was shown in [35].
Corollary 2.
All unique response Roman dominating functions of a connected split graph of order n can be enumerated in time O ( 3 3 n ) O ( 1.4423 n ) .
Proof. 
Non-trivial connected split graphs have no isolates. By Observation 3, we can hence use the enumeration algorithm for minimal Roman dominating functions on split graphs of order n from [29] which runs in time O ( 3 3 n ) . □
Ω ( 3 3 | V | ) is even a tight lower bound for connected split graphs as shown next.
Theorem 11.
There is an infinite family of connected split graphs G t = ( V t , E t ) with Ω ( 3 3 | V t | ) many unique response Roman dominating functions.
Proof. 
We only need to consider the split graph family G t = ( V t , E t ) with V t : = C t I t , C t : = { c 1 , , c t } , I t : = { v 1 , , v 2 t } and
E t : = C t 2 { { c i , v 2 i 1 } , { c i , v 2 i } i { 1 , , t } } .
Clearly, | V t | = 3 t . By the arguments from Theorem 7, for each unique response Roman dominating function f on G t with | V 2 ( f ) C t | = 1 , in fact | V 2 ( f ) | = 1 . There are t many such unique response Roman dominating functions. Let f be a unique response Roman dominating function with V 2 ( f ) C t = . In this situation, for each i { 1 , , t } , there are three ways to dominate c i :
  • f ( c i ) = f ( v 2 i 1 ) = f ( v 2 i ) = 1 ;
  • f ( c i ) = f ( v 2 i ) = 0 and f ( v 2 i 1 ) = 2 ;
  • f ( c i ) = f ( v 2 i 1 ) = 0 and f ( v 2 i ) = 2 .
Hence, there are t + 3 t = | V | 3 + 3 3 | V | many unique response Roman dominating functions. □
For general graphs, the best lower bound [35] is O ( 1.4970 n ) .
It should be mentioned that the polynomial-delay property of the Roman dominating function-enumeration algorithm from [29] is not inherited for enumerating the unique response Roman dominating function, as each minimal Roman dominating function is not a unique response Roman dominating function. Nonetheless, we present a sketch of a direct polynomial-delay branching enumeration algorithm for enumerating unique response Roman dominating functions that is optimal due to Theorem 11. For this purpose, we consider each 2-packing on a connected split graph and use the bijesction between unique response Roman dominating functions and 2-packings. Our algorithm is a modification of the recursive backtracking algorithm of [36] and has polynomial delay with the same arguments. The algorithm of [36] is a general approach to enumerate all sets of F 2 U for a universe U, where F fulfills the following downward closure property: if X F and Y X , then Y F .
Theorem 12.
All unique response Roman dominating functions of a connected split graph of order n can be enumerated in time O ( 3 3 n ) with polynomial delay and polynomial space.
One of the rather surprising aspects of the proof is that we do not need any sophisticated measure-and-conquer methodology to analyze the run-time of the branching algorithm by a simple case analysis concerning the vertex degrees. In the core part of the algorithm, we decide if a vertex in the independent set is put into the related 2-packing or not; also cf. [36] concerning polynomial delay.
Proof. 
Let G = ( V , E ) be a connected split graph with the partition V = C I , where C is a clique and I is an independent set. With the arguments from Theorem 7, we can first enumerate each of the | C | many 2-packings S with S C . From now on, we branch on the vertices in I, deciding if they will be in the 2-packing S or not. If the vertex from I is not put into S, then we delete this vertex. If we put a vertex v I into S, then we delete, for each u N ( v ) , the whole set { u } N ( u ) I . Furthermore, we delete vertices from C which have no neighbors in I. We always branch on a vertex v I with the highest degree. If deg ( v ) 3 , then by putting the vertex in S, we delete 4 vertices. This leads to a branching vector ( 4 , 1 ) (the branching value is below 1.3804). For deg ( v ) = 2 , we have to make a case distinction in the analysis: if v is the only neighbor in I for each of the neighbors of v, then in both cases, these vertices will be deleted after this branch. This implies the branching vector ( 3 , 3 ) (the branching value is 2 3 < 3 3 ). Otherwise, at least 4 vertices will be deleted after putting v into S. This would again lead to the branching vector ( 4 , 1 ) .
Therefore, we can assume that each vertex in I has exactly one neighbor.Let c be this neighbor. If | N ( c ) I | 3 , after putting v into S, we would delete at least 4 vertices and the branching would be again ( 4 , 1 ) . For N ( c ) I = { v } , we would delete c in each case. This would lead to the branching vector ( 2 , 2 ) (the branching value is 2 3 3 ). The remaining case would be | N ( c ) I | = 2 . This case is considered in the Ω ( 3 3 n ) -example in Theorem 11. Its analysis implies the claimed running time of O * ( 3 3 n ) . □

3.5. Chordal Bipartite Graphs

Chordal bipartite graphs are bipartite graphs where each induced cycle has length 4. Before working on the NP-hardness, we prove the following lemma.
Lemma 3.
Let G = ( V , E ) be a graph with v , u V with v u and N ( v ) = N ( u ) . G is a chordal bipartite graph if and only if G [ V \ { u } ] is one.
Proof. 
Let G : = G [ V \ { u } ] . If G is a chordal bipartite graph, G is clearly also one. Now assume G is a chordal bipartite graph with the partition V \ { u } = A B . W.l.o.g., let v A . As N ( u ) = N ( v ) , G is a bipartite graph with the partition V = ( A { u } ) B . So let u , x 1 , , x , u be a cycle with > 4 . If v { x 1 , , x } , then v , x 1 , , x , v is a cycle in G . Hence, there is a chord in u , x 1 , , x , u . Assume there is an i [ ] with x i = v . Clearly, i { 1 , } . Thus, u , x 1 , v , x i + 1 , u a cycle. So, G is chordal bipartite. □
To prove the NP-hardness on Perfect Roman Domination and Unique Response Roman Domination on chordal bipartite graphs, we use the problem One-in-Three 3SAT, with a reduction inspired by [32] (Theorem 2.2) for the NP-hardness of Perfect Code. However, our proof is much more sophisticated in order to deal with the weights of the perfect Roman dominating functions.
Let us define this problem more formally.
Problem name: One-in-Three 3SAT
Given: Set X of variables, set C of clauses over X with at most three literals.
Question: Is there a truth assignment such that each clause in C has exactly one true literal?
Theorem 13.
Perfect Roman Domination  and  Unique Response Roman Domination  are  NP-complete even on chordal bipartite graphs.
Proof. 
The NP-membership follows as in the general case by guess-and-check. The following NP-hardness proof is inspired by the NP-hardness proof for Perfect Code in [32]. Let X = { x 1 , , x n } be a set of Boolean variables, and C = { C 1 , , C m } be a set of clauses over X . Define k : =   4 m n + 2 n ( 3 m 1 ) + 2 m , M : = [ n ] × [ m ] , M : =   M × [ k ] , A : =   { a i , j , a ¯ i , j ( i , j ) M } , B : =   { b i , j , b ¯ i , j ( i , j ) M } . Further define for ( i , j ) M :
  • E i , j : =   { e i , j , p p [ k ] } ;
  • F i , j : =   { f i , j , p p [ k ] } ;
  • U i , j : =   { u i , j , p p [ k ] } for j m .
Also, let W j : =   { w j , p p [ k ] } for j [ m ] . We group these sets into the following:
  • E : =   ( i , j ) M E i , j ;
  • F : =   ( i , j ) M F i , j ;
  • U : =   ( i , j ) M , j m U i , j ;
  • W : =   j = 1 m W j ;
  • V : =   E F U W ;
  • V : =   { E i , j , F i , j ( i , j ) M } { U i , j ( i , j ) M , j m } { W j j [ k ] } .
For T V , define
  • V T : =   { r [ T ] } { s [ T , p ] , q [ T , p ] p [ k ] } ;
  • E T : =   { { r [ T ] , t } , { q [ T , p ] , s [ T , p ] } , { r [ T ] , q [ T , p ] } t T , p [ k ] } .
Define G : = ( V , E ) with
V : = A B V T V V T , E : = { { a i , j , b ¯ i , j } , { a i , j , e i , j , p } , { a ¯ i , j , b i , j } , { a ¯ i , j , e i , j , p } i [ n ] , j [ m ] , p [ k ] } { { f i , j , p , b ¯ i , j } , { f i , j , p , b i , j } ( i , j , p ) M } T V E T { { a i , j , w j , p } ( i , j , p ) M , x i C i } { { a ¯ i , j , w j , p } ( i , j , p ) M , x ¯ i C i } { { u i , j , p , b i , j } , { u i , j , p , b ¯ i , j + 1 } ( i , j , p ) M , j m } { { t 1 , t 2 } t 1 F U , t 2 E W } .
Claim 4.
G is a chordal bipartite graph.
Proof. 
G is bipartite with the partition A B = V , where
A : = A F U { r [ U i , j ] ( i , j ) M , j m } { r [ F i , j ] , q [ E i , j , p ] , s [ E i , j , p ] , q [ W j , p ] , s [ W j , p ] ( i , j , p ) M } , B : = B E W { q [ U i , j , p ] , s [ U i , j , p ] ( i , j , p ) M , j m } { r [ E i , j ] , r [ W j ] , q [ F i , j , p ] , s [ F i , j , p ] ( i , j , p ) M } .
To make it easier to recognize each edge (besides the ones in E T ), we mention the vertex in A first when talking about edges; see Figure 4 for an illustration of the important aspects of the construction. Observe that for t 1 , t 2 T , with
T T , { s [ T , p ] p [ k ] } , { q [ T , p ] p [ k ] } T V } ,
N ( t 1 ) = N ( t 2 ) . Hence, we can use Lemma 3 exhaustively and consider G : = G [ V ] with V : = A B V 1 T V V T with V 1 : = { e i , j , 1 , f i , j , 1 , u i , j , 1 , w j , 1 ( i , j ) M , j [ m 1 ] } and V T = { r [ T ] , q [ T , 1 ] , s [ T , 1 ] } . By construction, no vertex in T V V T can be part of an induced cycle. Thus, we can also delete these vertices. The remaining graph is G = G [ V ] with V : = A B V 1 .
Let c = x 1 , , x , x 1 be a chordless cycle in G with smallest length > 4 . If a i , j , b ¯ i , j are on c for ( i , j ) M , then either e i , j , 1 or w j , 1 and either f i , j , 1 or u i , j , 1 are on c. This would give a chord. Hence, a i , j , b ¯ i , j cannot be on c at the same time. Analogously, this holds for a ¯ i , j , b i , j . Therefore, if there are a A and b B on c, then the neighbors y 1 , y 2 of a in c are in E W and the neighbors z 1 , z 2 of b in c are in F U . Hence, a , y 1 , z 1 , y 2 , a is a cycle included in c. If there is an a A on c, then its neighbors x , y on the cycle are in E W . The neighbors of x , y on c are in F U . Therefore, there also exists a chord between x and the neighbor of y on c and there is no vertex of A on c. Analogously, this holds for B . So, c is a cycle in G [ V ] , which is a complete bipartite graph, contradicting our assumption that c is chordless and of length > 4 . Thus, there exists no such c and G , as well as G and G being chordal bipartite. □
For each T V , | V T | = 2 k + 1 . Further | V | = k ( m + n ( m 1 ) + 2 n m ) and | A | = | B | = 2 n m . Thus, the graph has
| A | + | B | + | V | + | { z T T V , z T V T } } | = 4 n m + k ( m + n ( m 1 ) + 2 n m ) + | V | · ( 2 k + 1 ) = 4 n m + ( 3 k + 1 ) ( m + n ( m 1 ) + 2 n m )
many vertices. Since k is polynomial in n , m , the graph can be constructed in polynomial time. This leaves us to show that ( X , C ) is a yes-instance of the One-in-Three 3SAT if and only if there is a perfect Roman dominating function f on G with ω f k . To prove the NP-hardness for Unique Response Roman Domination, we show that if there is such an f, then there is even a unique response Roman dominating function g with ω g k .
Let ϕ be a solution of the One-in-Three 3SAT instance. Then, define f { 0 , 1 , 2 } V with
v 2 , T V : v = r T 2 , ( i , j ) M : v { a i , j , b i , j } ϕ ( x i ) = 1 2 , ( i , j ) M : v { a ¯ i , j , b ¯ i , j } ϕ ( x i ) = 0 0 , else
Clearly, ω f = 2 · ( m + n ( m 1 ) + 2 n m ) + 4 n m = k . For each T V and p [ k ] , q [ T , p ] , s [ T , p ] are only dominated by r T . By the definition of f, for each i [ n ] , the vertices in { a i , j , b i , j , a ¯ i , j , b ¯ i , j , e i , j , p , f i , j , p j [ m ] , p [ k ] } { u i , j , p j [ m 1 ] , p [ k ] } are dominated exactly once by either a i , j , b i , j , or a ¯ i , j , b ¯ i , j . Let j [ m ] and p [ k ] . Since ϕ is a solution, there is exactly one literal which fulfills C j . Hence, there is exactly one neighbor of w j , p in of value 2. Thus, f is a perfect Roman dominating function. Furthermore, it is even a unique response Roman dominating function.
Now, let f be a minimal perfect Roman dominating function with ω f = k . Let T V and p [ k ] . Since s [ T , p ] is pendant, f ( s [ T , p ] ) 0 implies f ( r [ T ] ) 2 . Otherwise, f would not be minimal (see Theorem 1, conditions 2 and 3). Hence, for each p [ k ] , f ( s [ T , p ] ) 0 and ω f > k , as r [ T ] has to be dominated. Thus, for each T V and p [ k ] , f ( s [ T , p ] ) = 0 and f ( r [ T ] ) = 2 . If there is a v T with f ( v ) = 2 , then f ( q [ T , p ] ) 0 for each p [ k ] and ω f > k . Hence, T V 2 ( f ) = . For each t 1 , t 2 T , N ( t 1 ) = N ( t 2 ) and conditions 1 and 2 of Theorem 1 imply f ( t 1 ) = f ( t 2 ) . Hence, N ( A B ) \ A B V V 0 ( f ) as otherwise ω f > k . Since for each i [ n ] , j [ m ] , N [ a i , j ] \ V = { a i , j , b ¯ i , j } = N [ b ¯ i , j ] \ V and N [ a ¯ i , j ] \ V = { a ¯ i , j , b i , j } = N [ b i , j ] \ V and we have 2 n m such pairs, ω f | A B 4 n m . Hence,
ω f | A B { r [ T ] T V } 4 n m + 2 ( m + n ( m 1 ) + 2 n m ) = k .
Thus, equality has to hold and { q T , p T V , p [ k ] } V 0 ( f ) . Further, for each i [ n ] , j [ m ] , f ( a i , j ) + f ( b ¯ i , j ) = 2 = f ( a ¯ i , j ) + f ( b i , j ) . If there exist i [ n ] , j [ m ] such that f ( a i , j ) = 1 = f ( b ¯ i , j ) , then f ( a ¯ i , j ) = 2 = f ( b i , j ) to dominate E i , j F i , j . Hence, V 1 ( f ) = . For all i [ n ] , j [ m ] , to dominate E i , j F i , j , | V 2 ( f ) { a i , j , a ¯ i , j } | = 1 = | V 2 ( f ) { b i , j , b ¯ i , j } | and f ( a i , j ) = f ( b i , j ) f ( a ¯ i , j ) = f ( b ¯ i , j ) . Let i [ n ] , j [ m 1 ] . Since u i , j , p must be dominated exactly once, f ( b ¯ i , j + 1 ) f ( b i , j ) . Also, f ( b i , j ) , f ( b i , j + 1 ) , f ( b i , j + 1 ) { 0 , 2 } , together with f ( b ¯ i , j + 1 ) f ( b i , j + 1 ) , implies f ( b i , j ) = f ( b i , j + 1 ) . So, for each i [ n ] and j 1 , j 2 [ m ] , f ( a i , j 1 ) = f ( a i , j 2 ) f ( a ¯ i , j 1 ) = f ( a ¯ i , j 2 ) .
Define X 1 : = { x i i [ n ] , j [ m ] : f ( a i , j ) = 2 } and the assignment ϕ : = χ X 1 { 0 , 1 } X . Let j [ m ] . Since j [ m ] , w j , p , q [ W j , p ] V 0 ( f ) for all p [ k ] , N ( w j , p ) A V 2 ( f ) is not empty. Hence, there is a true literal satisfying C j . So, the given One-in-Three 3SAT instance is a yes-instance. This completes the proof of Theorem 13. □

4. Parameterized Complexity

In this section, we consider the parameterized complexity aspects of Perfect Roman Domination and Unique Response Roman Domination. More precisely, we consider the parameters clique width (cwd for short, originally defined in [37]), treewidth (tw for short, originally defined in several papers at about the same time but nowadays standard; see [38]), solution size, and its dual order minus solution size.

4.1. Clique Width and Treewidth

The clique width of a graph G ( cwd ( G ) for short) denotes the minimum number of labels needed to construct G with the following operations:
  • Create a graph of one isolate vertex.
  • Build the disjoint union of two labeled graphs.
  • Connect each vertex with label i with each vertex of label j by an edge.
  • Relabel vertices with label i to j.
Recall that LinEMSOL ( τ 1 ) refers to the possibility to formulate an optimization problem using a linear function of the cardinalities of sets that realize the free set variables, while τ 1 restricts the vocabulary of the monadic second-order logic to vertex set variables, with adjacency as the only relation. We want to employ this logic next. First, we give a LinEMSOL ( τ 1 ) formula for the optimization problems corresponding to Perfect Roman Domination and to Unique Response Roman Domination in order to show that these are linear-time FPT if parameterized by cwd, using now classical results from [39,40]. cwd is an interesting parameter since an FPT algorithm with cwd as the parameter implies FPT algorithms with respect to tw, nd, or vc as parameters. However, the algorithmic results of the previous section do not follow from these considerations, as it is known that even unit interval graphs have unbounded clique width; see [40].
Lemma 4.
Minimum Perfect Roman Domination  on the graph G = ( V , E ) can be expressed as
argmin X 1 V , X 2 V { | X 1 | + 2 | X 2 | G , X 1 , X 2 θ ( X 1 , X 2 ) } , with θ ( X 1 , X 2 ) equal to
v X 1 ( v ) X 2 ( v ) u X 2 ( u ) E ( v , u ) w X 2 ( w ) E ( w , v ) u = w .
Proof. 
Let G = ( V , E ) be a graph for which we want to determine the perfect Roman dominating function of the smallest weight. First, if f is some perfect Roman dominating function of G, then θ ( V 1 ( f ) , V 2 ( f ) ) is obviously true. Now, we want to show why X 1 , X 2 V , as a minimum solution would describe a perfect Roman dominating function. Define f : = χ X 1 + 2 χ X 2 . We can then see that for all v V , we have either v X 1 , or v X 2 , or there exists a u X 2 N ( v ) such that there is no other neighbor of v in X 2 . Therefore, we only need to show X 1 X 2 = . So, assume there is a v X 1 X 2 . Then, for X 1 : = X 1 \ { v } , ( X 1 , X 2 ) is a smaller solution: v is still in X 2 , which does not change. Hence, f is a perfect Roman dominating function. □
Theorem 14.
cwd -Perfect Roman Domination  is in FPT if we assume the clique decomposition given as part of the input. Furthermore,  Perfect Roman Domination  can be solved in linear time on distance-hereditary graphs.
Proof. 
As already noted, the first claim follows from Lemma 4. Golumbic and Rotics showed in [40] that distance-hereditary graphs have a clique width bounded by three, which gives the second claim. □
Theorem 15.
tw -Perfect Roman Domination  is in FPT .
Proof. 
First, given a graph G = ( V , E ) , it is possible to compute an optimal tree decomposition in FPT -time, parameterized by the treewidth of the graph. Then, we can apply Courcelle’s theorem that allows to conclude our result, as we have provided an MSO formula for our property. □
With similar techniques, we can also prove an analogous result for Unique Response Roman Domination.
Theorem 16.
cwd -Unique Response Roman Domination is in FPT if we assume the clique decomposition given as part of the input.
Proof. 
For Unique Response Roman Domination, we have to make sure that there is no vertex of value 1 or 2 in the neighborhood of any vertex of value 2. We do this by adding the following part, connected with a logical conjunction to the formula θ ( X 1 , X 2 ) in Lemma 4: v X 2 ( v ) u E ( v , u ) ¬ X 1 ( u ) X 2 ( u ) .
Theorem 17.
tw -Unique Response Roman Domination  is in FPT .

4.2. Solution Size

Besides the structural parameters, also the solution size is an interesting, often-used parameter. We show next that ω f -Unique Response Roman Domination and ω f -Perfect Roman Domination are W [ 1 ] -complete. We do this by using Steps-Short Non-Deterministic Turing Machine Computation (SNTMC) which is known to be W [ 1 ] -complete (see [38,41,42]), as well as Perfect Code, parameterized by the solution size. So, we cannot expect FPT-results with this natural parameterization. We start our presentation with a W [ 1 ] -membership proof, which is, in a mathematical sense, the most interesting proof. As a side product, we also obtain membership in XP. To this end, we need the following interesting structural characterization lemma that is proven with some double-counting arguments.
Lemma 5.
Let G = ( V , E ) be a graph and f { 0 , 1 , 2 } V be a function such that N ( u ) N ( v ) V 0 ( f ) = for all u , v V 2 ( f ) , u v . Then, f is a perfect Roman dominating function if and only if
| V | = u V 1 ( f ) ( 1 | N ( u ) V 2 ( f ) | ) + v V 2 ( f ) | N [ v ] | | N ( v ) V 2 ( f ) | .
Proof. 
On G = ( V , E ) , let f { 0 , 1 , 2 } V be a function such that N ( u ) N ( v ) V 0 ( f ) = for all u , v V 2 ( f ) , u v . First, consider
u V 1 ( f ) ( 1 | N ( u ) V 2 ( f ) | ) = | V 1 ( f ) | u V 1 ( f ) v V 2 ( f ) χ E ( { u , v } ) = | V 1 ( f ) | v V 2 ( f ) | N ( v ) V 1 ( f ) | .
Furthermore, we can re-write the second sum as follows:
v V 2 ( f ) ( | N [ v ] | | N ( v ) V 2 ( f ) | ) = | V 2 ( f ) | + v V 2 ( f ) | N ( v ) \ V 2 ( f ) | .
Putting these thoughts together, we observe
u V 1 ( f ) ( 1 | N ( u ) V 2 ( f ) | ) + v V 2 ( f ) ( | N [ v ] | | N ( v ) V 2 ( f ) | ) = | V 1 ( f ) | + | V 2 ( f ) | + v V 2 ( f ) ( | N ( v ) \ V 2 ( f ) | | N ( v ) V 1 ( f ) | ) = | V 1 ( f ) | + | V 2 ( f ) | + v V 2 ( f ) | N ( v ) \ ( V 1 ( f ) V 2 ( f ) ) | = | V 1 ( f ) | + | V 2 ( f ) | + v V 2 ( f ) | N ( v ) V 0 ( f ) | .
By the assumption on f, { N ( v ) V 0 ( f ) v V 2 ( f ) } is a collection of pairwise disjoint sets, i.e., v V 2 ( f ) | N ( v ) V 0 ( f ) | = | v V 2 ( f ) ( N ( v ) V 0 ( f ) ) | | V 0 ( f ) | . This leads us to
| V | u V 1 ( f ) ( 1 | N ( u ) V 2 ( f ) | ) + v V 2 ( f ) ( | N [ v ] | | N ( v ) V 2 ( f ) | ) .
Equality holds if and only if | v V 2 ( f ) ( N ( v ) V 0 ( f ) ) | = | V 0 ( f ) | . Since ( N ( v ) V 0 ( f ) ) are disjoint and subsets of V 0 ( f ) , this is equivalent to the fact that f is a Roman dominating function. With the assumption on f, f would even be a perfect Roman dominating function. □
Theorem 18.
ω f -Perfect Roman Domination  belongs to W [ 1 ] .
Proof. 
(Sketch) We will use Steps-SNTMC. So let G = ( V , E ) be a graph of order n and k N . The reduction will compute a Turing machine M with a tape alphabet containing V { ζ } , with ζ V . In its internal memory, M stores a table T that contains, for u , v V , u v , either N ( u ) N ( v ) (if | N ( u ) N ( v ) | k ) or . Moreover, the reduction machine also computes addition and subtraction tables for numbers up to n and the alphabet contains also these numbers so that M can perform basic arithmetic, like reading two number symbols from the tape and printing the result, in constant time. Finally, M has access to a table of the degrees of all vertices in its internal memory. The Turing machine M will work in five phases as follows:
  • Guess the vertices in V 2 ( f ) and then V 1 ( f ) and write them (as symbols) on the tape. We separate the vertices via the symbol ζ . This takes k + 1 steps.
  • Also, in time O ( k ) , M can check if twice the number of V 2 -symbols (left of the separator ζ ) plus the number of V 1 -symbols (right to ζ ) is at most k. If not, M stops in a non-final state.
  • Check if we enumerated any vertex in V 1 ( f ) V 2 ( f ) twice (in O ( k 2 ) steps). If this is the case, then the machine stops in a non-final state.
    Otherwise, we know now that the V 1 -symbols together with the V 2 -symbols that we guess do define a function f of weight ω f k .
  • Check for each pair of vertices u , v V 2 ( f ) ( u v ) if N ( u ) N ( v ) V 1 ( f ) V 2 ( f ) . This condition is clearly necessary if f should be a perfect Roman dominating function. For this check, we need table T. If T [ u , v ] = , N ( u ) N ( v ) V 1 ( f ) V 2 ( f ) is impossible and we can stop in a non-final state. Otherwise, M checks element by element of N ( u ) N ( v ) if it is in V 1 ( f ) V 2 ( f ) . Altogether, this needs at most O ( k 3 ) many steps.
  • For each v V 1 ( f ) V 2 ( f ) , M computes | N ( v ) V 2 ( f ) | (at most O ( k 2 ) steps). Use these numbers to compute (with basic arithmetics)
    n : = u V 1 ( f ) ( 1 | N ( u ) V 2 ( f ) | ) + v V 2 ( f ) ( | N [ v ] | | N ( v ) V 2 ( f ) | )
    Finally, M uses Lemma 5 to check if f is a perfect Roman dominating function, i.e., if n = n . □
Using a construction simpler than the previous one for W [ 1 ] -membership together with a relatively straightforward reduction from Perfect Code for the W [ 1 ] -hardness that basically introduces 2 k twins per vertex, we can prove the following.
Theorem 19.
ω f -Unique Response Roman Domination  is W [ 1 ] -complete.
Proof. 
For the W [ 1 ] -hardness proof, we use Perfect Code. Let G = ( V , E ) be a graph and k N . Define V i : = { v i v V } for i [ 2 k + 1 ] and G ˜ : = ( V ˜ , E ˜ ) with
V ˜ : = i = 1 2 k + 1 V i , E ˜ : = { { v i , u j } i , j [ 2 k + 1 ] , v , u V , v N [ u ] } .
This graph has ( 2 k + 1 ) · | V | many vertices.
Claim 5.
G has a perfect code Dof size | D | k if and only if G ˜ has a perfect Roman dominating function f with ω f 2 k .
Proof. 
Let D V be a perfect code. Define D 1 : = { v 1 v D } , f D : = 2 · χ D 1 . Assume there exists a v i V 0 ( f D ) with N G ˜ ( v i ) D 1 = N G ˜ ( v i ) V 2 ( f D ) = . Thus, v i has no neighbor in D 1 and N G [ v ] D = . Hence, D is no dominating set, which is a contradiction. Assume there is a v i V 0 ( f D ) with | N G ˜ ( v i ) D 1 | = | N G ˜ ( v i ) V 2 ( f D ) | 2 . In this case, | N G [ v ] D | = 2 , contradicting the fact that D is a perfect code. If there exists a v 1 D 1 = V 2 ( f D ) with N G ˜ ( v 1 ) V 2 ( f D ) , then v D would have a neighbor in D, and D would not be a perfect code in G. As even V 1 ( f D ) = , f D is also a unique response Roman dominating function with ω f = 2 · | D | 2 k .
Let f { 0 , 1 , 2 } V be a unique response Roman dominating function with ω f 2 k and v V . Since C v : = { v i i [ 2 k + 1 ] } is a clique, we can assume | C v V 2 ( f ) | 1 . Further, for all v i , v j C v , N G ˜ [ v i ] = N G ˜ [ v j ] . Therefore, we can assume, without loss of generality, that if C v V 2 ( f ) , then f ( v 1 ) = 2 . Assume there is a v i V 1 ( f ) . Thus, N G ˜ ( v i ) V 2 ( f ) = . Since C v is a clique of true twins, N G ˜ ( v j ) V 2 ( f ) = and f ( v j ) = 1 for each j [ 2 k + 1 ] . Hence, | V 1 ( f ) | > 2 k . This contradicts ω f 2 k . Therefore, V 1 ( f ) = .
Define D : = { v V v 1 V 2 ( f ) } . If there is a v V with N [ v ] D = , f would not be a Roman dominating function, as v 1 is not dominated. The existence of a v V with | N [ v ] D | 2 would contradict the fact that f is unique response Roman dominating function, as either v 1 V 2 ( f ) and v 1 has a neighbor in V 2 ( f ) , or v 1 has two neighbors in V 2 ( f ) . In total, D is a perfect code. □
Now, we will sketch the W [ 1 ] -membership proof by using Steps-STMC. To this end, let G = ( V , E ) be a graph of order n and k N . The Turing machine will work in four phases as follows, assuming it was provided with some basic arithmetic capabilities by the reduction machine as detailed in the proof of Theorem 18:
  • Guess the vertices in V 2 ( f ) and then V 1 ( f ) . We split the vertices via a special symbol ζ (this takes at most 2 k + 1 steps).
  • Check if vertices in V 2 ( f ) have distance 2 to the vertices in V 1 ( f ) and distance 3 to the vertices in V 2 ( f ) (in at most k ( k + 1 ) 2 steps). If this is the case, then the machine stops in a non-final state.
  • Check if we enumerated vertices in V 1 ( f ) twice (in at most k ( k + 1 ) 2 steps). If this is the case, then the machine stops in a non-final state.
  • If | V 1 ( f ) | + v V 2 ( f ) | N [ v ] | = | V | , then f is a minimal unique response Roman dominating function (as each vertex is only dominated once). This can be computed in k steps.
This concludes the proof of Theorem 19. □
The previous W [ 1 ] -hardness result could also be used to show that ω f -Perfect Roman Domination is W [ 1 ] -complete. We can show this type of result even on bipartite graphs.
Theorem 20.
ω f -Perfect Roman Domination  is W [ 1 ] -complete even on bipartite graphs.
Proof. 
For membership, we refer to Theorem 18. For the hardness, we use Perfect Code. Let G = ( V , E ) be a graph and k N . Define G ˜ : = ( V ˜ , E ˜ ) with V : = { v i v V , i [ 2 k + 3 ] } , Y : = { y 1 , , y 2 k + 3 } , Z : = { z 1 , , z 2 k + 3 } , giving
V ˜ : = V V { x } Y Z , E ˜ : = { { v , u i } { v , u } E , i [ 2 k + 3 ] } { { y i , x } , { z i , x } i [ 2 k + 3 ] } { { v , x } v V } { { y i , v i } v V , i [ 2 k + 3 ] } .
G ˜ is visualized in Figure 5. G ˜ is bipartite with the classes A : = V Y Z and B : = { x } V (the edges are written in such a way that the vertices from A are mentioned first). Furthermore, G ˜ has ( 2 k + 3 ) · ( | V | + 2 ) + | V | + 1 many vertices. This leaves us to show that G has a perfect code of size at most k if and only if G ˜ has a perfect Roman dominating function with weight at most 2 k + 2 .
Assume there is a perfect code D V with | D | k . Then, define f : = 2 · χ D { x } . V { x } Y Z is dominated by x. If there were a v i V which is not dominated by f, then v would not be dominated in G by D. Therefore, f is a Roman dominating function. Further N ( Y Z ) V 2 ( f ) = { x } . For any i [ 2 k + 3 ] and v V , v i has only one neighbor in V 2 ( f ) , as Y V 0 ( f ) and, otherwise, v would be dominated twice by D. Thus, f is a perfect Roman dominating function with ω f = 2 · | D | + 2 2 k + 2 .
Let f { 0 , 1 , 2 } V ˜ be a minimal perfect Roman dominating function with ω f 2 k + 2 . Assume f ( x ) 2 . As N ( z i ) = { x } for each i [ 2 k + 3 ] , Z V 0 ( f ) = . So, 2 k + 2 < 2 k + 3 ω f . Hence, f ( x ) = 2 . Since N ( v i ) N ( x ) for each i [ 2 k ] and v V , V 2 ( f ) V = . Otherwise, f is not minimal. Assume there is an i [ 2 k + 3 ] with f ( y i ) = 2 . As f is minimal, there must exist a private neighbor in V 0 ( f ) . As f ( x ) = 2 , there exists a v V such that v i is the private neighbor. Thus, N ( v j ) \ { y j } V 2 ( f ) = N [ v ] V 2 ( f ) = N ( v i ) \ { y i } V 2 ( f ) = for j [ 2 k + 3 ] . Thus, for each j [ 2 k + 3 ] , f ( v j ) 0 or f ( y j ) = 2 . Hence, 2 k + 2 < 2 k + 3 + 2 ω f . So, Y V 0 ( f ) .
Define D = V 2 ( f ) V . Clearly, | D | k . Assume that D is not a dominating set. Then, there is a v V that is not dominated. Therefore, N ( v i ) V 2 ( f ) = and f ( v i ) = 1 for each j [ 2 k + 3 ] . Hence, ω f 2 k + 3 . Therefore, D is a dominating set. Assume D is not perfect. So, there is a v V with 2 | N [ v ] D | = | V 2 ( f ) N ( v i ) | for each i [ 2 k + 1 ] . So, ω f 2 k + 3 . Hence, D is a perfect code. □

4.3. Dual Parameterization

Different from Perfect Code, it makes sense to consider the dual parameterization ( | V | k ), as it is even NP-hard to find out if the graph has any perfect code (see [24]). So, the problem is para-NP-hard for the dual parameterization. This is not the case for Perfect Roman Domination and Unique Response Roman Domination since the constant 1 function is always a perfect Roman dominating function/unique response Roman dominating function. Therefore, these problems are trivially solvable if n k = 0 . We can even see this parameter as a distance from triviality parameter in the sense of [43].
Theorem 21.
( n k ) -Perfect Roman Domination, ( n k ) -Unique Response Roman Domination  FPT .
Proof. 
Let G = ( V , E ) be a graph and f { 0 , 1 , 2 } V . Then,
n ω f = v V ( 1 f ( v ) ) = v V 0 ( f ) ( 1 0 ) + v V 1 ( f ) ( 1 1 ) + v V 2 ( f ) ( 1 2 ) = | V 0 ( f ) | | V 2 ( f ) | .
We will use this equality to bound the diameter and degree by n k .
Assume there is a vertex v with deg ( v ) n k + 1 . Then, f v : = χ V + χ { v } χ N ( v ) is clearly a unique response Roman dominating function, and therefore a perfect Roman dominating function with
n ω f v = | V 0 ( f v ) | | V 2 ( f v ) | = deg ( v ) 1 n k .
Hence, ω f v k , and we observe a yes-instance and can hence use the consideration of a vertex of maximum degree as a reduction rule.
Assume there is a shortest path p = v 1 , , v 3 · ( n k ) of length 3 · ( n k ) . Define f p : = χ V + i = 0 n k 1 ( χ { v 3 i + 2 } χ N ( v 3 i + 2 ) ) . Clearly, each vertex in V 0 ( f ) has at least one neighbor in V 2 ( f ) . Assume there exists a vertex u V 0 ( f ) with v 3 i + 2 , v 3 j + 2 V 2 ( f ) N ( u ) with i j (without loss of generality., i < j ). This would imply that v 1 , , v 3 i + 2 , u , v 3 j + 2 , , v 3 · ( n k ) is a shorter path. Hence, f p is a perfect Roman dominating function. Analogously, V 2 ( f p ) is an independent set. Therefore, f p is even a unique response Roman dominating function. Further,
n ω f p = | V 0 ( f p ) | | V 2 ( f p ) | 2 · ( n k ) n k n k .
So, ω f k , and we observe a yes-instance and can hence use the consideration of the graph diameter as a reduction rule.
As the maximum degree and diameter are bounded in n k , the number of vertices is bounded by the Moore bound, giving O ( n k ) 3 · ( n k ) as the kernel size; see [44]. □

5. Final Remarks

We have enhanced the understanding of the combinatorial structure, the algorithmic nature, and the complexity of Perfect Roman Domination and Unique Response Roman Domination in many ways: on certain graph classes, with respect to several parameterizations, and concerning enumeration. But many aspects are still open for exploration. For instance, we did not touch the question of kernel sizes in any of our FPT results. Also, the fact that the ‘bijection approach’ that we took for enumeration necessitates parsimonious reductions, and this could be used towards investigating counting complexities, again, an untouched ground in this area.

Author Contributions

Conceptualization and methodology, K.M. and H.F.; proof writing and draft preparation, K.M.; writing—final version, K.M. and H.F.; visualization, K.M.; supervision, H.F. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

There is no data involved in our article.

Acknowledgments

We are grateful to reviewers of the conference version who helped improve this paper.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Dreyer, P.A. Applications and Variations of Domination in Graphs. Ph.D. Thesis, Rutgers University, New Brunswick, NJ, USA, 2000. [Google Scholar]
  2. Fernau, H. Roman Domination: A parameterized perspective. Int. J. Comput. Math. 2008, 85, 25–38. [Google Scholar] [CrossRef]
  3. 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]
  4. Liu, C.H.; Chang, G.J. Roman domination on strongly chordal graphs. J. Comb. Optim. 2013, 26, 608–619. [Google Scholar] [CrossRef]
  5. Peng, S.L.; Tsai, Y.H. Roman Domination on Graphs of Bounded Treewidth. In Proceedings of the 24th Workshop on Combinatorial Mathematics and Computation Theory, Nantou, Taiwan, 27–28 April 2007; pp. 128–131. [Google Scholar]
  6. Shang, W.; Wang, X.; Hu, X. Roman domination and its Variants in Unit Disk Graphs. Discret. Math. Algorithms Appl. 2010, 2, 99–106. [Google Scholar] [CrossRef]
  7. Stewart, I. Defend the Roman Empire. Sci. Am. 1999, 281, 136,137,139. [Google Scholar] [CrossRef]
  8. Chellali, M.; Haynes, T.W.; Hedetniemi, S.T.; McRae, A.A. Roman {2}-domination. Discret. Appl. Math. 2016, 204, 22–28. [Google Scholar] [CrossRef]
  9. Abdollahzadeh Ahangar, H.; Chellali, M.; Sheikholeslami, S.M. On the double Roman domination in graphs. Discret. Appl. Math. 2017, 232, 1–7. [Google Scholar] [CrossRef]
  10. Banerjee, S.; Henning, M.A.; Pradhan, D. Algorithmic results on double Roman domination in graphs. J. Comb. Optim. 2020, 39, 90–114. [Google Scholar] [CrossRef]
  11. Beeler, R.A.; Haynes, T.W.; Hedetniemi, S.T. Double Roman domination. Discret. Appl. Math. 2016, 211, 23–29. [Google Scholar] [CrossRef]
  12. Hennings, M.; Yeo, A. Total Domination in Graphs; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  13. Haynes, T.W.; Hedetniemi, S.; Henning, M.A. (Eds.) Topics in Domination in Graphs; Developments in Mathematics Series; Springer: Berlin/Heidelberg, Germany, 2020; Volume 64. [Google Scholar]
  14. Haynes, T.W.; Hedetniemi, S.T.; Henning, M.A. Structures of Domination in Graphs; Developments in Mathematics Series; Springer: Berlin/Heidelberg, Germany, 2021; Volume 66. [Google Scholar]
  15. Henning, M.A.; Klostermeyer, W.F.; MacGillivray, G. Perfect Roman domination in trees. Discret. Appl. Math. 2018, 236, 235–245. [Google Scholar] [CrossRef]
  16. Rubalcaba, R.R.; Slater, P.J. Roman dominating influence parameters. Discret. Math. 2007, 307, 3194–3200. [Google Scholar] [CrossRef]
  17. Mann, K.; Fernau, H. Perfect Roman Domination: Aspects of Enumeration and Parameterization. In Proceedings of the Combinatorial Algorithms (Proceeding 35th International Workshop on Combinatorial Algorithms IWOCA), Ischia, Italy, 1–3 July 2024; Rescigno, A.A., Vaccaro, U., Eds.; Springer: Berlin/Heidelberg, Germany, 2024; LNCS Volume 14764, pp. 354–368. [Google Scholar]
  18. Cabrera Martínez, A.; Puertas, M.; Rodríguez-Velázquez, J. On the 2-Packing Differential of a Graph. Results Math. 2021, 76, 157. [Google Scholar] [CrossRef]
  19. Banerjee, S.; Chaudhary, J.; Pradhan, D. Unique Response Roman Domination: Complexity and Algorithms. Algorithmica 2023, 85, 3889–3927. [Google Scholar] [CrossRef]
  20. Banerjee, S.; Keil, J.M.; Pradhan, D. Perfect Roman domination in graphs. Theor. Comput. Sci. 2019, 796, 1–21. [Google Scholar] [CrossRef]
  21. Fernau, H.; Golovach, P.A.; Sagot, M. Algorithmic Enumeration: Output-sensitive, Input-Sensitive, Parameterized, Approximative (Dagstuhl Seminar 18421). Dagstuhl Rep. 2018, 8, 63–86. [Google Scholar]
  22. Wasa, K. Enumeration of Enumeration Algorithms. arXiv 2016, arXiv:1605.05102. [Google Scholar] [CrossRef]
  23. Abu-Khzam, F.N.; Fernau, H.; Mann, K. Minimal Roman Dominating Functions: Extensions and Enumeration. Algorithmica 2024, 86, 1862–1887. [Google Scholar] [CrossRef]
  24. Kratochvíl, J.; Křivánek, M. On the Computational Complexity of Codes in Graphs. In Proceedings of the Mathematical Foundations of Computer Science (MFCS), Carlsbad, Czech Republic, 29 August–2 September 1988; Chytil, M., Janiga, L., Koubek, V., Eds.; Springer: Berlin/Heidelberg, Germany, 1988; LNCS Volume 324, pp. 396–404. [Google Scholar]
  25. Casel, K.; Fernau, H.; Ghadikolaei, M.K.; Monnot, J.; Sikora, F. Abundant Extensions. In Proceedings of the Algorithms and Complexity—12th International Conference (CIAC), Virtual, 10–12 May 2021; Calamoneri, T., Corò, F., Eds.; Springer: Berlin/Heidelberg, Germany, 2021; LNCS Volume 12701, pp. 3–17. [Google Scholar] [CrossRef]
  26. Chellali, M.; Haynes, T.W.; Hedetniemi, S.M.; Hedetniemi, S.T.; McRae, A.A. A Roman Domination Chain. Graphs Comb. 2016, 32, 79–92. [Google Scholar] [CrossRef]
  27. Döcker, J. Monotone 3-Sat-(2,2) is NP-complete. arXiv 2019, arXiv:1912.08032. [Google Scholar] [CrossRef]
  28. Strozecki, Y. Enumeration Complexity. EATCS Bull. 2019, 129. [Google Scholar]
  29. Abu-Khzam, F.N.; Fernau, H.; Mann, K. Roman Census: Enumerating and Counting Roman Dominating Functions on Graph Classes. In Proceedings of the 48th International Symposium on Mathematical Foundations of Computer Science (MFCS), Bordeaux, France, 28 August–1 September 2023; Leroux, J., Lombardy, S., Peleg, D., Eds.; Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl—Leibniz-Zentrum für Informatik: Wadern, Germany, 2023; Volume 272, pp. 1–15. [Google Scholar]
  30. Golumbic, M.C. Interval Graphs. In Annals of Discrete Mathematics; Elsevier: Amsterdam, The Netherlands, 2004; Volume 57, Chapter 8; pp. 171–202. [Google Scholar]
  31. Fellows, M.R.; Hoover, M.N. Perfect domination. Australas. J. Comb. 1991, 3, 141–150. [Google Scholar]
  32. Lu, C.L.; Tang, C.Y. Weighted efficient domination problem on some perfect graphs. Discret. Appl. Math. 2002, 117, 163–182. [Google Scholar] [CrossRef]
  33. Trejo-Sánchez, J.A.; Madera-Ramírez, F.A.; Fernández-Zepeda, J.A.; López-Martínez, J.L.; Flores-Lamas, A. A fast approximation algorithm for the maximum 2-packing set problem on planar graphs. Optim. Lett. 2023, 17, 1435–1454. [Google Scholar] [CrossRef]
  34. Targhi, E.E.; Rad, N.J.; Volkmann, L. Unique response Roman domination in graphs. Discret. Appl. Math. 2011, 159, 1110–1117. [Google Scholar] [CrossRef]
  35. Junosza-Szaniawski, K.; Rzążewski, P. On the number of 2-packings in a connected graph. Discret. Math. 2012, 312, 3444–3450. [Google Scholar] [CrossRef]
  36. Marino, A. Analysis and Enumeration. Algorithms for Biological Graphs; Atlantis Studies in Computing; Atlantis Press: Paris, France, 2015; Volume 6. [Google Scholar]
  37. Courcelle, B.; Engelfriet, J.; Rozenberg, G. Handle-rewriting hypergraph grammars. J. Comput. Syst. Sci. 1993, 46, 218–270. [Google Scholar] [CrossRef]
  38. Downey, R.G.; Fellows, M.R. Fundamentals of Parameterized Complexity; Texts in Computer Science; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  39. Courcelle, B.; Makowsky, J.; Rotics, U. Linear time solvable optimization problems on Graphs of Bounded Clique-Width. Theory Comput. Syst. 2000, 33, 125–150. [Google Scholar] [CrossRef]
  40. Golumbic, M.C.; Rotics, U. On the Clique-Width of Some Perfect Graph Classes. Int. J. Found. Comput. Sci. 2000, 11, 423–443. [Google Scholar] [CrossRef]
  41. Cattanéo, D.; Perdrix, S. The Parameterized Complexity of Domination-Type Problems and Application to Linear Codes. In Proceedings of the Theory and Applications of Models of Computation (TAMC), Singapore, 11–13 April 2014; Gopal, T.V., Agrawal, M., Li, A., Cooper, S.B., Eds.; Springer: Berlin/Heidelberg, Germany, 2014; LNCS Volume 8402, pp. 86–103. [Google Scholar]
  42. Cesati, M. The Turing way to parameterized complexity. J. Comput. Syst. Sci. 2003, 67, 654–685. [Google Scholar] [CrossRef]
  43. Guo, J.; Hüffner, F.; Niedermeier, R. A structural view on parameterizing problems: Distance from triviality. In Proceedings of the International Workshop on Parameterized and Exact Computation IWPEC 2004, Bergen, Norway, 14–17 September 2004; Downey, R., Fellows, M., Dehne, F., Eds.; Springer: Berlin/Heidelberg, Germany, 2004; LNCS Volume 3162, pp. 162–173. [Google Scholar]
  44. Fernau, H. Extremal Kernelization: A Commemorative Paper. In Proceedings of the Combinatorial Algorithms, IWOCA 2017, Newcastle, Australia, 17–21 July 2017; Brankovic, L., Ryan, J., Smyth, W.F., Eds.; Springer: Berlin/Heidelberg, Germany, 2018; LNCS Volume 10765, pp. 24–36. [Google Scholar]
Figure 1. Construction for Theorem 2.
Figure 1. Construction for Theorem 2.
Algorithms 17 00576 g001
Figure 2. Counter-example of Remark 3.
Figure 2. Counter-example of Remark 3.
Algorithms 17 00576 g002
Figure 3. Examples illustrating our notions.
Figure 3. Examples illustrating our notions.
Algorithms 17 00576 g003
Figure 4. Constructions for Theorem 13.
Figure 4. Constructions for Theorem 13.
Algorithms 17 00576 g004
Figure 5. Construction for Theorem 20.
Figure 5. Construction for Theorem 20.
Algorithms 17 00576 g005
Table 1. Survey of basic complexity results of Perfect Roman Domination (PRD) and of Unique Response Roman Domination (URRD) on graph various classes.
Table 1. Survey of basic complexity results of Perfect Roman Domination (PRD) and of Unique Response Roman Domination (URRD) on graph various classes.
Graph ClassPRDURRD
chordalNP-complete [20]NP-complete [19]
intervalP Theorem 6P [19]
splitNP-complete Theorem 8P Theorem 7
cobipartiteP Theorem 10P Lemma 2
bipartiteNP-complete [20]NP-complete [18]
chordal bipartiteNP-complete Theorem 13NP-complete Theorem 13
distance-hereditaryP Theorem 14P [19]
cographsP [20]P [19]
bounded treewidthP Theorem 15P Theorem 17
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mann, K.; Fernau, H. Perfect Roman Domination: Aspects of Enumeration and Parameterization. Algorithms 2024, 17, 576. https://doi.org/10.3390/a17120576

AMA Style

Mann K, Fernau H. Perfect Roman Domination: Aspects of Enumeration and Parameterization. Algorithms. 2024; 17(12):576. https://doi.org/10.3390/a17120576

Chicago/Turabian Style

Mann, Kevin, and Henning Fernau. 2024. "Perfect Roman Domination: Aspects of Enumeration and Parameterization" Algorithms 17, no. 12: 576. https://doi.org/10.3390/a17120576

APA Style

Mann, K., & Fernau, H. (2024). Perfect Roman Domination: Aspects of Enumeration and Parameterization. Algorithms, 17(12), 576. https://doi.org/10.3390/a17120576

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