Keywords: enumeration problems, polynomial delay, domination problems, hitting set, Roman domination
Introduction
For more than four decades, the question whether all minimal hitting sets can be enumerated with polynomial delay is an open question. This Transversal Hypergraph Problem is equivalent to the question if all minimal dominating sets can be enumerated with polynomial delay.1 From the point of view of applications, it is quite important to find an affirmative answer: no user likes to wait “forever” to see the next solution, or to get to know that no further solution exist. In order to explore this question, the problem of enumerating minimal dominating sets has been investigated in many special graph classes. Several graph classes have been identified where this enumeration problem can be solved with polynomial delay. In this paper, we approach this problem from a different side. Namely, in [4 ] it was shown that all minimal Roman dominating functions2 can be enumerated with polynomial delay. This was a rather surprising finding as in most other complexity aspects, Roman Domination and Dominating Set behave quite the same. More specifically, to mention some of these results:
Minimum Roman Domination can be approximated up to a logarithmic factor but not any better, unless P = NP, confer [1 , 46 , 45 ] .
Roman Domination under standard parameterization (by an upper-bound k k k on the number of armies) is complete for W[2 ] ; see [27 ] . However, the dual parameterization puts Roman Domination in FPT; see [2 , 8 , 9 ] .
So, we take this as a basis and try to generalize Roman Domination towards a Hitting Set variant to understand when or where the polynomial delay feature disappears. In passing, we also generalize the enumeration results from [4 ] considerably. As we will explain in the following, we introduce a generalizations of Roman Domination towards hypergraphs; we can describe the tractability frontier (with respect to polynomial delay) quite accurately. This also adds to the understanding of the reasons why the Roman variation of domination behaves that differently from the classical setting when it comes to enumeration.
Let us first explain why Roman domination variations are interesting by themselves. Defense strategies of the Roman Empire have been studied throughout the centuries, mostly from a historical-military perspective, but then also from a more graph-theoretic viewpoint, commencing with an article by Arquilla3 and Fredricksen [7 ] . The strategy that we are also discussing in this paper is nowadays known as Roman domination and was introduced in [48 ] in line with the discussions of Arquilla and Fredricksen, formalizing a military strategy going back to Constantine the Great. The concept of Roman domination is a well-studied variation of domination in graphs, certified by its own 45-page chapter in the rather recent textbook [35 ] , written by Chellali et al. Here, armies are placed in different regions. A region is secured if there is at least one army in this region or there are two armies in one neighbored region. Mathematically, we model the map as a graph, where regions correspond to vertices and connections between regions correspond to edges; moreover, the placement of armies is described by a function which maps each vertex to 0, 1 or 2. Such a function is called Roman dominating if each vertex with value 0 has a neighbor with value 2. The pragmatic idea is to pay one to secure a region, but to pay two to also secure all neighboring regions. The goal is to secure the whole empire. It is clearly desirable to minimize expenses by finding a Roman dominating function that uses the least number of armies; the corresponding decision problem is called Roman Domination.
Apart from quite a number of combinatorial (graph-theoretic) results that have been obtained for Roman domination, nicely surveyed in [35 ] , the decision problem Roman Domination has been studied from various aspects. Even though Roman Domination and Dominating Set behave the same in terms of complexity in a variety of settings this parallelism unexpectedly breaks down for two (mutually related) tasks:
The first type of question is also known as an output-sensitive enumeration problem. Even the less demanding task to enumerate all minimal dominating sets in output-polynomial time is open. 5 The corresponding enumeration question for Roman dominating functions (for two natural notions of minimality) can be solved with polynomial delay, as proven in [4 ] and used in [3 ] . This result on Roman domination is based on another result giving a polynomial-time algorithm for the extension problem(s) as described in the second item. Namely, the idea is to call an extension test before diving further into branching. This strategy is well-established in the area of enumeration algorithms, dating back to Read and Tarjan [47 ] , but few concrete examples are known; we only refer to the discussion in [43 , 49 ] . This makes Extension Roman Domination one of few examples where the extension problem is polynomial-time solvable, while the original problem is NP-complete. For more details on extension problems, we refer to the survey [15 ] that also suggests a general framework to describe such problems and provides further motivations and applications.
The simple scientific question that we want to investigate in this paper is “why”: What causes Roman domination to be feasible with respect to enumeration and extension? To find out why Extension Roman Domination (Ext RD for short) behaves in this peculiar way and what can be seen as a difference to Extension Dominating Set (Ext DS for short), we are going to generalize the concept of Roman domination and try to find the borderline of tractability.
By this, we refer to the question if minimal hitting sets can be enumerated with polynomial delay. This so-called Transversal Hypergraph Problem [26 ] is open for four decades. It is quite important, as it appears in many application areas, and in particular in databases [20 , 26 , 32 , 38 ] , there are quite a number of interesting equivalent problems, or problems that are shown to be transversal-hard , as called in [33 ] ; we only mention two recent references and refer to the papers cited therein: [11 , 12 ] . Our paper can be read as trying to understand which kind of problems are transversal-hard, and furthermore, to describe situations when polynomial-delay enumeration algorithms exist. Previous research on enumeration algorithms for minimal dominating sets often tried to look into special graph classes where polynomial-delay enumeration could be exhibited, or not. For instance, consider split graphs: in [38 ] , it is shown that minimal dominating sets can be enumerated with polynomial delay,⁶ while minimal connected dominating sets cannot, assuming transversal hardness, see [37 ] . This approach can be seen as specializing a known (transversal-hard) enumeration problem by studying special graph classes. Our approach is different as we come from a domination-type problem with a known polynomial-delay enumeration algorithm for general graphs and we try to stretch this result by generalization to understand when this enumeration task becomes transversal-hard.
It is well-known that Hitting Set (HS for short) can be viewed as a generalization of Dominating Set (DS for short) by modelling a graph by the closed-neighborhood hypergraph. One of the main differences between Dominating Set (in graphs) and Hitting Set is that in the second setting, there is a clear distinction between the objects that can dominate (the vertices of the hypergraph) and the objects that should be dominated (which are the hyperedges, i.e., sets of vertices). Although Hitting Set and Roman Domination are both established concepts that generalize Dominating Set, it seems that there is no combination of both concepts published in the literature. Actually, trying to define such a combination comes with some problems. If we want a Hitting Set instance to represent a Dominating Set instance by the closed-neighborhood hypergraph, the vertex set of the given graph is the vertex set of the hypergraph, and the set of all closed neighborhoods is the (hyper)edge set. Ignoring twins, this implies a bijection between the universe and the (hyper)edge set. But in general hypergraphs, the number of hyperedges and the number of elements in the universe are independent. Therefore, we have to think about how to interpret the “value one setting” such that it is related to the definition of Roman Domination where exactly one army is put on a certain vertex. We suggest modelling this effect in hypergraphs based on the following idea: If a vertex has the value 1 under a Roman dominating function, then it hits only its “own” closed-neighborhood hyperedge. In general hypergraphs, we have to explicitly express how a vertex “owns” a hyperedge. Hence, we need a function, called correspondence , which maps a vertex to an incident hyperedge, such that this hyperedge is dominated if the vertex has the value 1. This hypergraph problem is defined more formally in the next section.
We conclude this section by mentioning that there exist some versions of this paper. First, this paper was a result of splitting the technical report [28 ] . Additional, the technical report included some results of [42 ] . Instead, this paper has one more W[3 ] -completeness result (Theorem 12 which was a W[1 ] -hardness result in [28 ] ) as well as more output-sensitive enumeration analysis. This includes transversal-completeness and parameterized enumeration algorithms. An extended abstract of this paper has been presented at IPEC 2024, see [29 ] . This version not only contains full proofs but also a specific new section elaborating the enumerability results that have not been in a special focus at IPEC. Moreover, in the conference version, we have raised the following question: We also do not know if the polynomial-delay enumerability questions that we discussed are really equivalent to the polynomial-delay enumerability of minimal hitting sets. This question has been settled by Samuel German in the meantime and we have included his arguments (and his name) to this journal version.
Definitions and Notation
Throughout this paper, we will freely use standard notions from complexity theory without defining them here. This includes notions from parameterized complexity, concerning FPT and the further lower levels of the W-hierarchy up to W[3 ] , as described in textbooks like [30 , 24 ] .
General Notions, Graphs and Hypergraphs
General Notions. Let N \mathbb{N} N denote the set of all nonnegative integers (including 0). For n ∈ N n \in\mathbb{N} n ∈ N , we will use the notation [ n ] : = { 1 , … , n } [n] := \{1,\ldots,n\} [ n ] := { 1 , … , n } . For a finite set A A A and some n ∈ N n \in\mathbb{N} n ∈ N with n ≤ ∣ A ∣ n \leq|A| n ≤ ∣ A ∣ , the cardinality of A A A , ( A n ) \binom{A}{n} ( n A ) denotes the set of all subsets of A A A of cardinality n n n , while 2 A 2^A 2 A denotes the power set of A A A . For two sets A A A , B B B , B A B^A B A denotes the set of all mappings f : A → B f : A \to B f : A → B . If C ⊆ A C \subseteq A C ⊆ A , then f ( C ) = { f ( x ) ∣ x ∈ C } ⊆ B f(C) = \{f(x) \mid x \in C\} \subseteq B f ( C ) = { f ( x ) ∣ x ∈ C } ⊆ B . We denote by χ C ∈ { 0 , 1 } A \chi_C \in\{0,1\}^A χ C ∈ { 0 , 1 } A the characteristic function, where χ C ( x ) = 1 \chi_C(x) = 1 χ C ( x ) = 1 holds if and only if x ∈ C x \in C x ∈ C . For two functions f , g ∈ N A f,g \in\mathbb{N}^A f , g ∈ N A , we write f ≤ g f \leq g f ≤ g if and only if f ( a ) ≤ g ( a ) f(a) \leq g(a) f ( a ) ≤ g ( a ) holds for all a ∈ A a \in A a ∈ A . Further, we define the weight of f f f by ω ( f ) = ∑ a ∈ A f ( a ) \omega(f) = \sum_{a\in A} f(a) ω ( f ) = ∑ a ∈ A f ( a ) .
Hypergraphs. We focus on not necessarily simple hypergraphs H = ( X , S ^ = ( s i ) i ∈ I ) H = (X,\widehat{\mathcal{S}} = (s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) with a finite universe X X X , also called vertex set , and a finite index set I I I , where for each i ∈ I i \in I i ∈ I , s i ⊆ X s_i \subseteq X s i ⊆ X is a hyperedge .7 With the set S \mathcal{S} S we denote the set which includes all hyperedges of the family S ^ \widehat{\mathcal{S}} S , i.e., S = { s i ∣ i ∈ I } \mathcal{S} = \{s_i \mid i \in I\} S = { s i ∣ i ∈ I } . Note that the same hyperedge may appear multiple times in the family S ^ \widehat{\mathcal{S}} S . If this is forbidden, we speak of a simple hypergraph .8 For all x ∈ X x \in X x ∈ X , define S ( x ) = { s i ∈ S ∣ x ∈ s i } \mathcal{S}(x) = \{s_i \in\mathcal{S} \mid x \in s_i\} S ( x ) = { s i ∈ S ∣ x ∈ s i } as the set of hyperedges that is hit by the vertex x x x , hence defining a function S : X → 2 S \mathcal{S} : X \to2^\mathcal{S} S : X → 2 S . A set D ⊆ X D \subseteq X D ⊆ X is a hitting set (hs for short) if and only if S ( D ) = S \mathcal{S}(D) = \mathcal{S} S ( D ) = S , where S ( D ) = ⋃ x ∈ D S ( x ) \mathcal{S}(D) = \bigcup_{x\in D}\mathcal{S}(x) S ( D ) = ⋃ x ∈ D S ( x ) . Similarly, define I : X → 2 I \mathcal{I} : X \to2^I I : X → 2 I by I ( x ) = { i ∈ I ∣ x ∈ s i } \mathcal{I}(x) = \{i \in I \mid x \in s_i\} I ( x ) = { i ∈ I ∣ x ∈ s i } , extending to A ⊆ X A \subseteq X A ⊆ X by I ( A ) = ⋃ x ∈ A I ( x ) \mathcal{I}(A) = \bigcup_{x\in A}\mathcal{I}(x) I ( A ) = ⋃ x ∈ A I ( x ) . We call a function τ : X → I \tau: X \to I τ : X → I a correspondence if x ∈ s τ ( x ) x \in s_{\tau(x)} x ∈ s τ ( x ) for all x ∈ X x \in X x ∈ X or if, in other words, τ ( x ) ∈ I ( x ) \tau(x) \in\mathcal{I}(x) τ ( x ) ∈ I ( x ) for all x ∈ X x \in X x ∈ X .
Consider a (simple undirected) graph G = ( V , E ) G=(V,E) G = ( V , E ) as a hypergraph G = ( V , E ^ ) G=(V,\widehat{E}) G = ( V , E ) , where each hyperedge contains exactly two elements. Now, we call the hyperedges just edges. Talking about simple graphs, we can consider E E E as the index set. For each vertex v ∈ V v\in V v ∈ V , define its neighborhood as N ( v ) = { u ∣ { v , u } ∈ E } N(v)=\{u\mid\{v,u\}\in E\} N ( v ) = { u ∣ { v , u } ∈ E } and the closed neighborhood as N [ v ] = { v } ∪ N ( v ) N[v]=\{v\}\cup N(v) N [ v ] = { v } ∪ N ( v ) . For vertex sets U ⊆ V U\subseteq V U ⊆ V , we use N [ U ] = ⋃ v ∈ U N [ v ] N[U]=\bigcup_{v\in U}N[v] N [ U ] = ⋃ v ∈ U N [ v ] for the closed neighborhood of U U U . A dominating set (ds for short) of a graph G = ( V , E ) G=(V,E) G = ( V , E ) is a set D ⊆ V D\subseteq V D ⊆ V such that N [ D ] = V N[D]=V N [ D ] = V .
In the following, we will formally describe more specific notions concerning Roman Domination and Roman Hitting Functions.
Roman Dominating Functions
Let G = ( V , E ) G=(V,E) G = ( V , E ) be a graph. A function f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } is a Roman dominating function (Rdf for short) if and only if, for each vertex v ∈ V v\in V v ∈ V with f ( v ) = 0 f(v)=0 f ( v ) = 0 , there exists a u ∈ N ( v ) u\in N(v) u ∈ N ( v ) with f ( u ) = 2 f(u)=2 f ( u ) = 2 . A Roman dominating function f f f is minimal if for each Roman dominating function g g g with g ≤ f g\leq f g ≤ f , f = g f=g f = g holds, leading to the following problems.
Problem name: Roman Domination (RD)
Given: A graph G = ( V , E ) G=(V,E) G = ( V , E ) and k ∈ N k\in\mathbb{N} k ∈ N
Question: Is there a Roman dominating function f f f with ω ( f ) ≤ k \omega(f)\leq k ω ( f ) ≤ k ?
Problem name: Extension Roman Domination (Ext RD)
Given: A graph G = ( V , E ) G=(V,E) G = ( V , E ) and a function f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 }
Question: Is there a minimal Roman dominating function g g g for G G G with f ≤ g f\leq g f ≤ g ?
Notice the analogy to Dominating Set and its extension variant, where the input is some set X X X of vertices and the question is whether there exists a minimal dominating set D D D with X ⊆ D X\subseteq D X ⊆ D . For Roman domination, a pointwise ordering of functions is considered, while for domination, the inclusion ordering is taken. This can be reconciled even more by considering characteristic functions instead of sets. Somewhat surprisingly, Ext RD was proven to be polynomial-time solvable in [4 ] . This implies that minimal Roman dominating function can be enumerated with polynomial delay. The basis of this algorithm is a combinatorial characterization of minimal Roman dominating functions. To be able to formulate the already mentioned combinatorial characterization of minimal Roman dominating function, we need a further notion. For D ⊆ V D\subseteq V D ⊆ V and v ∈ D v\in D v ∈ D , define the private neighborhood of v ∈ V v\in V v ∈ V with respect to D D D as P G , D ( v ) : = N [ v ] ∖ N [ D ∖ { v } ] P_{G,D}(v):=N[v]\setminus N[D\setminus\{v\}] P G , D ( v ) := N [ v ] ∖ N [ D ∖ { v }] whose elements are the private neighbors of v v v .
Theorem 1. [4 ] Let G = ( V , E ) G=(V,E) G = ( V , E ) be a graph and f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } be a function. Abbreviate G ′ : = G [ f − 1 ( 0 ) ∪ f − 1 ( 2 ) ] G':=G[f^{-1}(0)\cup f^{-1}(2)] G ′ := G [ f − 1 ( 0 ) ∪ f − 1 ( 2 )] . Then, f f f is a minimal Roman dominating function if and only if the following constraints hold:
N [ f − 1 ( 2 ) ] ∩ f − 1 ( 1 ) = ∅ N[f^{-1}(2)]\cap f^{-1}(1)=\varnothing N [ f − 1 ( 2 )] ∩ f − 1 ( 1 ) = ∅ (non-interference of 1- and 2-vertices),
∀ v ∈ f − 1 ( 2 ) : P G ′ , f − 1 ( 2 ) ( v ) ⊈ { v } \forall v\in f^{-1}(2):P_{G',f^{-1}(2)}(v)\nsubseteq\{v\} ∀ v ∈ f − 1 ( 2 ) : P G ′ , f − 1 ( 2 ) ( v ) ⊈ { v } , also called privacy condition, and
f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is a minimal dominating set of G ′ G' G ′ (minimality of 2-vertices).
In order to explore why these results were possible, we are going to generalize these notions and problems for hypergraphs in two ways, with a clear focus on the second possibility.
The first one is probably the most natural one, formed in analogy to the notion of a dominating set in a (simple) hypergraph; see [5 ] . Let H = ( V , E ) H=(V,E) H = ( V , E ) be a (simple) hypergraph, i.e., E ⊆ 2 V E \subseteq2^V E ⊆ 2 V . Then, f : V → { 0 , 1 , 2 } f:V \to\{0,1,2\} f : V → { 0 , 1 , 2 } is a Roman dominating function if, for all v ∈ V v \in V v ∈ V with f ( v ) = 0 f(v)=0 f ( v ) = 0 , there is a vertex u ∈ V u \in V u ∈ V with f ( u ) = 2 f(u)=2 f ( u ) = 2 that is a neighbor of v v v , i.e., it shares an edge with v v v , which means, more formally, that there exists some e ∈ E e \in E e ∈ E with { u , v } ⊆ e \{u,v\} \subseteq e { u , v } ⊆ e . The problems can then be defined as for graphs. We will call them Hypergraph Roman Domination, or HRD for short, and Extension Hypergraph Roman Domination, or Ext HRD for short.
However, as we show next, we can transfer all interesting properties of Roman domination from the graph case to the hypergraph setting, basically by using the same reduction. More specifically, we can show:
Proposition 1. HRD is NP-complete .
Proposition 2. Ext HRD can be solved in polynomial time .
Proposition 3. One can enumerate all minimal Roman dominating functions of a hypergraph with polynomial delay.
Namely, if G = ( V , E ) G=(V,E) G = ( V , E ) is a simple hypergraph, we can construct a graph G ′ = ( V , E ′ ) G'=(V,E') G ′ = ( V , E ′ ) by setting { x , y } ∈ E ′ \{x,y\} \in E' { x , y } ∈ E ′ if and only if there is a hyperedge e ∈ E e \in E e ∈ E with { x , y } ⊆ e \{x,y\} \subseteq e { x , y } ⊆ e . This construction is also known as the Gaifman graph of G G G . Then, f : V → { 0 , 1 , 2 } f:V \to\{0,1,2\} f : V → { 0 , 1 , 2 } is a Roman dominating function of the hypergraph G G G if and only if f f f is a Roman dominating function of the graph G ′ G' G ′ . Conversely, we just have to interpret a given graph as a simple hypergraph.
Therefore, we propose a further generalization of Roman domination towards hypergraphs that allow us to study why Roman domination shows such a peculiar behavior when it comes to its extension version, as well as concerning enumerating minimal Roman dominating functions.
Roman Hitting Functions
We now introduce the most important novel concept of this paper. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\hat{\mathcal{S}}=(s_i)_{i\in I}) H = ( X , S ^ = ( s i ) i ∈ I ) be a hypergraph and τ : X → I \tau:X \to I τ : X → I be a correspondence. Coming back to the original motivation behind the concept of Roman domination, regions are now modeled by indices of hyperedges, and each region may endorse at most one army. Now, by paying one, an army can secure the endorsed region, and by paying two, one can secure all incident regions. We call a function f : X → { 0 , 1 , 2 } f:X \to\{0,1,2\} f : X → { 0 , 1 , 2 } a Roman hitting function (Rhf for short) if, for each i ∈ I i \in I i ∈ I , there is an x ∈ s i x \in s_i x ∈ s i with f ( x ) = 2 f(x)=2 f ( x ) = 2 or if there exists an x ∈ X x \in X x ∈ X with τ ( x ) = i \tau(x)=i τ ( x ) = i and f ( x ) = 1 f(x)=1 f ( x ) = 1 . In these scenarios, we say that x x x hits i i i or s i s_i s i . For a function f : X → { 0 , 1 , 2 } f:X \to\{0,1,2\} f : X → { 0 , 1 , 2 } , we define the partition P ( f ) = { f − 1 ( 0 ) , f − 1 ( 1 ) , f − 1 ( 2 ) } P(f)=\{f^{-1}(0),f^{-1}(1),f^{-1}(2)\} P ( f ) = { f − 1 ( 0 ) , f − 1 ( 1 ) , f − 1 ( 2 )} . We now define two decision problems related to Roman hitting function.
Problem name: Roman Hitting Function, or RHF for short
Given: A finite set X X X , a hyperedge family S ^ = ( s i ) i ∈ I \hat{\mathcal{S}}=(s_i)_{i\in I} S ^ = ( s i ) i ∈ I , forming the hypergraph ( X , S ^ ) (X,\hat{\mathcal{S}}) ( X , S ^ ) , a correspondence τ : X → I \tau:X \to I τ : X → I , and k ∈ N k \in\mathbb{N} k ∈ N
Question: Is there a Roman hitting function f f f with ω ( f ) ≤ k \omega(f) \le k ω ( f ) ≤ k ?
Problem name: Extension Roman Hitting Function, or Ext RHF for short
Given: A finite set X X X , a hyperedge family S ^ = ( s i ) i ∈ I \widehat{\mathcal{S}}=(s_i)_{i\in I} S = ( s i ) i ∈ I , forming the hypergraph ( X , S ^ ) (X,\widehat{\mathcal{S}}) ( X , S ) , a correspondence τ : X → I \tau:X\to I τ : X → I , and f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 }
Question: Is there a minimal Roman hitting function g g g with f ≤ g f\leq g f ≤ g ?
To understand in which way this setting generalizes Roman Domination, recall that there are alternative ways to specify a graph as a hypergraph; namely, the closed-neighborhood hypergraph G n b G_{\mathrm{nb}} G nb associated to a graph G = ( V , E ) G=(V,E) G = ( V , E ) can be described as G n b = ( V , ( N [ v ] ) v ∈ V ) G_{\mathrm{nb}}=(V,(N[v])_{v\in V}) G nb = ( V , ( N [ v ] ) v ∈ V ) . Clearly, D ⊆ V D\subseteq V D ⊆ V is a dominating set if and only if D D D is a hitting set of G n b G_{\mathrm{nb}} G nb . As v ∈ N [ v ] v\in N[v] v ∈ N [ v ] , the identity can be viewed as a correspondence. In this interpretation, f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } is a Roman dominating function of G G G if and only if it is a Roman hitting function of G n b G_{\mathrm{nb}} G nb .
Organization of the Paper and Main Results
In section 3, we will prove that our optimization problem is NP-complete and, more interestingly, the problem k k k -Roman Hitting Function is W[2 ] -complete. Then, we turn our attention to the extension problem. Recall that the algorithmic results in the case of Roman domination were based on some basic combinatorial insights that we actually repeat at the end of this section for the reader’s convenience. Following this logic, first we show in section 4 a combinatorial characterization of minimal Roman hitting function that we can make use of in section 5 where we prove that Extension Roman Hitting Function with surjective correspondences can be solved in polynomial time.
In section 6, we return to Roman domination and consider a variant of the extension problem where we give both lower and upper bound conditions to the minimal Roman dominating function that we are looking for. In contrast to the original problem (that only provides a lower bound), this two-sided extension problem turns out to be NP-complete as we show. Also a natural parameterization of this problem by the weight of the lower bound function (motivated by the principle of distance to triviality [34 ] ) does not really help, it rather yields a parameterized problem that is complete in the class W[3 ] as we prove. These results are then employed in section 7 to prove that in general, the extension problem for Roman hitting function is W[3 ] -complete when parameterized by the weight of the given function. In this section, we investigate alternative parameterizations for this extension problem, sometimes proving hardness results, but sometimes also arriving at FPT-results. In section 8, we show how our results can be applied to develop enumeration algorithms for Roman hitting functions. We focus on an output-sensitive analysis, delineating the borderline between transversal hardness and polynomial delay. We also show that all our enumeration algorithms, they may have polynomial delay or FPT-delay, use polynomial space only (except in the case of 16, which gives a conditionally polynomial-delay enumeration algorithm which isn’t necessarily polynomial space).
Let us mention already here that with our approach, feasibility in the sense of enumerability of minimal solutions with polynomial delay goes hand-in-hand with feasibility in the sense of polynomial-time solvability of the corresponding extension problem. This need not be the case, even in the area of domination-type problems. As shown in [14 ] , the extension problem for edge dominating sets is NP-complete, while minimal edge dominating sets can be listed with polynomial delay, as shown in [39 ] . Another example related to Roman domination is exposed in [41 ] .
The Optimization Problem RHF
In this section, we will discuss the (parameterized) complexity of the optimization problem RHF. The probably most natural parameterization for the problem is by an upper bound k k k on the weight of the Roman hitting function. For our results, we will use the W[2 ] -completeness of Roman Domination (with k k k as parameter) shown in [27 ] . The hardness follows, as Roman dominating functions can be interpreted as Roman hitting functions. For the membership, we construct a split graph, where the clique represents the elements of the universe and the independent set form the hyperedges. Here, the hyperedges are added twice to the independent set if the inverse image of the hyperedge with respect to τ \tau τ is empty. In this way, it is better to put a neighbor to 2 than to put these two vertices to 1.
Theorem 2. RHF is NP-complete . The parameterized problem k k k -RHF is W[2 ] -complete.
Proof. As discussed in section 2, Roman dominating functions can be interpreted as Roman hitting functions so that all hardness claims translate from Roman Domination.
Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\widehat{\mathcal{S}}=(s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) be a hypergraph, τ : X → I \tau:X\to I τ : X → I be a correspondence (hence, τ ( x ) ∈ I ( x ) \tau(x)\in I(x) τ ( x ) ∈ I ( x ) for each x ∈ X x\in X x ∈ X ) and k ∈ N k\in\mathbb{N} k ∈ N . Define the graph G = ( V , E ) G=(V,E) G = ( V , E ) with
V : = { a , b , c } ∪ { v x ∣ x ∈ X } ⏟ = : V ( X ) ∪ W ∪ U , where W : = { w i ∣ i ∈ I } and U : = { u i ∣ i ∈ I , τ − 1 ( i ) = ∅ } , E : = { { a , b } , { a , c } } ∪ { { a , v x } ∣ x ∈ X } ∪ { { v x , w i } ∣ i ∈ I , x ∈ s i } ∪ { { v x , u i } ∣ i ∈ I , x ∈ s i , u i ∈ U } ∪ { { v x , v y } ∣ x , y ∈ X } . \begin{aligned}
V &:= \{a,b,c\}\cup\underbrace{\{v_x\mid x\in X\}}_{=:V(X)}\cup W\cup U,\quad\text{where}\\
W &:= \{w_i\mid i\in I\}\quad\text{and}\\
U &:= \{u_i\mid i\in I,\ \tau^{-1}(i)=\varnothing\},\\
E &:= \{\{a,b\},\{a,c\}\}\cup\{\{a,v_x\}\mid x\in X\}\cup\{\{v_x,w_i\}\mid i\in I,\ x\in s_i\}\\
&\quad\cup\{\{v_x,u_i\}\mid i\in I,\ x\in s_i,\ u_i\in U\}\cup\{\{v_x,v_y\}\mid x,y\in X\}.
\end{aligned} V W U E := { a , b , c } ∪ =: V ( X ) { v x ∣ x ∈ X } ∪ W ∪ U , where := { w i ∣ i ∈ I } and := { u i ∣ i ∈ I , τ − 1 ( i ) = ∅ } , := {{ a , b } , { a , c }} ∪ {{ a , v x } ∣ x ∈ X } ∪ {{ v x , w i } ∣ i ∈ I , x ∈ s i } ∪ {{ v x , u i } ∣ i ∈ I , x ∈ s i , u i ∈ U } ∪ {{ v x , v y } ∣ x , y ∈ X } .
Observe that G G G is a split graph, with V ( X ) ∪ { a } V(X)\cup\{a\} V ( X ) ∪ { a } forming a clique and V ∖ ( V ( X ) ∪ { a } ) V\setminus(V(X)\cup\{a\}) V ∖ ( V ( X ) ∪ { a }) being independent.
Claim. H = ( X , S ^ ) H=(X,\widehat{\mathcal{S}}) H = ( X , S ) with correspondence τ \tau τ has a Roman hitting function of weight at most k k k if and only if G G G has a Roman dominating function with weight at most k + 2 k+2 k + 2 .
Proof. We first show the implication from left to right. Let f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a minimal Roman hitting function on H H H with correspondence τ \tau τ . Define g : V → { 0 , 1 , 2 } g:V\to\{0,1,2\} g : V → { 0 , 1 , 2 } by setting
g ( v ) ↦ { 2 , if v ∈ { a } ∪ { v x ∣ x ∈ X : f ( x ) = 2 } , 1 , if v ∈ { w i ∈ W ∣ ∃ x ∈ τ − 1 ( i ) : f ( x ) = 1 } , 0 , if v ∈ { b , c } ∪ { w i ∈ W ∣ ∀ x ∈ τ − 1 ( i ) : f ( x ) ≠ 1 } ∪ U . g(v)\mapsto
\begin{cases}
2, & \text{if }v\in\{a\}\cup\{v_x\mid x\in X:f(x)=2\},\\
1, & \text{if }v\in\{w_i\in W\mid\exists x\in\tau^{-1}(i):f(x)=1\},\\
0, & \text{if }v\in\{b,c\}\cup\{w_i\in W\mid\forall x\in\tau^{-1}(i):f(x)\ne1\}\cup U.
\end{cases} g ( v ) ↦ ⎩ ⎨ ⎧ 2 , 1 , 0 , if v ∈ { a } ∪ { v x ∣ x ∈ X : f ( x ) = 2 } , if v ∈ { w i ∈ W ∣ ∃ x ∈ τ − 1 ( i ) : f ( x ) = 1 } , if v ∈ { b , c } ∪ { w i ∈ W ∣ ∀ x ∈ τ − 1 ( i ) : f ( x ) = 1 } ∪ U .
As g ( a ) = 2 g(a)=2 g ( a ) = 2 , N [ a ] = { a , b , c } ∪ V ( X ) N[a]=\{a,b,c\}\cup V(X) N [ a ] = { a , b , c } ∪ V ( X ) is dominated. There are two further types of vertices to which g g g assigns zero.
(a) Let u i ∈ U u_i\in U u i ∈ U for some i ∈ I i\in I i ∈ I . Since τ − 1 ( i ) = ∅ \tau^{-1}(i)=\varnothing τ − 1 ( i ) = ∅ and as f f f is a Roman hitting function, there exists an x ∈ X ∩ s i x\in X\cap s_i x ∈ X ∩ s i with f ( x ) = 2 f(x)=2 f ( x ) = 2 . By definition, v x ∈ V ( X ) ∩ N ( u i ) v_x \in V(X) \cap N(u_i) v x ∈ V ( X ) ∩ N ( u i ) with g ( v x ) = 2 g(v_x)=2 g ( v x ) = 2 . Therefore, each vertex in U U U is dominated. (b) Let w i ∈ W w_i \in W w i ∈ W for some i ∈ I i \in I i ∈ I with g ( w i ) = 0 g(w_i)=0 g ( w i ) = 0 . Thus, f ( x ) ≠ 1 f(x) \ne1 f ( x ) = 1 for each x ∈ τ − 1 ( i ) x \in\tau^{-1}(i) x ∈ τ − 1 ( i ) . As f f f is a Roman hitting function, there exists an x ∈ X ∩ s i x \in X \cap s_i x ∈ X ∩ s i with f ( x ) = 2 f(x)=2 f ( x ) = 2 . Hence, w i w_i w i is dominated by some v x v_x v x and g g g is a Roman dominating function. Finally,
∑ v ∈ V g ( v ) = 2 + ∑ x ∈ X f ( x ) = 2 g ( v x ) + ∑ i ∈ I , ( ∃ x ∈ τ − 1 ( i ) : f ( x ) = 1 ) g ( w i ) \sum_{v\in V}g(v)=2+\sum_{\substack{x\in X\\ f(x)=2}}g(v_x)+\sum_{\substack{i\in I,(\exists x\in\tau^{-1}(i):\\ f(x)=1)}}g(w_i) v ∈ V ∑ g ( v ) = 2 + x ∈ X f ( x ) = 2 ∑ g ( v x ) + i ∈ I , ( ∃ x ∈ τ − 1 ( i ) : f ( x ) = 1 ) ∑ g ( w i )
≤ 2 + ∑ x ∈ f − 1 ( 2 ) f ( x ) + ∑ x ∈ f − 1 ( 1 ) f ( x ) ≤ k + 2. \le2+\sum_{x\in f^{-1}(2)}f(x)+\sum_{x\in f^{-1}(1)}f(x)\le k+2. ≤ 2 + x ∈ f − 1 ( 2 ) ∑ f ( x ) + x ∈ f − 1 ( 1 ) ∑ f ( x ) ≤ k + 2.
Hence, g g g is a Roman dominating function with weight at most k + 2 k+2 k + 2 .
For the other direction, assume f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } is a minimum Roman dominating function on G G G of weight at most k + 2 k+2 k + 2 . We first derive two combinatorial properties that hold without loss of generality for f f f as f f f is minimum.
(A) Without loss of generality, if there exist v , w ∈ V v,w\in V v , w ∈ V with N [ w ] ⊆ N [ v ] N[w]\subseteq N[v] N [ w ] ⊆ N [ v ] and f ( v ) + f ( w ) ≥ 2 f(v)+f(w)\ge2 f ( v ) + f ( w ) ≥ 2 , then f ( v ) = 2 f(v)=2 f ( v ) = 2 and f ( w ) = 0 f(w)=0 f ( w ) = 0 . We can assume this since each other variation (i.e., assuming f ( v ) = 1 f(v)=1 f ( v ) = 1 and f ( w ) ≥ 1 f(w)\ge1 f ( w ) ≥ 1 or f ( v ) = 0 f(v)=0 f ( v ) = 0 and f ( w ) = 2 f(w)=2 f ( w ) = 2 ) would dominate at most the same vertices. For instance, as N [ w i ] ⊆ N [ v x ] N[w_i]\subseteq N[v_x] N [ w i ] ⊆ N [ v x ] for x ∈ s i x\in s_i x ∈ s i . Hence, we can assume that { v ∈ V ∣ f ( v ) = 2 } ⊆ { a } ∪ { v x ∣ x ∈ X } \{v\in V\mid f(v)=2\}\subseteq\{a\}\cup\{v_x\mid x\in X\} { v ∈ V ∣ f ( v ) = 2 } ⊆ { a } ∪ { v x ∣ x ∈ X } and that W ∩ f − 1 ( 2 ) = ∅ W\cap f^{-1}(2)=\varnothing W ∩ f − 1 ( 2 ) = ∅ .
(B) Without loss of generality, if there exist vertices u , v , w ∈ V u,v,w\in V u , v , w ∈ V with N [ u ] ∪ N [ w ] ⊆ N [ v ] N[u]\cup N[w]\subseteq N[v] N [ u ] ∪ N [ w ] ⊆ N [ v ] and f ( u ) + f ( v ) + f ( w ) ≥ 2 f(u)+f(v)+f(w)\ge2 f ( u ) + f ( v ) + f ( w ) ≥ 2 , then f ( u ) = f ( w ) = 0 f(u)=f(w)=0 f ( u ) = f ( w ) = 0 and f ( v ) = 2 f(v)=2 f ( v ) = 2 . Namely, let u , v , w ∈ V u,v,w\in V u , v , w ∈ V with N [ u ] ∪ N [ w ] ⊆ N [ v ] N[u]\cup N[w]\subseteq N[v] N [ u ] ∪ N [ w ] ⊆ N [ v ] and f ( u ) + f ( v ) + f ( w ) ≥ 2 f(u)+f(v)+f(w)\ge2 f ( u ) + f ( v ) + f ( w ) ≥ 2 . Assume that f ( v ) ≠ 2 f(v)\ne2 f ( v ) = 2 . If f ( v ) = 1 f(v)=1 f ( v ) = 1 , then f ( u ) + f ( v ) + f ( w ) ≥ 2 f(u)+f(v)+f(w)\ge2 f ( u ) + f ( v ) + f ( w ) ≥ 2 brings us back to the proof of Case (A). Hence, we assume f ( u ) = f ( w ) = 1 f(u)=f(w)=1 f ( u ) = f ( w ) = 1 and f ( v ) = 0 f(v)=0 f ( v ) = 0 . Define h : V → { 0 , 1 , 2 } h:V\to\{0,1,2\} h : V → { 0 , 1 , 2 } with
v ↦ { f ( x ) , if x ∉ { u , v , w } , 0 , if x ∈ { u , w } , 2 , if x = v . v\mapsto
\begin{cases}
f(x), & \text{if }x\notin\{u,v,w\},\\
0, & \text{if }x\in\{u,w\},\\
2, & \text{if }x=v.
\end{cases} v ↦ ⎩ ⎨ ⎧ f ( x ) , 0 , 2 , if x ∈ / { u , v , w } , if x ∈ { u , w } , if x = v .
N [ u ] ∪ N [ w ] N[u]\cup N[w] N [ u ] ∪ N [ w ] is dominated (with respect to h h h ) by v v v . The other vertices are dominated as with the Roman dominating function f f f . Moreover, ∑ v ∈ V h ( v ) ≤ ∑ v ∈ V f ( v ) \sum_{v\in V}h(v)\le\sum_{v\in V}f(v) ∑ v ∈ V h ( v ) ≤ ∑ v ∈ V f ( v ) . Thus, we can assume that f ( a ) = 2 f(a)=2 f ( a ) = 2 and that f ( x ) = 0 f(x)=0 f ( x ) = 0 for x ∈ { b , c } ∪ { w i , u i ∣ i ∈ I : τ − 1 ( i ) = ∅ } x\in\{b,c\}\cup\{w_i,u_i\mid i\in I:\tau^{-1}(i)=\varnothing\} x ∈ { b , c } ∪ { w i , u i ∣ i ∈ I : τ − 1 ( i ) = ∅ } . For each w i ∈ W w_i\in W w i ∈ W with f ( w i ) = 1 f(w_i)=1 f ( w i ) = 1 , τ − 1 ( i ) ≠ ∅ \tau^{-1}(i)\ne\varnothing τ − 1 ( i ) = ∅ .
Now, we define a Roman hitting function on H H H and τ \tau τ based on f f f . Define g : X → { 0 , 1 , 2 } g:X\to\{0,1,2\} g : X → { 0 , 1 , 2 } with g ( x ) = 2 g(x)=2 g ( x ) = 2 if f ( v x ) = 2 f(v_x)=2 f ( v x ) = 2 , g ( x ) = 1 g(x)=1 g ( x ) = 1 defined for x ∈ τ − 1 ( i ) x\in\tau^{-1}(i) x ∈ τ − 1 ( i ) if there is some w i ∈ W w_i\in W w i ∈ W with f ( w i ) = 1 f(w_i)=1 f ( w i ) = 1 , and g ( x ) = 0 g(x)=0 g ( x ) = 0 , otherwise. Consider i ∈ I i\in I i ∈ I with no x ∈ X x\in X x ∈ X such that g ( x ) = 1 g(x)=1 g ( x ) = 1 and τ ( x ) = i \tau(x)=i τ ( x ) = i hold. Thus, f ( w i ) = 0 f(w_i)=0 f ( w i ) = 0 and there exists a v x ∈ V ( X ) ∩ N ( w i ) v_x\in V(X)\cap N(w_i) v x ∈ V ( X ) ∩ N ( w i ) with f ( v x ) = 2 f(v_x)=2 f ( v x ) = 2 . Hence, there exists an x ∈ s i x\in s_i x ∈ s i with g ( x ) = 2 g(x)=2 g ( x ) = 2 . Therefore, g g g is a Roman hitting function. Furthermore,
∑ x ∈ X g ( x ) = ∑ x ∈ X : f ( v x ) = 2 g ( x ) + ∑ x ∈ X : τ ( x ) = i , f ( w i ) = 1 g ( x ) = ∑ v ∈ V f ( v ) − 2 ⏟ = f ( a ) ≤ k . \sum_{x\in X}g(x)=\sum_{\substack{x\in X:f(v_x)=2}}g(x)+\sum_{\substack{x\in X:\tau(x)=i,\\ f(w_i)=1}}g(x)=\sum_{v\in V}f(v)-\underbrace{2}_{=f(a)}\le k. x ∈ X ∑ g ( x ) = x ∈ X : f ( v x ) = 2 ∑ g ( x ) + x ∈ X : τ ( x ) = i , f ( w i ) = 1 ∑ g ( x ) = v ∈ V ∑ f ( v ) − = f ( a ) 2 ≤ k .
This concludes the description of the working of our polynomial-time many-one reduction and serves to prove both membership in NP and membership in W[2 ] .
The fact that Roman Domination is NP-complete even on split graphs was mentioned repeatedly in the literature, for instance, in [19 , 40 ] , but to the best of our knowledge, no proof of this fact has been published. We will provide a strengthened assertion in the following. Recall that two vertices u u u , v v v in a graph are called true twins if N [ u ] = N [ v ] N[u] = N[v] N [ u ] = N [ v ] .
Lemma 1. Roman Domination is NP-complete even on true-twin-free split graphs. Likewise, k k k -Roman Domination is W[2 ] -complete on true-twin-free split graphs.
Proof. The construction provided in Theorem 2 shows how to construct a graph G G G as an instance of Roman Domination, given an instance of Roman Hitting Function. It is not hard to observe that this graph G G G is indeed a split graph as (in the notation of the proof of Theorem 2) V ( X ) ∪ { a } V(X) \cup\{a\} V ( X ) ∪ { a } is a clique, while { b , c } ∪ W ∪ U \{b,c\} \cup W \cup U { b , c } ∪ W ∪ U is an independent set. Hence, any true twins must belong to V ( X ) ∪ { a } V(X) \cup\{a\} V ( X ) ∪ { a } . As argued in the proof of Theorem 2, g ( a ) = 2 g(a) = 2 g ( a ) = 2 is enforced by b , c ∈ N ( a ) b,c \in N(a) b , c ∈ N ( a ) . This ensures g ( v x ) ≠ 1 g(v_x) \ne1 g ( v x ) = 1 as Theorem 1 (non-interference of 1- and 2-vertices), would imply the existence of a smaller Roman hitting function. As b , c ∉ N ( V ( X ) ) b,c \notin N(V(X)) b , c ∈ / N ( V ( X )) , there is no x ∈ V ( X ) x \in V(X) x ∈ V ( X ) with N [ x ] = N [ a ] N[x] = N[a] N [ x ] = N [ a ] , i.e., true twins must be in V ( X ) V(X) V ( X ) . Hence, the true-twin relation partitions V ( X ) V(X) V ( X ) into equivalence classes. From each class C ⊆ V ( X ) C \subseteq V(X) C ⊆ V ( X ) , choose one representative v C v_C v C and let V ′ ( X ) ⊆ V ( X ) V'(X) \subseteq V(X) V ′ ( X ) ⊆ V ( X ) be the set of all representatives. Let G ′ = G [ V ′ ( X ) ∪ { a , b , c } ∪ W ∪ U ] G' = G[V'(X) \cup\{a,b,c\} \cup W \cup U] G ′ = G [ V ′ ( X ) ∪ { a , b , c } ∪ W ∪ U ] . The graph G ′ G' G ′ is a twin-free split graph that possesses a Roman dominating function of weight at most k k k if and only if the graph G G G does.
The hardness part of the proof of Theorem 2 (implicitly) uses the fact that the family of hyperedges could include a hyperedge multiple times as there could be twins (vertices with the same closed neighborhoods) in the original graph. Consider a complete graph K n = ( [ n ] , E n ) K_n = ([n], E_n) K n = ([ n ] , E n ) with n ≥ 2 n \ge2 n ≥ 2 vertices. Since the closed neighborhoods are always equal to [ n ] [n] [ n ] , if we would use a normal set for the hyperedges instead of a family of hyperedges, then the best solution would be χ { v } \chi_{\{v\}} χ { v } for any vertex v v v . This would even not be a Roman dominating function. Namely, minimal Roman dominating function would be of the form 2 ⋅ χ { v } 2 \cdot\chi_{\{v\}} 2 ⋅ χ { v } for any vertex v v v , or they would be constant 1. Nevertheless, the following holds, revisiting Lemma 1.
Corollary 1. Roman Hitting Function is NP-complete even on simple hypergraphs. Furthermore, k k k -Roman Hitting Function is W[2 ] -complete.
The NP-completeness of the optimization problem also motivates our analysis of the extension problem; it could help speed up an exact branching algorithm for solving this decision problem. Let us think about Roman Hitting Function as a minimization problem for some moments. We mentioned already that Minimum RD can be approximated up to a logarithmic factor. The idea of the proof of [46 ] can be easily adapted to Roman Hitting Function and gives us the next result, which we also combine with supplementing hardness results.
Theorem 3. There is a polynomial-time algorithm that, given an instance ( H = ( X , ( s i ) i ∈ I ) , τ ) (H = (X, (s_i)_{i\in I}), \tau) ( H = ( X , ( s i ) i ∈ I ) , τ ) of Minimum RHF, outputs a Roman hitting function f : X → { 0 , 1 , 2 } f : X \to\{0, 1, 2\} f : X → { 0 , 1 , 2 } such that ω ( f ) ≤ 2 ⋅ ( ln ( ∣ I ∣ ) + 1 ) ⋅ opt ( H ) \omega(f) \le2 \cdot(\ln(|I|) + 1) \cdot\operatorname{opt}(H) ω ( f ) ≤ 2 ⋅ ( ln ( ∣ I ∣ ) + 1 ) ⋅ opt ( H ) . Moreover, unless P = N P \mathrm{P} = \mathrm{NP} P = NP , there is no polynomial-time algorithm that achieves an approximation ratio better than 1 2 ( ln ( ∣ I ∣ ) − o ( 1 ) ) ⋅ opt ( H ) \frac{1}{2}(\ln(|I|) - o(1)) \cdot\operatorname{opt}(H) 2 1 ( ln ( ∣ I ∣ ) − o ( 1 )) ⋅ opt ( H ) .
Proof. The claimed algorithm would run the well-known greedy algorithm for Hitting Set (or Set Cover in the dual interpretation; see [18 ] ) on the underlying simple hypergraph and will get a collection C ⊆ X C \subseteq X C ⊆ X that covers S = { s i ∣ i ∈ I } S = \{s_i \mid i \in I\} S = { s i ∣ i ∈ I } . Compared to the optimum cover C ∗ C^* C ∗ , Chvátal [18 ] proved that ∣ C ∣ ≤ ( ln ( ∣ S ∣ ) + 1 ) ⋅ ∣ C ∗ ∣ |C| \le(\ln(|S|) + 1) \cdot|C^*| ∣ C ∣ ≤ ( ln ( ∣ S ∣ ) + 1 ) ⋅ ∣ C ∗ ∣ . Clearly, f : = χ C f := \chi_C f := χ C is a valid Roman hitting function with ω ( f ) = 2 ∣ C ∣ \omega(f) = 2|C| ω ( f ) = 2∣ C ∣ . Conversely, let f ∗ f^* f ∗ be an optimum Roman hitting function solution, i.e., ω ( f ∗ ) = opt ( H ) \omega(f^*) = \operatorname{opt}(H) ω ( f ∗ ) = opt ( H ) . We can obtain a valid solution to the interpretation of H H H as a Hitting Set instance by defining C f ∗ = ( f ∗ ) − 1 ( 1 ) ∪ ( f ∗ ) − 1 ( 2 ) C_{f^*} = (f^*)^{-1}(1) \cup(f^*)^{-1}(2) C f ∗ = ( f ∗ ) − 1 ( 1 ) ∪ ( f ∗ ) − 1 ( 2 ) . Clearly, ∣ C ∗ ∣ ≤ ∣ C f ∗ ∣ ≤ ω ( f ∗ ) ≤ 2 ⋅ ∣ C f ∗ ∣ |C^*| \le|C_{f^*}| \le\omega(f^*) \le2 \cdot|C_{f^*}| ∣ C ∗ ∣ ≤ ∣ C f ∗ ∣ ≤ ω ( f ∗ ) ≤ 2 ⋅ ∣ C f ∗ ∣ . Putting the derived inequalities together and finally observing ∣ S ∣ ≤ ∣ I ∣ |S| \le|I| ∣ S ∣ ≤ ∣ I ∣ gives the claim on the approximation factor of the described greedy algorithm:
ω ( f ) = 2 ∣ C ∣ ≤ 2 ⋅ ( ln ( ∣ S ∣ ) + 1 ) ⋅ ∣ C ∗ ∣ ≤ 2 ⋅ ( ln ( ∣ I ∣ ) + 1 ) ⋅ ω ( f ∗ ) . \omega(f) = 2|C| \le2 \cdot(\ln(|S|) + 1) \cdot|C^*| \le2 \cdot(\ln(|I|) + 1) \cdot\omega(f^*). ω ( f ) = 2∣ C ∣ ≤ 2 ⋅ ( ln ( ∣ S ∣ ) + 1 ) ⋅ ∣ C ∗ ∣ ≤ 2 ⋅ ( ln ( ∣ I ∣ ) + 1 ) ⋅ ω ( f ∗ ) .
Now, consider some polynomial-time approximation algorithm A A A for Minimum RHF that achieves an approximation ratio of r ( ∣ I ∣ ) r(|I|) r ( ∣ I ∣ ) , given an instance with index set I I I . Let H = ( X , S ) H = (X, S) H = ( X , S ) be a simple hypergraph, as an instance of Minimum HS with an optimum hitting set C ∗ ⊆ X C^* \subseteq X C ∗ ⊆ X . We interpret this as an instance of Minimum RHF and run A A A on it, getting some solution f : X → { 0 , 1 , 2 } f : X \to\{0, 1, 2\} f : X → { 0 , 1 , 2 } . Compared to an optimum solution f ∗ f^* f ∗ for this Minimum RHF instance, we know that ω ( f ) ≤ r ( ∣ S ∣ ) ⋅ ω ( f ∗ ) \omega(f) \le r(|S|) \cdot\omega(f^*) ω ( f ) ≤ r ( ∣ S ∣ ) ⋅ ω ( f ∗ ) . Let C f = f − 1 ( 1 ) ∪ f − 1 ( 2 ) C_f = f^{-1}(1) \cup f^{-1}(2) C f = f − 1 ( 1 ) ∪ f − 1 ( 2 ) , similar as above. Again, ∣ C f ∣ ≤ ω ( f ) ≤ 2 ⋅ ∣ C f ∣ |C_f| \le\omega(f) \le2 \cdot|C_f| ∣ C f ∣ ≤ ω ( f ) ≤ 2 ⋅ ∣ C f ∣ . If C R C_R C R achieves an approximation ratio better than ( ln ( ∣ S ∣ ) − o ( 1 ) ) ⋅ ∣ C ∗ ∣ (\ln(|S|) - o(1)) \cdot|C^*| ( ln ( ∣ S ∣ ) − o ( 1 )) ⋅ ∣ C ∗ ∣ , then P = N P \mathrm{P} = \mathrm{NP} P = NP by the famous results of Dinur and Steuer [22 ] . But this would be the case if r ( ∣ S ∣ ) ≤ 1 2 ( ln ( ∣ S ∣ ) − o ( 1 ) ) r(|S|) \le\frac{1}{2}(\ln(|S|) - o(1)) r ( ∣ S ∣ ) ≤ 2 1 ( ln ( ∣ S ∣ ) − o ( 1 )) , because then we find:
∣ C f ∣ ≤ r ( ∣ S ∣ ) ⋅ ω ( f ∗ ) ≤ r ( ∣ S ∣ ) ⋅ ω ( χ C ∗ ) ≤ r ( ∣ S ∣ ) ⋅ 2 ∣ C ∗ ∣ ≤ ( ln ( ∣ S ∣ ) − o ( 1 ) ) ⋅ ∣ C ∗ ∣ . |C_f| \le r(|S|) \cdot\omega(f^*) \le r(|S|) \cdot\omega(\chi_{C^*}) \le r(|S|) \cdot2|C^*| \le(\ln(|S|) - o(1)) \cdot|C^*|. ∣ C f ∣ ≤ r ( ∣ S ∣ ) ⋅ ω ( f ∗ ) ≤ r ( ∣ S ∣ ) ⋅ ω ( χ C ∗ ) ≤ r ( ∣ S ∣ ) ⋅ 2∣ C ∗ ∣ ≤ ( ln ( ∣ S ∣ ) − o ( 1 )) ⋅ ∣ C ∗ ∣.
because we could interpret again the Minimum HS solution C ∗ C^* C ∗ as a solution χ C ∗ \chi_{C^*} χ C ∗ of weight 2 ∣ C ∗ ∣ 2|C^*| 2∣ C ∗ ∣ that is clearly not better than an optimum Minimum RHF solution f ∗ f^* f ∗ .
There is clearly a small gap between lower and upper bound in the previous theorem, but there is also a gap in the corresponding (in)approximability result concerning Minimum Roman Domination [46 ] that is simply not made explicit. However, our reasoning, together with the reductions given at the beginning of this section, prove that also in that case, we still have a multiplicative gap of four.
Together with the construction given in Lemma 1, we can deduce the same inapproximability result for Minimum RD on true-twin-free split graphs, hence sharpening previously published results of this type.
Combinatorial Properties of Minimal Roman Hitting Functions
In this section, we will prove combinatorial properties of minimal Roman hitting functions. This will help us analyze the complexity of Extension Roman Hitting Function.
Theorem 4. Let X X X be a vertex set, S ^ = ( s i ) i ∈ I \hat{S}=(s_i)_{i\in I} S ^ = ( s i ) i ∈ I be a hyperedge family and τ : X → I \tau:X\to I τ : X → I be a correspondence. Then, a function f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } is a minimal Roman hitting function if and only if the following constraint items hold:
∀ x , y ∈ f − 1 ( 1 ) : x ≠ y ⇒ τ ( x ) ≠ τ ( y ) \forall x,y\in f^{-1}(1): x\ne y\Rightarrow\tau(x)\ne\tau(y) ∀ x , y ∈ f − 1 ( 1 ) : x = y ⇒ τ ( x ) = τ ( y ) (τ \tau τ -injectivity on 1-vertices),
∀ x ∈ f − 1 ( 1 ) : s τ ( x ) ∩ f − 1 ( 2 ) = ∅ \forall x\in f^{-1}(1): s_{\tau(x)}\cap f^{-1}(2)=\varnothing ∀ x ∈ f − 1 ( 1 ) : s τ ( x ) ∩ f − 1 ( 2 ) = ∅ (non-interference of 1- and 2-vertices),
∀ x ∈ f − 1 ( 2 ) ∃ i ∈ I ∖ { τ ( x ) } : s i ∩ f − 1 ( 2 ) = { x } \forall x\in f^{-1}(2)\ \exists i\in I\setminus\{\tau(x)\}: s_i\cap f^{-1}(2)=\{x\} ∀ x ∈ f − 1 ( 2 ) ∃ i ∈ I ∖ { τ ( x )} : s i ∩ f − 1 ( 2 ) = { x } (privacy condition), and
f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is a minimal hitting set on S ′ : = { s i ∈ S ∣ i ∈ I , τ − 1 ( i ) ∩ f − 1 ( 1 ) = ∅ } S' := \{s_i\in S\mid i\in I,\tau^{-1}(i)\cap f^{-1}(1)=\varnothing\} S ′ := { s i ∈ S ∣ i ∈ I , τ − 1 ( i ) ∩ f − 1 ( 1 ) = ∅ } (minimality of 2-vertices).
The reader is encouraged to compare Constraints 1, 2, 3 with the corresponding items of Theorem 1. This also explains why we start out with item 0 here. These formal similarities are no coincidence; see Remark 1.
Proof. Let us first prove the implication from left to right. Let f f f be a minimal Roman hitting function on X X X , S ^ \hat{S} S ^ and τ \tau τ . We first show Constraint 0. Assume there are x , y ∈ f − 1 ( 1 ) x,y\in f^{-1}(1) x , y ∈ f − 1 ( 1 ) with x ≠ y x\ne y x = y but τ ( x ) = τ ( y ) = i \tau(x)=\tau(y)=i τ ( x ) = τ ( y ) = i . Define f ~ = f − χ { y } \tilde{f}=f-\chi_{\{y\}} f ~ = f − χ { y } . Trivially, f ~ ≤ f \tilde{f}\le f f ~ ≤ f and f ~ ≠ f \tilde{f}\ne f f ~ = f . Since f − 1 ( 2 ) = f ~ − 1 ( 2 ) f^{-1}(2)=\tilde{f}^{-1}(2) f − 1 ( 2 ) = f ~ − 1 ( 2 ) and τ ( f ~ − 1 ( 1 ) ) = τ ( f − 1 ( 1 ) ∖ { y } ) = τ ( f − 1 ( 1 ) ) \tau(\tilde{f}^{-1}(1))=\tau(f^{-1}(1)\setminus\{y\})=\tau(f^{-1}(1)) τ ( f ~ − 1 ( 1 )) = τ ( f − 1 ( 1 ) ∖ { y }) = τ ( f − 1 ( 1 )) hold, f ~ \tilde{f} f ~ is a Roman hitting function. Thus, f f f is not minimal, which is a contradiction.
Next, we show Constraint 1. Assume there exists an x ∈ f − 1 ( 1 ) x\in f^{-1}(1) x ∈ f − 1 ( 1 ) with s τ ( x ) ∩ f − 1 ( 2 ) ≠ ∅ s_{\tau(x)}\cap f^{-1}(2)\ne\varnothing s τ ( x ) ∩ f − 1 ( 2 ) = ∅ . Define f ~ = f − χ { x } \tilde{f}=f-\chi_{\{x\}} f ~ = f − χ { x } . Trivially, f ~ ≤ f \tilde{f}\le f f ~ ≤ f , f ≠ f ~ f\ne\tilde{f} f = f ~ and f − 1 ( 2 ) = f ~ − 1 ( 2 ) f^{-1}(2)=\tilde{f}^{-1}(2) f − 1 ( 2 ) = f ~ − 1 ( 2 ) . Hence, s τ ( x ) ∈ S ( f − 1 ( 2 ) ) s_{\tau(x)}\in S(f^{-1}(2)) s τ ( x ) ∈ S ( f − 1 ( 2 )) . For i ∈ I ∖ { τ ( x ) } i\in I\setminus\{\tau(x)\} i ∈ I ∖ { τ ( x )} , s i s_i s i is hit by f ~ \tilde{f} f ~ in the same way as by f f f , so that f ~ \tilde{f} f ~ is a Roman hitting function. This contradicts the minimality of f f f .
Finally, we prove Constraint 3. Assume f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is not a minimal hs on S ′ S' S ′ . If there is an s ∈ S ′ s\in S' s ∈ S ′ that is not hit by f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) , then f f f is no Roman hitting function, contradicting our assumption. Hence, we can assume f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is not minimal. More explicitly, we assume there is an x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) such that for each i ∈ I ∖ { τ ( x ) } i\in I\setminus\{\tau(x)\} i ∈ I ∖ { τ ( x )} , s i ∩ f − 1 ( 2 ) ≠ { x } s_i\cap f^{-1}(2)\ne\{x\} s i ∩ f − 1 ( 2 ) = { x } . (Notice that this assumption is the negation of Constraint 2 that we hence also prove in this argument.) Then there is an x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) such that, for each s ∈ S ′ ( x ) ∖ { τ ( x ) } s\in S'(x)\setminus\{\tau(x)\} s ∈ S ′ ( x ) ∖ { τ ( x )} , there exists a y ∈ ( f − 1 ( 2 ) ∖ { x } ) ∩ s y\in(f^{-1}(2)\setminus\{x\})\cap s y ∈ ( f − 1 ( 2 ) ∖ { x }) ∩ s . Define f ~ = f − χ { x } \tilde{f}=f-\chi_{\{x\}} f ~ = f − χ { x } . Let i ∈ I i\in I i ∈ I . As τ ( f − 1 ( 1 ) ) ∪ { τ ( x ) } = τ ( f ~ − 1 ( 1 ) ) \tau(f^{-1}(1))\cup\{\tau(x)\}=\tau(\tilde{f}^{-1}(1)) τ ( f − 1 ( 1 )) ∪ { τ ( x )} = τ ( f ~ − 1 ( 1 )) holds by definition, we only need to consider i ∈ I ∖ ( τ ( f − 1 ( 1 ) ) ∪ τ ( x ) ) i\in I\setminus(\tau(f^{-1}(1))\cup\tau(x)) i ∈ I ∖ ( τ ( f − 1 ( 1 )) ∪ τ ( x )) . For i i i with s i ∈ S ( f − 1 ( 2 ) ) ∖ S ( x ) s_i\in S(f^{-1}(2))\setminus S(x) s i ∈ S ( f − 1 ( 2 )) ∖ S ( x ) , trivially s i ∩ f ~ − 1 ( 2 ) ≠ ∅ s_i\cap\tilde{f}^{-1}(2)\ne\varnothing s i ∩ f ~ − 1 ( 2 ) = ∅ . If s i ∈ S ( x ) ∖ { τ ( x ) } s_i\in S(x)\setminus\{\tau(x)\} s i ∈ S ( x ) ∖ { τ ( x )} , as we mentioned before, there is a y ∈ ( f − 1 ( 2 ) ∖ { x } ) ∩ s i = f ~ − 1 ( 2 ) ∩ s i y\in(f^{-1}(2)\setminus\{x\})\cap s_i=\tilde{f}^{-1}(2)\cap s_i y ∈ ( f − 1 ( 2 ) ∖ { x }) ∩ s i = f ~ − 1 ( 2 ) ∩ s i . Thus, f ~ \tilde{f} f ~ is a Roman hitting function and f f f is not minimal, contradicting our assumption. Hence, the four conditions hold.
For the if-part, assume f f f fulfills the constraints. By Constraint 3, we know for all i ∈ I i\in I i ∈ I , either s i ∩ f − 1 ( 2 ) ≠ ∅ s_i\cap f^{-1}(2)\ne\varnothing s i ∩ f − 1 ( 2 ) = ∅ , or there is an x ∈ f − 1 ( 1 ) x\in f^{-1}(1) x ∈ f − 1 ( 1 ) with τ ( x ) = i \tau(x)=i τ ( x ) = i . Hence, f f f is a Roman hitting function. We now prove minimality of f f f . Let g : X → { 0 , 1 , 2 } g:X\to\{0,1,2\} g : X → { 0 , 1 , 2 } be a minimal Roman hitting function with g ≤ f g\le f g ≤ f . Thus, g − 1 ( 2 ) ⊆ f − 1 ( 2 ) g^{-1}(2)\subseteq f^{-1}(2) g − 1 ( 2 ) ⊆ f − 1 ( 2 ) and S ( g − 1 ( 2 ) ) ⊆ S ( f − 1 ( 2 ) ) S(g^{-1}(2))\subseteq S(f^{-1}(2)) S ( g − 1 ( 2 )) ⊆ S ( f − 1 ( 2 )) hold. Furthermore, g − 1 ( 1 ) ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) g^{-1}(1)\subseteq f^{-1}(1)\cup f^{-1}(2) g − 1 ( 1 ) ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) . Since for each x ∈ X x\in X x ∈ X , { s τ ( x ) } ⊆ S ( x ) \{s_{\tau(x)}\}\subseteq S(x) { s τ ( x ) } ⊆ S ( x ) , for each i ∈ τ ( g − 1 ( 1 ) ) i\in\tau(g^{-1}(1)) i ∈ τ ( g − 1 ( 1 )) , i ∈ τ ( f − 1 ( 1 ) ) i\in\tau(f^{-1}(1)) i ∈ τ ( f − 1 ( 1 )) or s i ∈ S ( f − 1 ( 2 ) ) s_i\in S(f^{-1}(2)) s i ∈ S ( f − 1 ( 2 )) . For the sake of contradiction, let x ∈ X x\in X x ∈ X be an element with g ( x ) < f ( x ) g(x)<f(x) g ( x ) < f ( x ) . Case 1: g ( x ) = 0 < 2 = f ( x ) g(x)=0<2=f(x) g ( x ) = 0 < 2 = f ( x ) . This implies that, for each i ∈ I ( x ) i\in I(x) i ∈ I ( x ) , there exists a y ∈ s i y\in s_i y ∈ s i with 2 = g ( y ) ≤ f ( y ) = 2 2=g(y)\le f(y)=2 2 = g ( y ) ≤ f ( y ) = 2 or y ∈ τ − 1 ( i ) ∩ g − 1 ( 1 ) ⊂ τ − 1 ( i ) ∩ ( f − 1 ( 1 ) ∪ f − 1 ( 2 ) ) y\in\tau^{-1}(i)\cap g^{-1}(1)\subset\tau^{-1}(i)\cap(f^{-1}(1)\cup f^{-1}(2)) y ∈ τ − 1 ( i ) ∩ g − 1 ( 1 ) ⊂ τ − 1 ( i ) ∩ ( f − 1 ( 1 ) ∪ f − 1 ( 2 )) . This either contradicts Constraint 1 or Constraint 2.
Case 2: g ( x ) = 1 < 2 = f ( x ) g(x)=1<2=f(x) g ( x ) = 1 < 2 = f ( x ) . This case works analogously, somehow simpler. We only need to exclude i = τ ( x ) i=\tau(x) i = τ ( x ) .
Case 3: f ( x ) = 1 f(x)=1 f ( x ) = 1 . This implies g ( x ) = 0 g(x)=0 g ( x ) = 0 . Since g g g is a Roman hitting function, either s τ ( x ) ∩ g − 1 ( 2 ) s_{\tau(x)}\cap g^{-1}(2) s τ ( x ) ∩ g − 1 ( 2 ) is not empty or there exists a y ∈ g − 1 ( 1 ) y\in g^{-1}(1) y ∈ g − 1 ( 1 ) with τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) .
Case 3.1: τ ( x ) ∩ g − 1 ( 2 ) ≠ ∅ \tau(x)\cap g^{-1}(2)\ne\varnothing τ ( x ) ∩ g − 1 ( 2 ) = ∅ . As g − 1 ( 2 ) ⊆ f − 1 ( 2 ) g^{-1}(2)\subseteq f^{-1}(2) g − 1 ( 2 ) ⊆ f − 1 ( 2 ) , this contradicts Constraint 1.
Case 3.2: There is a y ∈ g − 1 ( 1 ) y\in g^{-1}(1) y ∈ g − 1 ( 1 ) with τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) . Thus, either there is a y ∈ f − 1 ( 1 ) ∖ { x } y\in f^{-1}(1)\setminus\{x\} y ∈ f − 1 ( 1 ) ∖ { x } such that τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) (this contradicts Constraint 0) or f ( y ) = 2 f(y)=2 f ( y ) = 2 (this contradicts Constraint 1).
Thus, g = f g=f g = f holds. Therefore, f f f is minimal.
Remark 1. Now we will compare Theorem 4 with Theorem 1. Let G = ( V , E ) G=(V,E) G = ( V , E ) be a graph and let G n b = ( V , ( N [ v ] ) v ∈ V ) G_{nb}=(V,(N[v])_{v\in V}) G nb = ( V , ( N [ v ] ) v ∈ V ) be the closed-neighborhood hypergraph. The function τ : V → V \tau:V\to V τ : V → V is the identity function. Let f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } .
As τ \tau τ is bijective, Constraint 0 holds for all f f f . We will show next that f f f fulfills Constraint 1 of Theorem 4 if and only if f f f fulfills Constraint 1 of Theorem 1. Assume there is a v ∈ f − 1 ( 1 ) v\in f^{-1}(1) v ∈ f − 1 ( 1 ) with N [ v ] ∩ f − 1 ( 2 ) ≠ ∅ N[v]\cap f^{-1}(2)\ne\varnothing N [ v ] ∩ f − 1 ( 2 ) = ∅ . Thus N [ f − 1 ( 2 ) ] ∩ { v } ⊆ N [ f − 1 ( 2 ) ] ∩ f − 1 ( 1 ) N[f^{-1}(2)]\cap\{v\}\subseteq N[f^{-1}(2)]\cap f^{-1}(1) N [ f − 1 ( 2 )] ∩ { v } ⊆ N [ f − 1 ( 2 )] ∩ f − 1 ( 1 ) is not empty. This contradicts Constraint 1 of Theorem 1. Conversely, the existence of an element v ∈ N [ f − 1 ( 2 ) ] ∩ f − 1 ( 1 ) v\in N[f^{-1}(2)]\cap f^{-1}(1) v ∈ N [ f − 1 ( 2 )] ∩ f − 1 ( 1 ) would imply that there is a w ∈ f − 1 ( 2 ) ∩ N [ v ] w\in f^{-1}(2)\cap N[v] w ∈ f − 1 ( 2 ) ∩ N [ v ] . This contradicts Constraint 1 in Theorem 4.
For each v ∈ f − 1 ( 2 ) v\in f^{-1}(2) v ∈ f − 1 ( 2 ) , there is a u ∈ V ∖ { v } u\in V\setminus\{v\} u ∈ V ∖ { v } with N [ u ] ∩ f − 1 ( 2 ) = { v } N[u]\cap f^{-1}(2)=\{v\} N [ u ] ∩ f − 1 ( 2 ) = { v } if and only if each vertex in f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) has a private neighbor that is not itself. We can reformulate the set occurring in the last Constraint of Theorem 4 to { N [ v ] ∣ v ∈ V , τ − 1 ( v ) ∩ f − 1 ( 1 ) = ∅ } = { N [ v ] ∣ v ∈ V , v ∉ f − 1 ( 1 ) } \{N[v]\mid v\in V,\tau^{-1}(v)\cap f^{-1}(1)=\varnothing\}=\{N[v]\mid v\in V,v\notin f^{-1}(1)\} { N [ v ] ∣ v ∈ V , τ − 1 ( v ) ∩ f − 1 ( 1 ) = ∅ } = { N [ v ] ∣ v ∈ V , v ∈ / f − 1 ( 1 )} . This is the set of hyperedges of ( f − 1 ( { 0 , 2 } ) , ( N [ v ] ) v ∈ V ∖ f − 1 ( 1 ) ) (f^{-1}(\{0,2\}),(N[v])_{v\in V\setminus f^{-1}(1)}) ( f − 1 ({ 0 , 2 }) , ( N [ v ] ) v ∈ V ∖ f − 1 ( 1 ) ) .
f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is a minimal hs of this hypergraph if and only if it is a minimal hs of ( ( f − 1 ( { 0 , 2 } ) , ( N [ v ] ∖ f − 1 ( 1 ) ) v ∈ V ∖ f − 1 ( 1 ) ) ((f^{-1}(\{0,2\}),(N[v]\setminus f^{-1}(1))_{v\in V\setminus f^{-1}(1)}) (( f − 1 ({ 0 , 2 }) , ( N [ v ] ∖ f − 1 ( 1 ) ) v ∈ V ∖ f − 1 ( 1 ) ) , which is the closed-neighborhood hypergraph of G ′ = G [ f − 1 ( { 0 , 2 } ) ] G'=G[f^{-1}(\{0,2\})] G ′ = G [ f − 1 ({ 0 , 2 })] . Therefore, the last Constraint of Theorem 1 is equivalent to the last Constraint of Theorem 4 in this case.
We call a f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } extensible on the hypergraph H = ( X , S ^ ) H=(X,\hat{S}) H = ( X , S ^ ) with correspondence τ \tau τ if there is a minimal Roman hitting function g g g with f ≤ g f\leq g f ≤ g . The following two results are implied by Theorem 4.
Lemma 2. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\hat{S}=(s_i)_{i\in I}) H = ( X , S ^ = ( s i ) i ∈ I ) be a hypergraph with correspondence τ \tau τ and f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a function with x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) , y ∈ f − 1 ( 1 ) y\in f^{-1}(1) y ∈ f − 1 ( 1 ) and x ∈ s τ ( y ) x\in s_{\tau(y)} x ∈ s τ ( y ) . Then, f f f is extensible if and only if f + χ { y } f+\chi_{\{y\}} f + χ { y } is extensible.
Proof. Since ≤ \leq ≤ on N X \mathbb{N}^{X} N X is transitive, if f + χ { y } f+\chi_{\{y\}} f + χ { y } is extensible, then so is f f f . For the other direction, we assume that there exists a minimal Roman hitting function g g g with f ≤ g f\leq g f ≤ g . Thus, g ( x ) = f ( x ) = 2 g(x)=f(x)=2 g ( x ) = f ( x ) = 2 and g ( y ) ∈ { 1 , 2 } g(y)\in\{1,2\} g ( y ) ∈ { 1 , 2 } for x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) , y ∈ f − 1 ( 1 ) y\in f^{-1}(1) y ∈ f − 1 ( 1 ) . By Constraint 1 of Theorem 4, y ∈ g − 1 ( 2 ) y\in g^{-1}(2) y ∈ g − 1 ( 2 ) , as x ∈ s τ ( y ) x\in s_{\tau(y)} x ∈ s τ ( y ) . For the remaining z ∈ X ∖ { y } z\in X\setminus\{y\} z ∈ X ∖ { y } , ( f + χ { y } ) ( z ) = f ( z ) ≤ g ( z ) (f+\chi_{\{y\}})(z)=f(z)\leq g(z) ( f + χ { y } ) ( z ) = f ( z ) ≤ g ( z ) holds. This implies f + χ { y } ≤ g f+\chi_{\{y\}}\leq g f + χ { y } ≤ g , so that f + χ { y } f+\chi_{\{y\}} f + χ { y } is extensible.
Lemma 3. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\hat{S}=(s_i)_{i\in I}) H = ( X , S ^ = ( s i ) i ∈ I ) be a hypergraph with correspondence τ \tau τ and f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a function with x , y ∈ f − 1 ( 1 ) x,y\in f^{-1}(1) x , y ∈ f − 1 ( 1 ) , x ≠ y x\ne y x = y and τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) . Then, f f f is extensible if and only if f + χ { x , y } f+\chi_{\{x,y\}} f + χ { x , y } is extensible.
Proof. Since ≤ \leq ≤ on N X \mathbb{N}^{X} N X is transitive, if f + χ { x , y } f+\chi_{\{x,y\}} f + χ { x , y } is extensible, then so is f f f . For the other direction, we assume that there exists a minimal Roman hitting function g g g with f ≤ g f\leq g f ≤ g . Thus, g ( x ) , g ( y ) ∈ { 1 , 2 } g(x),g(y)\in\{1,2\} g ( x ) , g ( y ) ∈ { 1 , 2 } . By Constraint 0 of Theorem 4, g ( x ) = 2 g(x)=2 g ( x ) = 2 or g ( y ) = 2 g(y)=2 g ( y ) = 2 . This implies that if f f f is extensible, then f + χ { x } f+\chi_{\{x\}} f + χ { x } or f + χ { y } f+\chi_{\{y\}} f + χ { y } is extensible. In both cases, we can use Lemma 2 and conclude that f + χ { x , y } f+\chi_{\{x,y\}} f + χ { x , y } is extensible if function f f f is extensible.
By use of Lemma 2 and Lemma 3, we obtain the following result.
Lemma 4. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\widehat{S}=(s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) be a hypergraph with correspondence τ \tau τ and f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a function. Then, there exists a function f ~ \widetilde{f} f for which the following conditions hold:
There are no two elements x , y ∈ X x,y\in X x , y ∈ X with f ( x ) = f ( y ) = 1 f(x)=f(y)=1 f ( x ) = f ( y ) = 1 such that τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) .
there are no two elements x , y ∈ X x,y\in X x , y ∈ X with f ( x ) = 2 f(x)=2 f ( x ) = 2 , f ( y ) = 1 f(y)=1 f ( y ) = 1 such that x ∈ s τ ( y ) x\in s_{\tau(y)} x ∈ s τ ( y ) .
f f f is extensible if and only if f ~ \widetilde{f} f is extensible.
This enables us to formulate a characterization theorem of extensibility that will become quite important later on.
Theorem 5. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\widehat{S}=(s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) be a hypergraph with correspondence τ \tau τ , τ : X → I \tau:X\to I τ : X → I . Let f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a function such that x ≠ y x\neq y x = y implies τ ( x ) ≠ τ ( y ) \tau(x)\neq\tau(y) τ ( x ) = τ ( y ) for each x , y ∈ f − 1 ( 1 ) x,y\in f^{-1}(1) x , y ∈ f − 1 ( 1 ) . Then, f f f is extensible if and only if there exist both a set R 2 R_2 R 2 with f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) f^{-1}(2)\subseteq R_2\subseteq f^{-1}(1)\cup f^{-1}(2) f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) and a mapping ρ : R 2 → I \rho:R_2\to I ρ : R 2 → I , satisfying the following constraints.
∀ x ∈ R 2 : ρ ( x ) ≠ τ ( x ) \forall x\in R_2:\ \rho(x)\neq\tau(x) ∀ x ∈ R 2 : ρ ( x ) = τ ( x ) .
∀ x ∈ R 2 : s ρ ( x ) ∩ R 2 = { x } \forall x\in R_2:\ s_{\rho(x)}\cap R_2=\{x\} ∀ x ∈ R 2 : s ρ ( x ) ∩ R 2 = { x } .
∀ x ∈ f − 1 ( 1 ) ∖ R 2 : s τ ( x ) ∩ R 2 = ∅ \forall x\in f^{-1}(1)\setminus R_2:\ s_{\tau(x)}\cap R_2=\varnothing ∀ x ∈ f − 1 ( 1 ) ∖ R 2 : s τ ( x ) ∩ R 2 = ∅ .
∀ i ∈ I \forall i\in I ∀ i ∈ I such that τ − 1 ( i ) = ∅ \tau^{-1}(i)=\varnothing τ − 1 ( i ) = ∅ : s i ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) ⟹ s i ∩ R 2 ≠ ∅ s_i\subseteq\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}s_{\tau(x)}\right)\cup\left(\bigcup_{x\in R_2}s_{\rho(x)}\right)\Longrightarrow s_i\cap R_2\neq\varnothing s i ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) ⟹ s i ∩ R 2 = ∅ .
The idea is that R 2 R_2 R 2 contains those vertices that are “lifted” from 1-vertices to 2-vertices as well as the 2-vertices (compared with f f f ) and that ρ \rho ρ then assures privacy for the “new” 2-vertices. Constraint 4 ensures that one can hit all the hyperedges without hitting the private ones.
Proof. Define I ′ : = { i ∈ I ∣ τ − 1 ( i ) = ∅ } I' := \{i\in I\mid\tau^{-1}(i)=\varnothing\} I ′ := { i ∈ I ∣ τ − 1 ( i ) = ∅ } . First, we assume that f f f is extensible. Let g : X → { 0 , 1 , 2 } g:X\to\{0,1,2\} g : X → { 0 , 1 , 2 } be a minimal Roman hitting function with f ≤ g f\leq g f ≤ g . By Constraint 3 of Theorem 4, g − 1 ( 2 ) g^{-1}(2) g − 1 ( 2 ) is a minimal hitting set on { s i ∈ S ∣ i ∈ I , τ − 1 ( i ) ∩ g − 1 ( 1 ) = ∅ } \{s_i\in S\mid i\in I,\tau^{-1}(i)\cap g^{-1}(1)=\varnothing\} { s i ∈ S ∣ i ∈ I , τ − 1 ( i ) ∩ g − 1 ( 1 ) = ∅ } (∗ * ∗ ). With Theorem 4, Constraint 2, this implies that, for each x ∈ g − 1 ( 2 ) x\in g^{-1}(2) x ∈ g − 1 ( 2 ) , there exists an index that we call ρ ( x ) ∈ I ∖ { τ ( x ) } \rho(x)\in I\setminus\{\tau(x)\} ρ ( x ) ∈ I ∖ { τ ( x )} such that s ρ ( x ) ∩ g − 1 ( 2 ) = { x } s_{\rho(x)}\cap g^{-1}(2)=\{x\} s ρ ( x ) ∩ g − 1 ( 2 ) = { x } . Define R 2 : = ( f − 1 ( 1 ) ∪ f − 1 ( 2 ) ) ∩ g − 1 ( 2 ) R_2 := (f^{-1}(1)\cup f^{-1}(2))\cap g^{-1}(2) R 2 := ( f − 1 ( 1 ) ∪ f − 1 ( 2 )) ∩ g − 1 ( 2 ) . Clearly, f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) f^{-1}(2)\subseteq R_2\subseteq f^{-1}(1)\cup f^{-1}(2) f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ( 1 ) ∪ f − 1 ( 2 ) . We can interpret the index function ρ \rho ρ as a mapping R 2 → I R_2\to I R 2 → I . We have to check the four constraints claimed for R 2 R_2 R 2 and for ρ \rho ρ . The first one is by construction of ρ \rho ρ . The second one is true in a slightly more general fashion by (∗ * ∗ ). Let us now look at the third constraint. If there would exist a y ∈ f − 1 ( 1 ) ∖ R 2 ⊆ g − 1 ( 1 ) y\in f^{-1}(1)\setminus R_2\subseteq g^{-1}(1) y ∈ f − 1 ( 1 ) ∖ R 2 ⊆ g − 1 ( 1 ) with ∅ ≠ s τ ( y ) ∩ R 2 ⊆ s τ ( y ) ∩ g − 1 ( 2 ) \varnothing\neq s_{\tau(y)}\cap R_2\subseteq s_{\tau(y)}\cap g^{-1}(2) ∅ = s τ ( y ) ∩ R 2 ⊆ s τ ( y ) ∩ g − 1 ( 2 ) , then this would contradict Theorem 4, Constraint 2. We now turn to the fourth and last constraint. Let i ∈ I ′ i\in I' i ∈ I ′ . Since τ − 1 ( i ) = ∅ \tau^{-1}(i)=\varnothing τ − 1 ( i ) = ∅ , there has to be a y ∈ g − 1 ( 2 ) ∩ s i y\in g^{-1}(2)\cap s_i y ∈ g − 1 ( 2 ) ∩ s i . If y ∈ R 2 y\in R_2 y ∈ R 2 , then the constraint is satisfied. Hence, we can assume that y ∈ g − 1 ( 2 ) ∖ R 2 = g − 1 ( 2 ) ∩ f − 1 ( 0 ) y\in g^{-1}(2)\setminus R_2=g^{-1}(2)\cap f^{-1}(0) y ∈ g − 1 ( 2 ) ∖ R 2 = g − 1 ( 2 ) ∩ f − 1 ( 0 ) . Consider x ∈ f − 1 ( 1 ) ∖ R 2 x\in f^{-1}(1)\setminus R_2 x ∈ f − 1 ( 1 ) ∖ R 2 . As f ≤ g f\leq g f ≤ g and x ∉ R 2 x\notin R_2 x ∈ / R 2 , we have g ( x ) = 1 g(x)=1 g ( x ) = 1 . By Constraint 1 of Theorem 4, y ∉ s τ ( x ) y \notin s_{\tau(x)} y ∈ / s τ ( x ) . If s i ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) s_i \subseteq\left(\bigcup_{x\in f^{-1}(1)\setminus R_2} s_{\tau(x)}\right) \cup\left(\bigcup_{x\in R_2} s_{\rho(x)}\right) s i ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) and s i ∩ R 2 = ∅ s_i \cap R_2=\emptyset s i ∩ R 2 = ∅ hold, then this would contradict s ρ ( x ) ∩ R 2 = { x } s_{\rho(x)} \cap R_2=\{x\} s ρ ( x ) ∩ R 2 = { x } . Therefore, all the constraints hold.
Let now f f f , R 2 R_2 R 2 and ρ : R 2 → I \rho:R_2 \to I ρ : R 2 → I fulfill the constraints of this theorem. For this part of the proof, we will define a hypergraph H ′ H' H ′ that includes the edges of I ′ I' I ′ which are not hit, yet, i.e. there is no x ∈ X x\in X x ∈ X for which x ∈ R 2 x\in R_2 x ∈ R 2 or τ ( X ) \tau(X) τ ( X ) is the edge. We will show that there is a minimal hitting set D D D on H ′ H' H ′ which does not include any vertex of s ρ ( x ) s_{\rho(x)} s ρ ( x ) for x ∈ R 2 x\in R_2 x ∈ R 2 or s τ ( x ) s_{\tau(x)} s τ ( x ) for f − 1 ( 1 ) ∖ R 2 f^{-1}(1)\setminus R_2 f − 1 ( 1 ) ∖ R 2 . R 2 ∪ D R_2\cup D R 2 ∪ D will describe the set of vertices with value 2. We will hit the remaining vertices by assigning the value 1 to some vertices. Therefore, we define the hypergraph H ′ = ( X ′ , ( s i ′ ) i ∈ I ′ ′ ) H'=(X',(s'_i)_{i\in I''}) H ′ = ( X ′ , ( s i ′ ) i ∈ I ′′ ) with
I ′ ′ : = I ′ ∩ { i ∈ I ∣ s i ∩ R 2 = ∅ } , I'' := I' \cap\{i\in I\mid s_i\cap R_2=\emptyset\}, I ′′ := I ′ ∩ { i ∈ I ∣ s i ∩ R 2 = ∅ } ,
X ′ : = ( ⋃ i ∈ I ′ ′ s i ) ∖ ( ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) ) X' := \left(\bigcup_{i\in I''}s_i\right)\setminus\left(\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}s_{\tau(x)}\right)\cup\left(\bigcup_{x\in R_2}s_{\rho(x)}\right)\right) X ′ := ( i ∈ I ′′ ⋃ s i ) ∖ x ∈ f − 1 ( 1 ) ∖ R 2 ⋃ s τ ( x ) ∪ ( x ∈ R 2 ⋃ s ρ ( x ) )
and s i ′ : = s i ∩ X ′ s'_i:=s_i\cap X' s i ′ := s i ∩ X ′ . If s i ′ s'_i s i ′ is empty for an i ∈ I ′ ′ i\in I'' i ∈ I ′′ , then there would not exist any hitting set on H ′ H' H ′ . Therefore, we need to ensure that such an index does not exist. Let i ∈ I ′ ′ i\in I'' i ∈ I ′′ . Hence, τ − 1 ( i ) = ∅ \tau^{-1}(i)=\emptyset τ − 1 ( i ) = ∅ and s i ∩ R 2 = ∅ s_i\cap R_2=\emptyset s i ∩ R 2 = ∅ . The contraposition of the implication of Constraint 4 implies
s i ⊈ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) . s_i \not\subseteq\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}s_{\tau(x)}\right)\cup\left(\bigcup_{x\in R_2}s_{\rho(x)}\right). s i ⊆ x ∈ f − 1 ( 1 ) ∖ R 2 ⋃ s τ ( x ) ∪ ( x ∈ R 2 ⋃ s ρ ( x ) ) .
Hence, s i ′ ≠ ∅ s'_i\ne\emptyset s i ′ = ∅ for each i ∈ I ′ ′ i\in I'' i ∈ I ′′ . Thus, there is a minimal hitting set D D D on H ′ H' H ′ . Furthermore, the construction of H ′ H' H ′ and D D D implies that τ − 1 ( i ) ≠ ∅ \tau^{-1}(i)\ne\emptyset τ − 1 ( i ) = ∅ for each i ∈ I ∖ ( R 2 ∪ D ) i\in I\setminus(R_2\cup D) i ∈ I ∖ ( R 2 ∪ D ) . For each i ∈ I ∖ ( R 2 ∪ D ) i\in I\setminus(R_2\cup D) i ∈ I ∖ ( R 2 ∪ D ) , x i x_i x i will describe an arbitrary vertex in τ − 1 ( i ) \tau^{-1}(i) τ − 1 ( i ) , unless there exists an x i ∈ ( f − 1 ( 1 ) ∖ R 2 ) ∩ τ − 1 ( i ) x_i\in(f^{-1}(1)\setminus R_2)\cap\tau^{-1}(i) x i ∈ ( f − 1 ( 1 ) ∖ R 2 ) ∩ τ − 1 ( i ) (by assumption on f f f , there is at most one such element). In this case, we choose this x i x_i x i .
Define g : X → { 0 , 1 , 2 } g:X\to\{0,1,2\} g : X → { 0 , 1 , 2 } with g − 1 ( 1 ) = { x i ∣ i ∈ I ∖ ( R 2 ∪ D ) } g^{-1}(1)=\{x_i\mid i\in I\setminus(R_2\cup D)\} g − 1 ( 1 ) = { x i ∣ i ∈ I ∖ ( R 2 ∪ D )} and g − 1 ( 2 ) = D ∪ R 2 g^{-1}(2)=D\cup R_2 g − 1 ( 2 ) = D ∪ R 2 . We will now use Theorem 4 to show that g g g is a minimal Roman hitting function. By the construction of g − 1 ( 1 ) g^{-1}(1) g − 1 ( 1 ) , the first two constraints of Theorem 4, i.e., Constraints 0 and 1, are fulfilled. Since g − 1 ( 1 ) g^{-1}(1) g − 1 ( 1 ) hits each edge in I ∖ ( D ∪ R 2 ) I\setminus(D\cup R_2) I ∖ ( D ∪ R 2 ) , each hyperedge in { s i ∣ i ∈ I , τ − 1 ( i ) ∩ g − 1 ( 1 ) = ∅ } \{s_i\mid i\in I,\tau^{-1}(i)\cap g^{-1}(1)=\emptyset\} { s i ∣ i ∈ I , τ − 1 ( i ) ∩ g − 1 ( 1 ) = ∅ } is hit by g − 1 ( 2 ) g^{-1}(2) g − 1 ( 2 ) . As D D D is minimal and D ∩ ( ⋃ x ∈ R 2 s ρ ( x ) ) = ∅ D\cap\left(\bigcup_{x\in R_2}s_{\rho(x)}\right)=\emptyset D ∩ ( ⋃ x ∈ R 2 s ρ ( x ) ) = ∅ , Constraint 2 implies that D ∪ R 2 D\cup R_2 D ∪ R 2 also a minimal hitting set on I ( D ∪ R 2 ) I(D\cup R_2) I ( D ∪ R 2 ) . The remaining constraint of Theorem 4 follows by the first two constraints of f f f together with definition of H ′ H' H ′ and D D D as H ′ H' H ′ only contains hyperedges s i ′ s'_i s i ′ where τ − 1 ( i ) = ∅ \tau^{-1}(i)=\emptyset τ − 1 ( i ) = ∅ . □ \square □
Remark 2. Let H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be hypergraph with a correspondence τ \tau τ . By combining Lemma 3 and Theorem 5, we can check if a function f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } is extensible (and therefore if ( H , τ , f ) (H,\tau,f) ( H , τ , f ) is a yes-instance of Extension Roman Hitting Function). First, we use Lemma 3 exhaustively, and then we can use Theorem 5. This idea will be used in this paper to show a W[3 ] -membership.
Remark 3. Theorem 5 already gives an idea why Extension Roman Hitting Function with surjective correspondence (and therefore also Extension Roman Domination) runs in polynomial time. Let H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be a hypergraph and f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be a function with a surjective correspondence τ \tau τ . Hence, we can disregard Constraint 4, as τ − 1 ( i ) ≠ ∅ \tau^{-1}(i) \ne\emptyset τ − 1 ( i ) = ∅ for each i ∈ I i \in I i ∈ I . Then, we could use Lemmata 2 and 3. We set R 2 : = f − 1 ( 2 ) R_2 := f^{-1}(2) R 2 := f − 1 ( 2 ) . By Constraint 3, we have to add each x ∈ f − 1 ( 1 ) x \in f^{-1}(1) x ∈ f − 1 ( 1 ) with S τ ( x ) ∩ R 2 ≠ ∅ S_{\tau(x)} \cap R_2 \ne\emptyset S τ ( x ) ∩ R 2 = ∅ to R 2 R_2 R 2 . This can be done in polynomial time (we will show how in Algorithm 1). Now we can check in polynomial time if for each x ∈ R 2 x \in R_2 x ∈ R 2 there is a i x ∈ I i_x \in I i x ∈ I that fulfills Constraints 1 and 2. This will also be our strategy in the next section.
Extension Roman Hitting Function with Surjective Correspondence and Extension Roman Domination
In this section, we present a polynomial-time algorithm for Extension Roman Hitting Function instances with a surjective correspondence function τ \tau τ . At the end of this section, we explain how this algorithm can be viewed as a natural generalization of Extension Roman Domination that was studied before in [4 ] .
Algorithm 1 ExtRHF Algorithm
procedure ExtRHF Solver( X , S ^ , τ , f ) (X, \hat{S}, \tau, f) ( X , S ^ , τ , f ) Input: set X X X , S ^ : = ( S i ) i ∈ I \hat{S} := (S_i)_{i \in I} S ^ := ( S i ) i ∈ I , τ \tau τ correspondence function, f : X → { 0 , 1 , 2 } f : X \to\{0,1,2\} f : X → { 0 , 1 , 2 } with { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( f − 1 ( 2 ) ) \{i \in I \mid\tau^{-1}(i) = \emptyset\} \subseteq I(f^{-1}(2)) { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( f − 1 ( 2 )) . Output: Is there a minimal Roman hitting function g g g with f ≤ g f \le g f ≤ g ?
M 2 : = f − 1 ( 2 ) M_2 := f^{-1}(2) M 2 := f − 1 ( 2 )
M 1 : = f − 1 ( 1 ) M_1 := f^{-1}(1) M 1 := f − 1 ( 1 )
for x ∈ M 1 x \in M_1 x ∈ M 1 do
for y ∈ M 1 ∖ { x } y \in M_1 \setminus\{x\} y ∈ M 1 ∖ { x } do
if τ ( x ) = τ ( y ) \tau(x) = \tau(y) τ ( x ) = τ ( y ) then
Add x , y x,y x , y to M 2 M_2 M 2 and delete them from M 1 M_1 M 1 .
Continue with the next x x x .
M : = M 2 M := M_2 M := M 2 { All x ∈ g − 1 ( 2 ) x \in g^{-1}(2) x ∈ g − 1 ( 2 ) are considered in the following. }
while M ≠ ∅ M \ne\emptyset M = ∅ do
Choose x ∈ M x \in M x ∈ M .
for y ∈ τ − 1 ( I ( x ) ) y \in\tau^{-1}(I(x)) y ∈ τ − 1 ( I ( x )) do
if y ∈ M 1 y \in M_1 y ∈ M 1 then
Add y y y to M 2 M_2 M 2 and to M M M . Delete y y y from M 1 M_1 M 1 .
Delete x x x from M M M .
for x ∈ M 2 x \in M_2 x ∈ M 2 do
if I ( x ) ∖ I ( M 2 ∖ { x } ) ⊆ { τ ( x ) } I(x) \setminus I(M_2 \setminus\{x\}) \subseteq\{\tau(x)\} I ( x ) ∖ I ( M 2 ∖ { x }) ⊆ { τ ( x )} then
Return no
for i ∈ I ∖ ( I ( M 2 ) ∪ τ ( M 1 ) ) i \in I \setminus(I(M_2) \cup\tau(M_1)) i ∈ I ∖ ( I ( M 2 ) ∪ τ ( M 1 )) do
Add one arbitrary element x ∈ τ − 1 ( i ) x \in\tau^{-1}(i) x ∈ τ − 1 ( i ) to M 1 M_1 M 1 .
Return yes { g − 1 ( 0 ) = X ∖ ( M 1 ∪ M 2 ) g^{-1}(0) = X \setminus(M_1 \cup M_2) g − 1 ( 0 ) = X ∖ ( M 1 ∪ M 2 ) , g − 1 ( 1 ) = M 1 g^{-1}(1) = M_1 g − 1 ( 1 ) = M 1 , g − 1 ( 2 ) = M 2 g^{-1}(2) = M_2 g − 1 ( 2 ) = M 2 }
Theorem 6. Algorithm 1 solves Extension Roman Hitting Function for instances ( X , S ^ , τ , f ) (X,\hat{S},\tau,f) ( X , S ^ , τ , f ) satisfying { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( f − 1 ( 2 ) ) \{i \in I \mid\tau^{-1}(i) = \emptyset\} \subseteq I(f^{-1}(2)) { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( f − 1 ( 2 )) in polynomial time.
Proof. Assume the algorithm returns yes. Define g : X → { 0 , 1 , 2 } g : X \to\{0,1,2\} g : X → { 0 , 1 , 2 } with g − 1 ( 0 ) = X ∖ ( M 1 ∪ M 2 ) g^{-1}(0) = X \setminus(M_1 \cup M_2) g − 1 ( 0 ) = X ∖ ( M 1 ∪ M 2 ) , g − 1 ( 1 ) = M 1 g^{-1}(1) = M_1 g − 1 ( 1 ) = M 1 and g − 1 ( 2 ) = M 2 g^{-1}(2) = M_2 g − 1 ( 2 ) = M 2 . As we put vertices from M 1 M_1 M 1 into M 2 M_2 M 2 and from X ∖ ( M 1 ∪ M 2 ) X \setminus(M_1 \cup M_2) X ∖ ( M 1 ∪ M 2 ) into M 1 M_1 M 1 only, f ≤ g f \le g f ≤ g holds. Since τ − 1 ( i ) \tau^{-1}(i) τ − 1 ( i ) is not empty for each i ∈ I ∖ I ( M 2 ) ⊆ I ∖ I ( f − 1 ( 2 ) ) i \in I \setminus I(M_2) \subseteq I \setminus I(f^{-1}(2)) i ∈ I ∖ I ( M 2 ) ⊆ I ∖ I ( f − 1 ( 2 )) , g g g is a Roman hitting function. τ ( M 1 ) ∩ I ( M 2 ) \tau(M_1) \cap I(M_2) τ ( M 1 ) ∩ I ( M 2 ) does not contain any elements after the while-loop. As the for-loop starting in line 19 puts elements x ∈ X x \in X x ∈ X in M 2 M_2 M 2 with S τ ( x ) ∩ M 2 = ∅ S_{\tau(x)} \cap M_2 = \emptyset S τ ( x ) ∩ M 2 = ∅ only, τ ( M 1 ) ∩ I ( M 2 ) \tau(M_1) \cap\mathcal{I}(M_2) τ ( M 1 ) ∩ I ( M 2 ) is empty at the end of the algorithm. The first for-loop ensures that two different elements in M 1 M_1 M 1 have different values under τ \tau τ . Only in the last for-loop, we put an element x x x into M 1 M_1 M 1 , which has a unique τ ( x ) \tau(x) τ ( x ) and where τ ( x ) \tau(x) τ ( x ) is not hit so far. If there is a vertex x ∈ M 2 x \in M_2 x ∈ M 2 with I ( x ) ∖ I ( M 2 ∖ { x } ) ⊆ { τ ( x ) } \mathcal{I}(x) \setminus\mathcal{I}(M_2 \setminus\{x\}) \subseteq\{\tau(x)\} I ( x ) ∖ I ( M 2 ∖ { x }) ⊆ { τ ( x )} , then the algorithm would return no. Theorem 4 implies that g g g is a minimal Roman hitting function.
Assume the algorithm return no, but there is a minimal Roman hitting function with f ≤ h f \leq h f ≤ h . Therefore, the constraints of Theorem 4 hold for h h h . This implies that I ( h − 1 ( 2 ) ) ∩ τ ( h − 1 ( 1 ) ) = ∅ \mathcal{I}(h^{-1}(2)) \cap\tau(h^{-1}(1)) = \emptyset I ( h − 1 ( 2 )) ∩ τ ( h − 1 ( 1 )) = ∅ and τ ( x ) ≠ τ ( y ) \tau(x) \neq\tau(y) τ ( x ) = τ ( y ) hold for each x , y ∈ h − 1 ( 1 ) x,y \in h^{-1}(1) x , y ∈ h − 1 ( 1 ) with x ≠ y x \neq y x = y . Therefore, M 1 ⊆ h − 1 ( 1 ) M_1 \subseteq h^{-1}(1) M 1 ⊆ h − 1 ( 1 ) and M 2 ⊆ h − 1 ( 2 ) M_2 \subseteq h^{-1}(2) M 2 ⊆ h − 1 ( 2 ) is fulfilled before line 16. Therefore, I ( x ) ∖ I ( h − 1 ( 2 ) ∖ { x } ) ⊆ I ( x ) ∖ I ( M 2 ∖ { x } ) = { τ ( x ) } \mathcal{I}(x) \setminus\mathcal{I}(h^{-1}(2) \setminus\{x\}) \subseteq\mathcal{I}(x) \setminus\mathcal{I}(M_2 \setminus\{x\}) = \{\tau(x)\} I ( x ) ∖ I ( h − 1 ( 2 ) ∖ { x }) ⊆ I ( x ) ∖ I ( M 2 ∖ { x }) = { τ ( x )} holds for each x ∈ M 2 x \in M_2 x ∈ M 2 . Thus, h h h is not a minimal Roman dominating function. Hence, Algorithm 1 solves Extension Roman Hitting Function with I ∖ τ ( X ) ⊆ I ( f − 1 ( 2 ) ) \mathcal{I} \setminus\tau(X) \subseteq\mathcal{I}(f^{-1}(2)) I ∖ τ ( X ) ⊆ I ( f − 1 ( 2 )) .
Trivially, the for-loops run in polynomial time. As in each iteration of the while-loop starting in Line 10 we delete a vertex in M M M and never put this vertex in to it again, this while-loop needs only polynomial time. Thus, Algorithm Algorithm 1 runs in polynomial time.
This implies the following corollary.
Corollary 2. Extension Roman Hitting Function with surjective τ \tau τ is polynomial-time solvable.
G = ( V , E ) G = (V,E) G = ( V , E ) be a graph. Recall the closed-neighborhood hypergraph G n b G_{nb} G nb associated to G G G , i.e., G n b = ( V , ( N [ v ] ) v ∈ V ) G_{nb} = (V, (N[v])_{v \in V}) G nb = ( V , ( N [ v ] ) v ∈ V ) . If we compare Algorithm 1 on G n b G_{nb} G nb with Algorithm 1 in [4 ] on G G G , then these algorithms would work the same. Since the correspondence τ \tau τ is bijective, τ ( x ) ≠ τ ( y ) \tau(x) \neq\tau(y) τ ( x ) = τ ( y ) holds for each x , y ∈ X x,y \in X x , y ∈ X with x ≠ y x \neq y x = y . Therefore, the for-loop starting in Line 4 would not change anything. In the while loop we go through all x ∈ M 2 x \in M_2 x ∈ M 2 and look for y ∈ τ − 1 ( I ( x ) ) ∩ M 1 y \in\tau^{-1}(\mathcal{I}(x)) \cap M_1 y ∈ τ − 1 ( I ( x )) ∩ M 1 . The very definition of S ^ \hat{S} S ^ implies that we update the value of such a y ∈ N [ x ] y \in N[x] y ∈ N [ x ] to f ( y ) = 2 f(y) = 2 f ( y ) = 2 . This also happens in the ExtRDF-algorithm of [4 ] . In the next step, both algorithms check if each vertex with value 2 has private edge which is not the τ \tau τ -hyperedge (private neighbor that is not the itself). In the end Algorithm 1 takes an index i i i not hit and sets f ( x ) = 1 f(x) = 1 f ( x ) = 1 for one vertex x ∈ τ − 1 ( i ) x \in\tau^{-1}(i) x ∈ τ − 1 ( i ) . As τ \tau τ is injective, the vertex x x x is unique. Therefore, both algorithm would work the same. Our presented algorithm hence generalizes the polynomial-time solvability of Extension Roman Domination.
Bounded Extension Roman Domination
In this section, we will discuss a two-sided bounded version of Extension Roman Domination which was also suggested by a colleague of ours.
We will show in Corollary 3 that Bounded-Extension Roman Domination is NP-complete. A standard way to act in such circumstances is to look for FPT-algorithms. One natural parameterization for this problem could be ω ( 2 − h ) \omega(2-h) ω ( 2 − h ) , because for 2 − h = 0 2-h=0 2 − h = 0 , i.e., ω ( 2 − h ) = 0 \omega(2-h)=0 ω ( 2 − h ) = 0 , we are back to Extension Roman Domination as a special case, which is known to be solvable in polynomial time. Hence, this parameterization can be viewed as a ‘distance-from-triviality’ parameter [34 ] . However, as we will prove in Theorem 7, this parameterization strategy fails. We employ the well-known W[3 ] -completeness of Multicolored Independent Family (MultIndFam), parameterized by k k k , in the reduction presented in the proof of Theorem 7.
Figure 1. Construction for Theorem 7, for i ∈ [ k ] i \in[k] i ∈ [ k ] , p ∈ [ ℓ i ] p \in[\ell_i] p ∈ [ ℓ i ] and j ∈ [ ℓ T ] j \in[\ell_T] j ∈ [ ℓ T ] .
Problem name: Multicolored Independent Family (MultIndFam)
Given: A ( k + 1 ) (k+1) ( k + 1 ) -tuple ( S 1 , … , S k , T ) (S_1,\ldots,S_k,T) ( S 1 , … , S k , T ) of subsets of 2 U 2^U 2 U on the common universe U U U .
Question: Are there hyperedges s 1 ∈ S 1 , … , s k ∈ S k s_1 \in S_1,\ldots,s_k \in S_k s 1 ∈ S 1 , … , s k ∈ S k such that no t ∈ T t \in T t ∈ T is a subset of ⋃ i = 1 k s i ⊆ U \bigcup_{i=1}^{k}s_i \subseteq U ⋃ i = 1 k s i ⊆ U ?
In that theorem, we actually discuss a slightly different parameterization, namely κ h − 1 ( 0 ) ( G , f , h ) : = ∣ h − 1 ( 0 ) ∣ \kappa_{h^{-1}(0)}(G,f,h) := |h^{-1}(0)| κ h − 1 ( 0 ) ( G , f , h ) := ∣ h − 1 ( 0 ) ∣ .
Theorem 7. κ h − 1 ( 0 ) \kappa_{h^{-1}(0)} κ h − 1 ( 0 ) -Bounded-Extension Roman Domination is W[3 ] -hard even on bipartite graphs.
Proof. Let k ∈ N k \in\mathbb{N} k ∈ N and ( S 1 , … , S k , T ) (S_1,\ldots,S_k,T) ( S 1 , … , S k , T ) be a ( k + 1 ) (k+1) ( k + 1 ) -tuple of subsets of 2 U 2^U 2 U with a common universe U U U . To simplify the notation, let T = { t 1 , … , t ℓ T } T=\{t_1,\ldots,t_{\ell_T}\} T = { t 1 , … , t ℓ T } and S i = { s i , 1 , … , s i , ℓ i } S_i=\{s_{i,1},\ldots,s_{i,\ell_i}\} S i = { s i , 1 , … , s i , ℓ i } for i ∈ [ k ] i \in[k] i ∈ [ k ] . Define X j : = { x j , u ∣ u ∈ t j } X_j := \{x_{j,u} \mid u \in t_j\} X j := { x j , u ∣ u ∈ t j } for j ∈ [ ℓ T ] j \in[\ell_T] j ∈ [ ℓ T ] , Y i : = { y i , 1 , … , y i , ℓ i } Y_i := \{y_{i,1},\ldots,y_{i,\ell_i}\} Y i := { y i , 1 , … , y i , ℓ i } and G = ( V , E ) G=(V,E) G = ( V , E ) with
V : = ( ⋃ i = 1 k ( { a i , b i , c i } ∪ Y i ) ) ∪ ( ⋃ j = 1 ℓ T ( { w j } ∪ X j ) ) . V := \left(\bigcup_{i=1}^{k}\left(\{a_i,b_i,c_i\}\cup Y_i\right)\right)\cup\left(\bigcup_{j=1}^{\ell_T}\left(\{w_j\}\cup X_j\right)\right). V := ( i = 1 ⋃ k ( { a i , b i , c i } ∪ Y i ) ) ∪ ( j = 1 ⋃ ℓ T ( { w j } ∪ X j ) ) .
E : = { { a i , y i , p } , { b i , y i , p } , { b i , c i } ∣ i ∈ [ k ] , p ∈ [ ℓ i ] } ∪ { { w j , x j , u } ∣ j ∈ [ ℓ T ] , u ∈ t j } ∪ { { y i , p , x j , u } ∣ i ∈ [ k ] , p ∈ [ ℓ i ] , j ∈ [ ℓ T ] , u ∈ s i , p ∩ t j } . E := \{\{a_i,y_{i,p}\},\{b_i,y_{i,p}\},\{b_i,c_i\}\mid i\in[k],\ p\in[\ell_i]\}\cup\{\{w_j,x_{j,u}\}\mid j\in[\ell_T],\ u\in t_j\}
\cup\{\{y_{i,p},x_{j,u}\}\mid i\in[k],\ p\in[\ell_i],\ j\in[\ell_T],\ u\in s_{i,p}\cap t_j\}. E := {{ a i , y i , p } , { b i , y i , p } , { b i , c i } ∣ i ∈ [ k ] , p ∈ [ ℓ i ]} ∪ {{ w j , x j , u } ∣ j ∈ [ ℓ T ] , u ∈ t j } ∪ {{ y i , p , x j , u } ∣ i ∈ [ k ] , p ∈ [ ℓ i ] , j ∈ [ ℓ T ] , u ∈ s i , p ∩ t j } .
Clearly, G G G is bipartite, as V = A ∪ B V=A\cup B V = A ∪ B decomposes V V V into two disjoint independent sets, with
A = ( ⋃ i = 1 k { a i , b i } ) ∪ ( ⋃ j = 1 ℓ T X j ) A=\left(\bigcup_{i=1}^{k}\{a_i,b_i\}\right)\cup\left(\bigcup_{j=1}^{\ell_T}X_j\right) A = ( ⋃ i = 1 k { a i , b i } ) ∪ ( ⋃ j = 1 ℓ T X j ) and
B = ( ⋃ i = 1 k { c i } ∪ Y i ) ∪ ( ⋃ j = 1 ℓ T { w j } ) B=\left(\bigcup_{i=1}^{k}\{c_i\}\cup Y_i\right)\cup\left(\bigcup_{j=1}^{\ell_T}\{w_j\}\right) B = ( ⋃ i = 1 k { c i } ∪ Y i ) ∪ ( ⋃ j = 1 ℓ T { w j } ) .
Furthermore, we need the maps f , h ∈ { 0 , 1 , 2 } V f,h\in\{0,1,2\}^{V} f , h ∈ { 0 , 1 , 2 } V with f = 2 χ { w 1 , … , w ℓ T } ∪ { b 1 , … , b k } f=2\chi_{\{w_1,\ldots,w_{\ell_T}\}\cup\{b_1,\ldots,b_k\}} f = 2 χ { w 1 , … , w ℓ T } ∪ { b 1 , … , b k } and h = 2 ( 1 − χ { a 1 , … , a k } ) h=2(1-\chi_{\{a_1,\ldots,a_k\}}) h = 2 ( 1 − χ { a 1 , … , a k } ) .
Claim. S 1 , … , S k , T S_1,\ldots,S_k,T S 1 , … , S k , T is a yes-instance of the Multicolored Independent Family problem if and only if there exists a minimal Roman dominating function g g g on G G G with f ≤ g ≤ h f\leq g\leq h f ≤ g ≤ h .
Proof. Let g g g be a minimal Roman dominating function on G G G with f ≤ g ≤ h f\leq g\leq h f ≤ g ≤ h . Consider i ∈ [ k ] i\in[k] i ∈ [ k ] . As g ( a i ) = h ( a i ) = 0 g(a_i)=h(a_i)=0 g ( a i ) = h ( a i ) = 0 , Y i ∩ g − 1 ( 2 ) = N ( a i ) ∩ g − 1 ( 2 ) ≠ ∅ Y_i\cap g^{-1}(2)=N(a_i)\cap g^{-1}(2)\ne\emptyset Y i ∩ g − 1 ( 2 ) = N ( a i ) ∩ g − 1 ( 2 ) = ∅ . Since N ( y i , p ) ∖ N [ g − 1 ( 2 ) ] = { a i } N(y_{i,p})\setminus N[g^{-1}(2)]=\{a_i\} N ( y i , p ) ∖ N [ g − 1 ( 2 )] = { a i } , ∣ Y i ∩ g − 1 ( 2 ) ∣ = 1 |Y_i\cap g^{-1}(2)|=1 ∣ Y i ∩ g − 1 ( 2 ) ∣ = 1 . Define for each i ∈ [ k ] i\in[k] i ∈ [ k ] , p i ∈ [ ℓ i ] p_i\in[\ell_i] p i ∈ [ ℓ i ] such that { y i , p i } = Y i ∩ g − 1 ( 2 ) \{y_{i,p_i}\}=Y_i\cap g^{-1}(2) { y i , p i } = Y i ∩ g − 1 ( 2 ) . Assume there is a j ∈ [ ℓ T ] j\in[\ell_T] j ∈ [ ℓ T ] such that t j ⊆ ⋃ i = 1 k s i , p i t_j\subseteq\bigcup_{i=1}^{k}s_{i,p_i} t j ⊆ ⋃ i = 1 k s i , p i . Then for each u ∈ t j u\in t_j u ∈ t j there is a q u ∈ [ k ] q_u \in[k] q u ∈ [ k ] , such that u ∈ s q u , p q u u \in s_{q_u,p_{q_u}} u ∈ s q u , p q u and x j , u ∈ N ( y q u , p q u ) x_{j,u} \in N(y_{q_u,p_{q_u}}) x j , u ∈ N ( y q u , p q u ) . Thus, w j w_j w j has no private neighbor but itself. This contradicts to the fact that g g g is minimal.
For the only-if-part assume s 1 , d 1 ∈ S 1 , … , s k , d k ∈ S k s_{1,d_1} \in S_1,\ldots,s_{k,d_k} \in S_k s 1 , d 1 ∈ S 1 , … , s k , d k ∈ S k is a solution to the Multicolored Independent Family instance. Define g : = f + 2 ⋅ χ { y 1 , d 1 , … , y k , d k } g := f + 2 \cdot\chi_{\{y_{1,d_1},\ldots,y_{k,d_k}\}} g := f + 2 ⋅ χ { y 1 , d 1 , … , y k , d k } . Clearly, f ≤ g ≤ h f \le g \le h f ≤ g ≤ h . As a i ∈ N ( y i , d i ) a_i \in N(y_{i,d_i}) a i ∈ N ( y i , d i ) , Y i ∪ { c i } = N ( b i ) Y_i \cup\{c_i\} = N(b_i) Y i ∪ { c i } = N ( b i ) for each i ∈ [ k ] i \in[k] i ∈ [ k ] and X j ⊆ w j X_j \subseteq w_j X j ⊆ w j for j ∈ [ ℓ T ] j \in[\ell_T] j ∈ [ ℓ T ] , g − 1 ( 0 ) ⊆ N [ f − 1 ( 2 ) ] g^{-1}(0) \subseteq N[f^{-1}(2)] g − 1 ( 0 ) ⊆ N [ f − 1 ( 2 )] . Since g − 1 ( 1 ) = ∅ g^{-1}(1) = \varnothing g − 1 ( 1 ) = ∅ , we only need to show that each vertex in g − 1 ( 2 ) g^{-1}(2) g − 1 ( 2 ) has a private neighbor but itself. Clearly, for each i ∈ [ k ] i \in[k] i ∈ [ k ] , c i c_i c i is a private neighbor of b i b_i b i and a i a_i a i of y i , d i y_{i,d_i} y i , d i . Now assume there is a j ∈ [ ℓ T ] j \in[\ell_T] j ∈ [ ℓ T ] such that w j w_j w j has no private neighbor but itself. Then for each x j , u ∈ N ( w j ) x_{j,u} \in N(w_j) x j , u ∈ N ( w j ) there is a q u ∈ [ k ] q_u \in[k] q u ∈ [ k ] with x j , u ∈ N ( y q u , d q u ) x_{j,u} \in N(y_{q_u,d_{q_u}}) x j , u ∈ N ( y q u , d q u ) which implies u ∈ s q u , d q u u \in s_{q_u,d_{q_u}} u ∈ s q u , d q u . This contradicts t j ⊈ ⋃ i = 1 k s i , d i t_j \not\subseteq\bigcup_{i=1}^{k}s_{i,d_i} t j ⊆ ⋃ i = 1 k s i , d i . Hence, g g g is a minimal Roman dominating function. ◇
Since k = ∣ { a 1 , … , a k } ∣ = ∣ h − 1 ( 0 ) ∣ k = |\{a_1,\ldots,a_k\}| = |h^{-1}(0)| k = ∣ { a 1 , … , a k } ∣ = ∣ h − 1 ( 0 ) ∣ , this is an FPT-reduction. □
Since h h h maps no vertex to 1 in the reduction presented in the proof of Theorem 7, Bounded-Extension Roman Domination is W[3 ] -hard, parameterized by κ 2 − h ( G , f , h ) : = ∑ v ∈ V ( 2 − h ( v ) ) \kappa_{2-h}(G,f,h) := \sum_{v\in V}(2-h(v)) κ 2 − h ( G , f , h ) := ∑ v ∈ V ( 2 − h ( v )) . Namely, in the construction of Theorem 7, κ 2 − h ( G , f , h ) = 2 ⋅ κ ∣ h − 1 ( 0 ) ∣ ( G , f , h ) \kappa_{2-h}(G,f,h) = 2 \cdot\kappa_{|h^{-1}(0)|}(G,f,h) κ 2 − h ( G , f , h ) = 2 ⋅ κ ∣ h − 1 ( 0 ) ∣ ( G , f , h ) .
Another parameterization could be ω ( f ) \omega(f) ω ( f ) : If ω ( f ) = 0 \omega(f) = 0 ω ( f ) = 0 , there is a minimal Roman dominating function g : V → { 0 , 1 , 2 } g : V \to\{0,1,2\} g : V → { 0 , 1 , 2 } with f ≤ g ≤ h f \le g \le h f ≤ g ≤ h if and only if h h h is a Roman dominating function (this can be checked in polynomial time). If there is such a g g g , then h h h is also a Roman dominating function. If h h h is a Roman dominating function, then we can decrease the value of the vertices until we can no longer decrease the value of any vertices without losing the Roman dominating function property. To understand the complexity of this parameter, we need the following extension version of Hitting Set.
Problem name: Extension Hitting Set (Ext HS)
Given: A simple hypergraph H = ( X , S = ( s i ) i ∈ I ) H = (X,S=(s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) and a set U ⊆ X U \subseteq X U ⊆ X .
Question: Is there a minimal hitting set Y ⊆ X Y \subseteq X Y ⊆ X with U ⊆ Y U \subseteq Y U ⊆ Y ?
In [10 ] , it was proven that Extension Hitting Set is W[3 ] -complete when parameterized by ∣ U ∣ |U| ∣ U ∣ .
Theorem 8. Bounded-Extension Roman Domination is W[3 ] -hard on split graphs when parameterized by the weight ω ( f ) \omega(f) ω ( f ) of the lower-bound function f f f .
Proof. Let ( ( X , ( s i ) i ∈ I ) , U ) ((X,(s_i)_{i\in I}),U) (( X , ( s i ) i ∈ I ) , U ) with X = { x 1 , … , x n } X = \{x_1,\ldots,x_n\} X = { x 1 , … , x n } and U ≠ ∅ U \ne\varnothing U = ∅ be an instance of ExtHS. Define G = ( V , E ) G = (V,E) G = ( V , E ) with
V : = X ∪ I , E : = { { x , j } ∣ x i ∈ S j } ∪ ( X 2 ) . V := X \cup I,\qquad E := \{\{x,j\}\mid x_i \in S_j\} \cup\binom{X}{2}. V := X ∪ I , E := {{ x , j } ∣ x i ∈ S j } ∪ ( 2 X ) .
Obviously, G G G is a split graph.
Let Y Y Y be a minimal hitting set with U ⊆ Y U \subseteq Y U ⊆ Y . Define
g Y : V → { 0 , 1 , 2 } , x ↦ { 0 , if x ∈ I ∪ ( X ∖ Y ) , 2 , if x ∈ Y . g_Y : V \to\{0,1,2\},\ x \mapsto
\begin{cases}
0, & \text{if } x \in I \cup(X \setminus Y),\\
2, & \text{if } x \in Y.
\end{cases} g Y : V → { 0 , 1 , 2 } , x ↦ { 0 , 2 , if x ∈ I ∪ ( X ∖ Y ) , if x ∈ Y .
U ⊆ Y U \subseteq Y U ⊆ Y and g Y ( T ) = { 0 } g_Y(T)=\{0\} g Y ( T ) = { 0 } imply f ( v ) ≤ g Y ( v ) ≤ h ( v ) f(v) \leq g_Y(v) \leq h(v) f ( v ) ≤ g Y ( v ) ≤ h ( v ) for each v ∈ V v \in V v ∈ V . Since U U U is not empty, g Y g_Y g Y already dominates X X X . As Y Y Y is a hitting set, for each s j ∈ S s_j \in S s j ∈ S , there is an x i ∈ S j ∩ Y x_i \in S_j \cap Y x i ∈ S j ∩ Y . Thus, for each j ∈ I j \in I j ∈ I , there is an x i ∈ N ( j ) x_i \in N(j) x i ∈ N ( j ) with g Y ( x i ) = 2 g_Y(x_i)=2 g Y ( x i ) = 2 . Hence, g Y g_Y g Y is a Roman dominating function. Assume there exists an x i ∈ X x_i \in X x i ∈ X with g Y ( x i ) = 2 g_Y(x_i)=2 g Y ( x i ) = 2 such that g Y − χ { x i } g_Y-\chi_{\{x_i\}} g Y − χ { x i } is also a Roman dominating function. Thus, for each j ∈ N ( x i ) j \in N(x_i) j ∈ N ( x i ) there exists an x q ∈ N ( j ) ∩ g Y − 1 ( 2 ) x_q \in N(j) \cap g_Y^{-1}(2) x q ∈ N ( j ) ∩ g Y − 1 ( 2 ) . Hence, for each s j ∈ S s_j \in S s j ∈ S with x i ∈ s j x_i \in s_j x i ∈ s j , there is an x q ∈ ( s j ∩ Y ) ∖ { x i } x_q \in(s_j \cap Y) \setminus\{x_i\} x q ∈ ( s j ∩ Y ) ∖ { x i } . This contradicts the minimality of Y Y Y . Therefore, g Y g_Y g Y is a minimal Roman dominating function. Thus, ( G , f , h ) (G,f,h) ( G , f , h ) is a yes-instance of Bounded-Extension Roman Domination if ( X , S , U ) (X,S,U) ( X , S , U ) is a yes-instance of Extension Hitting Set.
Let g g g be a minimal Roman dominating function on G G G with f ≤ g ≤ h f \leq g \leq h f ≤ g ≤ h . Define Y g = g − 1 ( 2 ) Y_g=g^{-1}(2) Y g = g − 1 ( 2 ) . U U U is a subset of Y g Y_g Y g as f ( v ) ≤ g ( v ) f(v) \leq g(v) f ( v ) ≤ g ( v ) holds for each v ∈ V v \in V v ∈ V . Since I ⊆ g − 1 ( 0 ) I \subseteq g^{-1}(0) I ⊆ g − 1 ( 0 ) , there must be an x i ∈ N ( j ) x_i \in N(j) x i ∈ N ( j ) such that g ( x i ) = 2 g(x_i)=2 g ( x i ) = 2 . Thus, Y g Y_g Y g is a hitting set. Assume there is an x i ∈ Y g x_i \in Y_g x i ∈ Y g such that for each S j ∈ S S_j \in S S j ∈ S with x i ∈ S j x_i \in S_j x i ∈ S j there exists an x q ∈ Y g ⊆ S j x_q \in Y_g \subseteq S_j x q ∈ Y g ⊆ S j . Hence, for each j ∈ N ( x i ) ∩ T j \in N(x_i) \cap T j ∈ N ( x i ) ∩ T , there is an x q ∈ N ( j ) ∖ { x i } x_q \in N(j) \setminus\{x_i\} x q ∈ N ( j ) ∖ { x i } with g ( x q ) = 2 g(x_q)=2 g ( x q ) = 2 . The existence of such an x q x_q x q implies that the private neighbor of x i x_i x i cannot be in C C C . This is a contradiction to the minimality of g g g . Thus, ( X , S , U ) (X,S,U) ( X , S , U ) is a yes-instance of Extension Hitting Set if ( G , f , h ) (G,f,h) ( G , f , h ) is a yes-instance of Bounded-Extension Roman Domination.
Since the reductions in this section are polynomial-time reductions and since membership in NP is easily seen using guess-and-check, we can conclude:
Corollary 3. Bounded-Extension Roman Domination is NP-complete even on split graphs or bipartite graphs.
Remark 4. This result is interesting as we have shown that Extension Dominating Set is polynomial-time solvable on split graphs [42 ] . As mentioned above, Extension Roman Domination can be solved in polynomial time but Extension Dominating Set is NP-complete. Now we have a graph class for which Bounded-Extension Roman Domination is NP-complete but there is a polynomial-time algorithm for Extension Dominating Set.
Our last proof would also work if the vertex set T T T would be a clique. This change does not affect the proof as h ( t ) = 0 h(t)=0 h ( t ) = 0 holds for each t ∈ T t \in T t ∈ T . The resulting graph is then co-bipartite. Hence, we can state the following results.
Corollary 4. Bounded-Extension Roman Domination is NP-complete on co-bipartite graphs. The parameterized problem ω ( f ) \omega(f) ω ( f ) -Bounded-Extension Roman Domination is W[3 ] -hard on co-bipartite graphs.
We will make use of this parameterized reduction proving the W[3 ] -hardness in the next section, when we turn to discuss the (parameterized) complexity of Extension Roman Hitting Function. The reductions provided there will also show that Bounded-Extension Roman Domination is W[3 ] -complete for some parameterizations. Thus, the W[3 ] -hardness results proved in this section turn into W[3 ] -completeness results.
Lemma 5. Let ( G = ( V , E ) , f , h ) (G=(V,E),f,h) ( G = ( V , E ) , f , h ) be a Bounded-Extension Roman Domination instance. If one of the there following conditions hold, it is a no-instance:
f ≰ h f \nleq h f ≰ h .
There is a v ∈ V v \in V v ∈ V with h ( v ) = 0 h(v)=0 h ( v ) = 0 and for all u ∈ N ( v ) u \in N(v) u ∈ N ( v ) , f ( u ) ≠ 2 f(u) \ne2 f ( u ) = 2 .
Proof. 1. This is trivial, as ≤ \le ≤ is transitive.
Assume there is a v ∈ V v \in V v ∈ V with h ( v ) = 0 h(v)=0 h ( v ) = 0 and for all u ∈ N ( v ) u \in N(v) u ∈ N ( v ) , f ( u ) ≠ 2 f(u)\ne2 f ( u ) = 2 , ( G , f , h ) (G,f,h) ( G , f , h ) is a no-instance. Then there cannot exist a Roman dominating function g g g with f ≤ g ≤ h f\le g\le h f ≤ g ≤ h . In particular, if h ( v ) = 0 h(v)=0 h ( v ) = 0 , as g ≤ h g\le h g ≤ h , then also g ( v ) = 0 g(v)=0 g ( v ) = 0 , and as g g g should be a Roman dominating function, g ( u ) = 2 g(u)=2 g ( u ) = 2 for some u ∈ N ( v ) u\in N(v) u ∈ N ( v ) , so that h ( u ) = 2 h(u)=2 h ( u ) = 2 as g ≤ h g\le h g ≤ h .
Complexity of Extension Roman Hitting Function
In this section, we will show that there are also instances of Extension Roman Hitting Function which are NP-complete and W[3 ] -complete, considering their different parameterizations. For W[3 ] -membership, we make again use of Multicolored Independent Family. There are no further W[3 ] -complete parameterized problems that we find suitable for a reduction. Hence we use Multicolored Independent Family to prove membership in W[3 ] . Unfortunately, this reduction is quite technical.
Theorem 9. The parameterized problem ω ( f ) \omega(f) ω ( f ) -Extension Roman Hitting Function is in W[3 ] .
Proof. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\widehat{S}=(s_i)_{i\in I}) H = ( X , S = ( s i ) i ∈ I ) be a (not necessarily simple) hypergraph with correspondence τ : X → I \tau:X\to I τ : X → I and let f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } be some function, comprising an instance of ω ( f ) \omega(f) ω ( f ) -Extension Roman Hitting Function. By Lemma 4 we can assume that there are no two elements x , y ∈ X x,y\in X x , y ∈ X such that f ( x ) = f ( y ) = 1 f(x)=f(y)=1 f ( x ) = f ( y ) = 1 with τ ( x ) = τ ( y ) \tau(x)=\tau(y) τ ( x ) = τ ( y ) or f ( x ) = 2 f(x)=2 f ( x ) = 2 , f ( y ) = 1 f(y)=1 f ( y ) = 1 with x ∈ s τ ( y ) x\in s_{\tau(y)} x ∈ s τ ( y ) .
We will construct an equivalent Multicolored Independent Family instance next. We define its universe as U : = X ∪ { x ′ ∣ x ∈ f − 1 ( { 1 , 2 } ) } ∪ { r i , x ∣ x ∈ f − 1 ( { 1 , 2 } ) , i ∈ I } ∪ { τ x ∣ x ∈ f − 1 ( 1 ) } U:=X\cup\{x'\mid x\in f^{-1}(\{1,2\})\}\cup\{r_{i,x}\mid x\in f^{-1}(\{1,2\}),\,i\in I\}\cup\{\tau_x\mid x\in f^{-1}(1)\} U := X ∪ { x ′ ∣ x ∈ f − 1 ({ 1 , 2 })} ∪ { r i , x ∣ x ∈ f − 1 ({ 1 , 2 }) , i ∈ I } ∪ { τ x ∣ x ∈ f − 1 ( 1 )} . For the construction of the hypergraphs, we need to define some additional (auxiliary) sets whose significance will be explained in the following paragraph:
For x ∈ f − 1 ( { 1 , 2 } ) x\in f^{-1}(\{1,2\}) x ∈ f − 1 ({ 1 , 2 }) , i ∈ I ( x ) i\in I(x) i ∈ I ( x ) abbreviate s ~ x , i : = s i ∪ { r i , x , x ′ } \widetilde{s}_{x,i}:=s_i\cup\{r_{i,x},x'\} s x , i := s i ∪ { r i , x , x ′ } .
For each x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) , let S x : = { s ~ x , i ∣ τ ( x ) ≠ i } S_x:=\{\widetilde{s}_{x,i}\mid\tau(x)\ne i\} S x := { s x , i ∣ τ ( x ) = i } and for each x ∈ f − 1 ( 1 ) x\in f^{-1}(1) x ∈ f − 1 ( 1 ) , let S x : = { s τ ( x ) ∪ { τ x } } ∪ { s ~ x , i ∣ τ ( x ) ≠ i } S_x:=\{s_{\tau(x)}\cup\{\tau_x\}\}\cup\{\widetilde{s}_{x,i}\mid\tau(x)\ne i\} S x := { s τ ( x ) ∪ { τ x }} ∪ { s x , i ∣ τ ( x ) = i } .
T ′ : = { t i ∣ i ∈ I ∧ τ − 1 ( i ) = ∅ ∧ s i ∩ f − 1 ( 2 ) = ∅ } T':=\{t_i\mid i\in I\land\tau^{-1}(i)=\varnothing\land s_i\cap f^{-1}(2)=\varnothing\} T ′ := { t i ∣ i ∈ I ∧ τ − 1 ( i ) = ∅ ∧ s i ∩ f − 1 ( 2 ) = ∅ }
and
T ′ ′ : = { { r i , x , y ′ } ∣ i ∈ I ∧ { x , y } ⊆ ( s i ∩ f − 1 ( { 1 , 2 } ) ) ∧ x ≠ y } ∪ { { τ x , y ′ } ∣ x ∈ f − 1 ( 1 ) ∧ y ∈ s τ ( x ) ∧ x ≠ y } . T'':=\bigl\{\{r_{i,x},y'\}\mid i\in I\land\{x,y\}\subseteq(s_i\cap f^{-1}(\{1,2\}))\land x\ne y\}
\cup\bigl\{\{\tau_x,y'\}\mid x\in f^{-1}(1)\land y\in s_{\tau(x)}\land x\ne y\bigr\}. T ′′ := { { r i , x , y ′ } ∣ i ∈ I ∧ { x , y } ⊆ ( s i ∩ f − 1 ({ 1 , 2 })) ∧ x = y } ∪ { { τ x , y ′ } ∣ x ∈ f − 1 ( 1 ) ∧ y ∈ s τ ( x ) ∧ x = y } .
Now we will explain the idea of each element. It is important to keep in mind that we want to use the extensibility characterization Theorem 5: If element x ′ x' x ′ is in a chosen hyperedge, then we assign the value 2 to x x x in the minimal Roman hitting function. The element r i , x r_{i,x} r i , x gives us information about the mapping ρ \rho ρ : r i , x r_{i,x} r i , x is in one of the chosen edges if and only if ρ ( x ) = i \rho(x)=i ρ ( x ) = i holds. Therefore, the sets { r i , x , y ′ } \{r_{i,x},y'\} { r i , x , y ′ } verify the Constraint 2 of Theorem 5. τ x \tau_x τ x will only be in a set we chose if we assign the value 1 to x x x . Hence, Constraint 3 will be checked by the sets { τ x , y } \{\tau_x,y\} { τ x , y } . The sets in T ′ T' T ′ correspond to the sets which we consider in Constraint 4. This is also the reason why τ x \tau_x τ x is included in t i t_i t i . Since there exists a τ x \tau_x τ x , f ( x ) = 1 f(x)=1 f ( x ) = 1 . If x ∈ R 2 x\in R_2 x ∈ R 2 , then s i ∩ R 2 ≠ ∅ s_i\cap R_2\ne\emptyset s i ∩ R 2 = ∅ . In the Multicolored Independent Family instance, this corresponds to: τ x \tau_x τ x will not be in our sets, which implies that t i t_i t i will not be covered completely.
Claim. ( H , τ , f ) (H,\tau,f) ( H , τ , f ) is a yes-instance of Extension Roman Hitting Function if and only if ( U , ( S x ) x ∈ f − 1 ( { 1 , 2 } ) , T ) (U,(S_x)_{x\in f^{-1}(\{1,2\})},T) ( U , ( S x ) x ∈ f − 1 ({ 1 , 2 }) , T ) is a yes-instance of the Multicolored Independent Family problem.
Proof. First assume that ( H , τ , f ) (H,\tau,f) ( H , τ , f ) is a yes-instance of Extension Roman Hitting Function, i.e., we have to show that ( U , ( S x ) x ∈ f − 1 ( { 1 , 2 } ) , T ) (U,(S_x)_{x\in f^{-1}(\{1,2\})},T) ( U , ( S x ) x ∈ f − 1 ({ 1 , 2 }) , T ) is a yes-instance of Multicolored Independent Family. To prove this, we will use Theorem 5 (after simplifying the instance by using Lemma 4, as mentioned above). As ( H , τ , f ) (H,\tau,f) ( H , τ , f ) is a yes-instance of Extension Roman Hitting Function, there exist a set f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ( { 1 , 2 } ) f^{-1}(2)\subseteq R_2\subseteq f^{-1}(\{1,2\}) f − 1 ( 2 ) ⊆ R 2 ⊆ f − 1 ({ 1 , 2 }) and a mapping ρ : R 2 → I \rho:R_2\to I ρ : R 2 → I that fulfill all four constraints of Theorem 5. For each x ∈ R 2 x\in R_2 x ∈ R 2 , choose some s ~ x , ρ ( x ) ∈ S x \tilde{s}_{x,\rho(x)}\in S_x s ~ x , ρ ( x ) ∈ S x , and for each x ∈ f − 1 ( 1 ) ∖ R 2 x\in f^{-1}(1)\setminus R_2 x ∈ f − 1 ( 1 ) ∖ R 2 , choose s τ ( x ) ∪ { τ x } ∈ S x s_{\tau(x)}\cup\{\tau_x\}\in S_x s τ ( x ) ∪ { τ x } ∈ S x . We will show that this choice of hyperedges from ( S x ) x ∈ f − 1 ( { 1 , 2 } ) (S_x)_{x\in f^{-1}(\{1,2\})} ( S x ) x ∈ f − 1 ({ 1 , 2 }) proves that ( U , ( S x ) x ∈ f − 1 ( { 1 , 2 } ) , T ) (U,(S_x)_{x\in f^{-1}(\{1,2\})},T) ( U , ( S x ) x ∈ f − 1 ({ 1 , 2 }) , T ) is a yes-instance of Multicolored Independent Family. For the sake of contradiction, assume that there exists a hyperedge in T T T which is a subset of
S : = ( ( ⋃ x ∈ R 2 s ~ x , ρ ( x ) ) ∪ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 ( s τ ( x ) ∪ { τ x } ) ) ) . \mathcal{S}:=\left(\left(\bigcup_{x\in R_2}\tilde{s}_{x,\rho(x)}\right)\cup\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}\left(s_{\tau(x)}\cup\{\tau_x\}\right)\right)\right). S := ( x ∈ R 2 ⋃ s ~ x , ρ ( x ) ) ∪ x ∈ f − 1 ( 1 ) ∖ R 2 ⋃ ( s τ ( x ) ∪ { τ x } ) .
Observe that, for each x ∈ f − 1 ( { 1 , 2 } ) x\in f^{-1}(\{1,2\}) x ∈ f − 1 ({ 1 , 2 }) , x ′ ∈ S x'\in\mathcal{S} x ′ ∈ S if and only if there is an i ∈ I ( x ) i\in I(x) i ∈ I ( x ) such that s ~ x , i \tilde{s}_{x,i} s ~ x , i was chosen. Therefore, x x x has to be in R 2 R_2 R 2 .
If there would exist a hyperedge in T ′ ′ T'' T ′′ which is included in S \mathcal{S} S , this would contradict Constraints 1 or 2. Now, consider a hyperedge t i t_i t i in T ′ T' T ′ . Hence, we have some i ∈ I i\in I i ∈ I with t i ⊆ S t_i\subseteq\mathcal{S} t i ⊆ S , s i ∩ f − 1 ( 2 ) = ∅ s_i\cap f^{-1}(2)=\emptyset s i ∩ f − 1 ( 2 ) = ∅ and τ − 1 ( i ) = ∅ \tau^{-1}(i)=\emptyset τ − 1 ( i ) = ∅ . This implies that
s i ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) . s_i\subseteq\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}s_{\tau(x)}\right)\cup\left(\bigcup_{x\in R_2}s_{\rho(x)}\right). s i ⊆ x ∈ f − 1 ( 1 ) ∖ R 2 ⋃ s τ ( x ) ∪ ( x ∈ R 2 ⋃ s ρ ( x ) ) .
Furthermore, f − 1 ( 1 ) ∩ R 2 ∩ s i = ∅ f^{-1}(1)\cap R_2\cap s_i=\emptyset f − 1 ( 1 ) ∩ R 2 ∩ s i = ∅ , as otherwise, there exists a τ x ∈ t i \tau_x\in t_i τ x ∈ t i , which is not in S \mathcal{S} S . This would contradict the Constraint 4. Hence, ( U , ( S x ) x ∈ f − 1 ( { 1 , 2 } ) , T ) (U,(S_x)_{x\in f^{-1}(\{1,2\})},T) ( U , ( S x ) x ∈ f − 1 ({ 1 , 2 }) , T ) is a yes-instance.
For the if-part, consider the instance ( U , ( S x ) x ∈ f − 1 ( { 1 , 2 } ) , T ) (U,(S_x)_{x\in f^{-1}(\{1,2\})},T) ( U , ( S x ) x ∈ f − 1 ({ 1 , 2 }) , T ) of MultIndFam, together with q x ∈ S x q_x\in S_x q x ∈ S x for each x ∈ f − 1 ( { 1 , 2 } ) x\in f^{-1}(\{1,2\}) x ∈ f − 1 ({ 1 , 2 }) that form a solution for the instance, i.e., their union does not contain any hyperedge from T T T . Define
R 2 : = f − 1 ( 2 ) ∪ { x ∈ f − 1 ( 1 ) ∣ τ x ∉ q x } R_2:=f^{-1}(2)\cup\{x\in f^{-1}(1)\mid\tau_x\notin q_x\} R 2 := f − 1 ( 2 ) ∪ { x ∈ f − 1 ( 1 ) ∣ τ x ∈ / q x }
and, for each x ∈ R 2 x\in R_2 x ∈ R 2 , determine ρ ( x ) \rho(x) ρ ( x ) such that s ~ x , ρ ( x ) = q x \tilde{s}_{x,\rho(x)}=q_x s ~ x , ρ ( x ) = q x . We again use Theorem 5 and the four constraints mentioned in this characterization theorem. Constraint 1 is fulfilled by the construction of R 2 R_2 R 2 . The next two constraints are met, as otherwise, a set of T ′ ′ T^{\prime\prime} T ′′ would be included in ⋃ x ∈ f − 1 ( { 1 , 2 } ) q x \bigcup_{x\in f^{-1}(\{1,2\})}q_x ⋃ x ∈ f − 1 ({ 1 , 2 }) q x . Assume there exists a j ∈ I j\in I j ∈ I with τ − 1 ( j ) = ∅ \tau^{-1}(j)=\varnothing τ − 1 ( j ) = ∅ and
s j ⊆ ( ⋃ x ∈ f − 1 ( 1 ) ∖ R 2 s τ ( x ) ) ∪ ( ⋃ x ∈ R 2 s ρ ( x ) ) . s_j\subseteq\left(\bigcup_{x\in f^{-1}(1)\setminus R_2}s_{\tau(x)}\right)\cup\left(\bigcup_{x\in R_2}s_{\rho(x)}\right). s j ⊆ x ∈ f − 1 ( 1 ) ∖ R 2 ⋃ s τ ( x ) ∪ ( x ∈ R 2 ⋃ s ρ ( x ) ) .
As for each i ∈ I i\in I i ∈ I , t i t_i t i is no subset of ⋃ x ∈ f − 1 ( { 1 , 2 } ) q x \bigcup_{x\in f^{-1}(\{1,2\})}q_x ⋃ x ∈ f − 1 ({ 1 , 2 }) q x , there must be some τ x ∈ t i \tau_x\in t_i τ x ∈ t i , with x ∈ f − 1 ( 1 ) ∩ s j x\in f^{-1}(1)\cap s_j x ∈ f − 1 ( 1 ) ∩ s j , which is not in ⋃ x ∈ f − 1 ( { 1 , 2 } ) q x \bigcup_{x\in f^{-1}(\{1,2\})}q_x ⋃ x ∈ f − 1 ({ 1 , 2 }) q x . Thus, R 2 ∩ s i ≠ ∅ R_2\cap s_i\ne\varnothing R 2 ∩ s i = ∅ . Hence, also Constraint 4 is met. Therefore, ( H , f , τ ) (H,f,\tau) ( H , f , τ ) is a yes-instance of Extension Roman Hitting Function.
As ∣ U ∣ ≤ ∣ X ∣ ⋅ ( ∣ I ∣ + 4 ) |U|\le|X|\cdot(|I|+4) ∣ U ∣ ≤ ∣ X ∣ ⋅ ( ∣ I ∣ + 4 ) , ∣ T ∣ ≤ ∣ I ∣ + ∣ X ∣ 2 ⋅ ( ∣ I ∣ + 1 ) |T|\le|I|+|X|^2\cdot(|I|+1) ∣ T ∣ ≤ ∣ I ∣ + ∣ X ∣ 2 ⋅ ( ∣ I ∣ + 1 ) and ∣ S x ∣ ≤ ∣ I ∣ |S_x|\le|I| ∣ S x ∣ ≤ ∣ I ∣ , the Multicolored Independent Family can be constructed in polynomial time. Furthermore, the parameter of the constructed instance of Multicolored Independent Family is ∣ f − 1 ( 1 ) ∪ f − 1 ( 2 ) ∣ ≤ ω ( f ) |f^{-1}(1)\cup f^{-1}(2)|\le\omega(f) ∣ f − 1 ( 1 ) ∪ f − 1 ( 2 ) ∣ ≤ ω ( f ) . Hence, Extension Roman Hitting Function belongs to W[3 ] .
As mentioned in the previous proof, the described reduction is also a polynomial-time reduction. Hence, Extension Roman Hitting Function is a member of NP, but this is also (easily) observed by the guess-and-check characterization of NP. For the hardness results, we will use Bounded-Extension Roman Domination as described in the previous section.
Theorem 10. The parameterized problem ω ( f ) \omega(f) ω ( f ) -Extension Roman Hitting Function is W[3 ] -hard even if the correspondence function is injective. Furthermore, ω ( f ) \omega(f) ω ( f ) -Bounded-Extension Roman Domination is W[3 ] -complete.
Proof. We will make use of Theorem 8, reducing from Bounded-Extension Roman Domination. Let ( G , f , h ) (G,f,h) ( G , f , h ) be an instance of the Bounded-Extension Roman Domination, with G = ( V , E ) G=(V,E) G = ( V , E ) . By Lemma 5, we can assume (1) f ≤ h f\le h f ≤ h and, moreover, (2) h ( v ) = 0 h(v)=0 h ( v ) = 0 implies h ( u ) = 2 h(u)=2 h ( u ) = 2 for some u ∈ N ( v ) u\in N(v) u ∈ N ( v ) . We parameterize by ω ( f ) \omega(f) ω ( f ) . For v ∈ X : = V ∖ h − 1 ( 0 ) v\in X:=V\setminus h^{-1}(0) v ∈ X := V ∖ h − 1 ( 0 ) , define T v : = ( N ( v ) ∖ h − 1 ( { 0 , 1 } ) ) ∪ { v } T_v:=(N(v)\setminus h^{-1}(\{0,1\}))\cup\{v\} T v := ( N ( v ) ∖ h − 1 ({ 0 , 1 })) ∪ { v } , and for v ∈ h − 1 ( 0 ) v\in h^{-1}(0) v ∈ h − 1 ( 0 ) , define T v : = ( N ( v ) ∖ h − 1 ( { 0 , 1 } ) ) T_v:=(N(v)\setminus h^{-1}(\{0,1\})) T v := ( N ( v ) ∖ h − 1 ({ 0 , 1 })) . Further, we set S ^ : = ( T v ) v ∈ V \widehat{S}:=(T_v)_{v\in V} S := ( T v ) v ∈ V and we define τ \tau τ as the correspondence satisfying τ ( v ) = v \tau(v)=v τ ( v ) = v and we let f ‾ : X → { 0 , 1 , 2 } , v ↦ f ( v ) \overline{f}:X\to\{0,1,2\},\ v\mapsto f(v) f : X → { 0 , 1 , 2 } , v ↦ f ( v ) , i.e., f ‾ = f ∣ X \overline{f}=f|_X f = f ∣ X . Let H = ( X , S ^ ) H=(X,\widehat{S}) H = ( X , S ) . Then, ( H , τ , f ‾ ) (H,\tau,\overline{f}) ( H , τ , f ) describes an instance of Extension Roman Hitting Function. The parameter is ω ( f ‾ ) \omega(\overline{f}) ω ( f ) for this instance. As f ≤ h f\le h f ≤ h , h ( v ) = 0 h(v)=0 h ( v ) = 0 implies f ( v ) = 0 f(v)=0 f ( v ) = 0 . Thus, ω ( f ) = ω ( f ‾ ) \omega(f)=\omega(\overline{f}) ω ( f ) = ω ( f ) , so that the parameter value does not change when moving from the Bounded-Extension Roman Domination instance to the ω ( f ) \omega(f) ω ( f ) -Extension Roman Hitting Function instance. Clearly, the described construction can be carried out in polynomial time. Trivially, the correspondence τ \tau τ is injective. What remains to be shown is the following claim.
Claim. ( G , f , h ) (G,f,h) ( G , f , h ) is a yes-instance of Bounded-Extension Roman Domination if and only if ( H , τ , f ‾ ) (H,\tau,\overline{f}) ( H , τ , f ) is a yes-instance of Extension Roman Hitting Function.
Proof. Let g g g be a minimal Roman dominating function on G G G with f ≤ g ≤ h f\le g\le h f ≤ g ≤ h . Define g ‾ : X → { 0 , 1 , 2 } , v ↦ g ( v ) \overline{g}:X\to\{0,1,2\},\ v\mapsto g(v) g : X → { 0 , 1 , 2 } , v ↦ g ( v ) , i.e., g ‾ = g ∣ X \overline{g}=g|_X g = g ∣ X . Thus, f ‾ ≤ g ‾ \overline{f}\le\overline{g} f ≤ g . Let v ∈ V v\in V v ∈ V . For g ( v ) ∈ { 1 , 2 } g(v)\in\{1,2\} g ( v ) ∈ { 1 , 2 } , T v T_v T v is hit by v v v . If g ( v ) = 0 g(v)=0 g ( v ) = 0 holds, there has to exist a w ∈ N ( v ) w\in N(v) w ∈ N ( v ) with g ( w ) = 2 g(w)=2 g ( w ) = 2 . This w w w hits T v T_v T v . Therefore, g ‾ \overline{g} g is a Roman hitting function. Assume g ‾ \overline{g} g is not minimal. Since τ \tau τ is injective, Constraint 0 of Theorem 4 is satisfied. Hence, either Constraint 1, Constraint 2, or the minimality of Constraint 3 of Theorem 4 has to be contradicted. If Constraint 1 is contradicted, this implies the existence of v , w ∈ V v,w \in V v , w ∈ V with g ˉ ( v ) = g ˉ ( v ) = 2 \bar{g}(v)=\bar{g}(v)=2 g ˉ ( v ) = g ˉ ( v ) = 2 , g ( w ) = g ˉ ( w ) = 1 g(w)=\bar{g}(w)=1 g ( w ) = g ˉ ( w ) = 1 and v ∈ T w = ( N ( w ) ∖ h − 1 ( { 0 , 1 } ) ) ∪ { w } ⊆ N [ w ] v \in T_w=(N(w)\setminus h^{-1}(\{0,1\}))\cup\{w\}\subseteq N[w] v ∈ T w = ( N ( w ) ∖ h − 1 ({ 0 , 1 })) ∪ { w } ⊆ N [ w ] . This contradicts the minimality of g g g as we can set g ( w ) = 0 g(w)=0 g ( w ) = 0 and still have a Roman dominating function.
Consider Constraint 2. Assume there exists a v ∈ g ˉ − 1 ( 2 ) v\in\bar{g}^{-1}(2) v ∈ g ˉ − 1 ( 2 ) such that for each w ∈ V ∖ { v } w\in V\setminus\{v\} w ∈ V ∖ { v } , T w ∩ g ˉ − 1 ( 2 ) ≠ { v } T_w\cap\bar{g}^{-1}(2)\ne\{v\} T w ∩ g ˉ − 1 ( 2 ) = { v } holds. Thus, for each w ∈ N ( v ) w\in N(v) w ∈ N ( v ) there exists a u ∈ ( T w ∩ N [ w ] ∩ g ˉ − 1 ( 2 ) ) ∖ { v } ⊆ ( N [ w ] ∩ g ˉ − 1 ( 2 ) ) ∖ { v } u\in(T_w\cap N[w]\cap\bar{g}^{-1}(2))\setminus\{v\}\subseteq(N[w]\cap\bar{g}^{-1}(2))\setminus\{v\} u ∈ ( T w ∩ N [ w ] ∩ g ˉ − 1 ( 2 )) ∖ { v } ⊆ ( N [ w ] ∩ g ˉ − 1 ( 2 )) ∖ { v } . This would imply that g g g is not minimal.
Concerning Constraint 3, consider T : = { T v ∣ v ∈ V , τ − 1 ( v ) ∩ g ˉ − 1 ( 1 ) = ∅ } = { ( N ( v ) ∩ h − 1 ( 2 ) ) ∪ { v } ∣ v ∈ V , g ˉ ( v ) ≠ 1 } \mathcal{T}:=\{T_v\mid v\in V,\tau^{-1}(v)\cap\bar{g}^{-1}(1)=\emptyset\}=\{(N(v)\cap h^{-1}(2))\cup\{v\}\mid v\in V,\bar{g}(v)\ne1\} T := { T v ∣ v ∈ V , τ − 1 ( v ) ∩ g ˉ − 1 ( 1 ) = ∅ } = {( N ( v ) ∩ h − 1 ( 2 )) ∪ { v } ∣ v ∈ V , g ˉ ( v ) = 1 } . If g ˉ ( v ) = 2 \bar{g}(v)=2 g ˉ ( v ) = 2 , then v v v trivially hits ( N ( v ) ∩ h − 1 ( 2 ) ) ∪ { v } (N(v)\cap h^{-1}(2))\cup\{v\} ( N ( v ) ∩ h − 1 ( 2 )) ∪ { v } . If g ˉ ( v ) = 0 \bar{g}(v)=0 g ˉ ( v ) = 0 , then for some w ∈ N ( v ) w\in N(v) w ∈ N ( v ) , g ( w ) = 2 g(w)=2 g ( w ) = 2 as g g g is a Roman dominating function of G G G . If g ( w ) = 2 g(w)=2 g ( w ) = 2 , then h ( w ) = 2 h(w)=2 h ( w ) = 2 , so that then v v v hits ( N ( v ) ∩ h − 1 ( 2 ) ) ∪ { v } (N(v)\cap h^{-1}(2))\cup\{v\} ( N ( v ) ∩ h − 1 ( 2 )) ∪ { v } . Hence, g ˉ − 1 ( 2 ) \bar{g}^{-1}(2) g ˉ − 1 ( 2 ) is a hitting set of T \mathcal{T} T . Assume that there exists some z ∈ g ˉ − 1 ( 2 ) z\in\bar{g}^{-1}(2) z ∈ g ˉ − 1 ( 2 ) such that g ˉ − 1 ( 2 ) ∖ { z } \bar{g}^{-1}(2)\setminus\{z\} g ˉ − 1 ( 2 ) ∖ { z } is also a hitting set of T \mathcal{T} T . Hence, for each T v ∈ T T_v\in\mathcal{T} T v ∈ T with z ∈ T v z\in T_v z ∈ T v , there is some y ∈ g ˉ − 1 ( 2 ) ∖ { z } y\in\bar{g}^{-1}(2)\setminus\{z\} y ∈ g ˉ − 1 ( 2 ) ∖ { z } with y ∈ T v y\in T_v y ∈ T v . If v = z v=z v = z , then y ∈ ( N ( v ) ∩ h − 1 ( 2 ) ) y\in(N(v)\cap h^{-1}(2)) y ∈ ( N ( v ) ∩ h − 1 ( 2 )) . Hence, h ( y ) = 2 h(y)=2 h ( y ) = 2 and hence g ˉ ( y ) = 2 \bar{g}(y)=2 g ˉ ( y ) = 2 . As y ∈ N ( z ) y\in N(z) y ∈ N ( z ) in this case, we could set g ( z ) = 0 g(z)=0 g ( z ) = 0 , possibly leading to a smaller Roman dominating function. Now assume v ≠ z v\ne z v = z . Then, z ∈ ( N ( v ) ∩ h − 1 ( 2 ) ) z\in(N(v)\cap h^{-1}(2)) z ∈ ( N ( v ) ∩ h − 1 ( 2 )) . Consider y ∈ T v y\in T_v y ∈ T v . If y = v y=v y = v , we can again argue that we may set g ( z ) = 0 g(z)=0 g ( z ) = 0 , possibly leading to a smaller Roman dominating function, because we found some y ∈ N ( z ) y\in N(z) y ∈ N ( z ) with g ( y ) = 2 g(y)=2 g ( y ) = 2 . If y ≠ v y\ne v y = v , then { y , z } ⊆ ( N ( v ) ∩ h − 1 ( 2 ) ) \{y,z\}\subseteq(N(v)\cap h^{-1}(2)) { y , z } ⊆ ( N ( v ) ∩ h − 1 ( 2 )) . As h ( v ) = 2 h(v)=2 h ( v ) = 2 implies g ( v ) = 2 g(v)=2 g ( v ) = 2 , also in this third case, we can set g ( z ) = 0 g(z)=0 g ( z ) = 0 . In summary, in each case, we can find a Roman dominating function for G G G that is smaller than g g g by setting g ( z ) = 0 g(z)=0 g ( z ) = 0 . This contradicts the minimality of g g g . By Theorem 4, g ˉ \bar{g} g ˉ is minimal.
Let g ˉ \bar{g} g ˉ be a minimal Roman hitting function, a solution to the instance ( H , τ , f ˉ ) (H,\tau,\bar{f}) ( H , τ , f ˉ ) . Define
g : V → { 0 , 1 , 2 } , v ↦ { g ˉ ( v ) , if v ∈ X , i.e., if h ( v ) ≠ 0 , 0 , if v ∉ X , i.e., if h ( v ) = 0. g:V\to\{0,1,2\},\ v\mapsto
\begin{cases}
\bar{g}(v), & \text{if }v\in X,\text{ i.e., if }h(v)\ne0,\\
0, & \text{if }v\notin X,\text{ i.e., if }h(v)=0.
\end{cases} g : V → { 0 , 1 , 2 } , v ↦ { g ˉ ( v ) , 0 , if v ∈ X , i.e., if h ( v ) = 0 , if v ∈ / X , i.e., if h ( v ) = 0.
As g ˉ \bar{g} g ˉ extends f ˉ \bar{f} f ˉ , we have f ˉ ≤ g ˉ \bar{f}\le\bar{g} f ˉ ≤ g ˉ . By construction, f ˉ ≤ h \bar{f}\le h f ˉ ≤ h , so that f ( v ) = 0 f(v)=0 f ( v ) = 0 for v ∉ X v\notin X v ∈ / X . Hence, f ˉ ≤ g \bar{f}\le g f ˉ ≤ g . Consider some y ∈ h − 1 ( 1 ) y\in h^{-1}(1) y ∈ h − 1 ( 1 ) . We show that then, g ( y ) ≤ 1 g(y)\le1 g ( y ) ≤ 1 , which proves g ≤ h g\le h g ≤ h . Since y ∈ h − 1 ( 1 ) y\in h^{-1}(1) y ∈ h − 1 ( 1 ) , y y y is only contained in the set T y = T τ ( y ) T_y=T_{\tau(y)} T y = T τ ( y ) among all sets in S ^ \hat{\mathcal{S}} S ^ . If g ( y ) = 2 g(y)=2 g ( y ) = 2 , i.e., g ˉ ( y ) = 2 \bar{g}(y)=2 g ˉ ( y ) = 2 , this would contradict Theorem 4, Constraint 2. We now prove that g g g is a Roman dominating function. Consider some v ∈ g − 1 ( 0 ) = g ˉ − 1 ( 0 ) ∪ h − 1 ( 0 ) v\in g^{-1}(0)=\bar{g}^{-1}(0)\cup h^{-1}(0) v ∈ g − 1 ( 0 ) = g ˉ − 1 ( 0 ) ∪ h − 1 ( 0 ) . If v ∈ h − 1 ( 0 ) v\in h^{-1}(0) v ∈ h − 1 ( 0 ) , there has to exist a u ∈ g ˉ − 1 ( 2 ) ∩ T v ⊆ g ˉ − 1 ( 2 ) ∩ N [ v ] u\in\bar{g}^{-1}(2)\cap T_v\subseteq\bar{g}^{-1}(2)\cap N[v] u ∈ g ˉ − 1 ( 2 ) ∩ T v ⊆ g ˉ − 1 ( 2 ) ∩ N [ v ] as there is no u ∈ X u\in X u ∈ X with τ ( u ) = v \tau(u)=v τ ( u ) = v . If v ∈ g ˉ − 1 ( 0 ) v\in\bar{g}^{-1}(0) v ∈ g ˉ − 1 ( 0 ) , there is no vertex in τ − 1 ( v ) ∩ g ˉ − 1 ( 1 ) \tau^{-1}(v)\cap\bar{g}^{-1}(1) τ − 1 ( v ) ∩ g ˉ − 1 ( 1 ) as τ ( v ) = v \tau(v)=v τ ( v ) = v . Therefore, there exists a u ∈ g ˉ − 1 ( 2 ) ∩ T v ⊆ g ˉ − 1 ( 2 ) ∩ N [ v ] u\in\bar{g}^{-1}(2)\cap T_v\subseteq\bar{g}^{-1}(2)\cap N[v] u ∈ g ˉ − 1 ( 2 ) ∩ T v ⊆ g ˉ − 1 ( 2 ) ∩ N [ v ] .
Next, we argue why g g g is minimal. Assume there are v , w ∈ V v,w\in V v , w ∈ V with g ˉ ( v ) = g ( v ) = 2 \bar{g}(v)=g(v)=2 g ˉ ( v ) = g ( v ) = 2 , g ˉ ( w ) = g ( w ) = 1 \bar{g}(w)=g(w)=1 g ˉ ( w ) = g ( w ) = 1 and { v , w } ∈ E \{v,w\}\in E { v , w } ∈ E , violating the first property of Theorem 1. This would contradict the minimality of g ˉ \bar{g} g ˉ as v ∈ ( N ( w ) ∖ h − 1 ( { 0 , 1 } ) ) ∪ { w } = T w v\in(N(w)\setminus h^{-1}(\{0,1\}))\cup\{w\}=T_w v ∈ ( N ( w ) ∖ h − 1 ({ 0 , 1 })) ∪ { w } = T w , because g ( v ) = 2 g(v)=2 g ( v ) = 2 implies h ( v ) = 2 h(v)=2 h ( v ) = 2 by g ≤ h g\le h g ≤ h . Assume that there is a v ∈ g − 1 ( 2 ) = g ˉ − 1 ( 2 ) v\in g^{-1}(2)=\bar{g}^{-1}(2) v ∈ g − 1 ( 2 ) = g ˉ − 1 ( 2 ) with N [ v ] ∖ g ˉ − 1 ( 2 ) ∖ { v } ⊆ { v } N[v]\setminus\bar{g}^{-1}(2)\setminus\{v\}\subseteq\{v\} N [ v ] ∖ g ˉ − 1 ( 2 ) ∖ { v } ⊆ { v } , violating the privacy property of Theorem 1. Thus, for each w ∈ N ( v ) w\in N(v) w ∈ N ( v ) , there is a t ∈ ( N [ w ] ∩ g ˉ − 1 ( 2 ) ) ⊆ ( N ( w ) ∖ h − 1 ( { 0 , 1 } ) ) ∪ { w } t\in(N[w]\cap\bar{g}^{-1}(2))\subseteq(N(w)\setminus h^{-1}(\{0,1\}))\cup\{w\} t ∈ ( N [ w ] ∩ g ˉ − 1 ( 2 )) ⊆ ( N ( w ) ∖ h − 1 ({ 0 , 1 })) ∪ { w } with t ≠ v t\ne v t = v . This contradicts Theorem 4 Constraint 2. Consider G ′ : = G [ g ˉ − 1 ( 0 ) ∪ g ˉ − 1 ( 2 ) ] G':=G[\bar{g}^{-1}(0)\cup\bar{g}^{-1}(2)] G ′ := G [ g ˉ − 1 ( 0 ) ∪ g ˉ − 1 ( 2 )] . As g g g is a Roman dominating function, D : = g − 1 ( 2 ) D:=g^{-1}(2) D := g − 1 ( 2 ) is a dominating set of G ′ G' G ′ . If D D D is not a minimal dominating set (hence violating the last constraint of Theorem 1), then there must be some v v v with g ( v ) = 2 g(v)=2 g ( v ) = 2 such that D ∖ { v } D\setminus\{v\} D ∖ { v } is also a dominating set. Hence, for each u ∈ N [ v ] u \in N[v] u ∈ N [ v ] , there is some v u ∈ N [ u ] ∩ ( D ∖ { v } ) v_u \in N[u] \cap(D \setminus\{v\}) v u ∈ N [ u ] ∩ ( D ∖ { v }) . By construction, for each such v u v_u v u , we have g ( v u ) = 2 g(v_u)=2 g ( v u ) = 2 and hence g ‾ ( v u ) = h ( v u ) = 2 \overline{g}(v_u)=h(v_u)=2 g ( v u ) = h ( v u ) = 2 and T v u ≠ { v u } T_{v_u} \ne\{v_u\} T v u = { v u } (). On the other hand, as g ‾ \overline{g} g is a minimal Roman hitting function, by the last constraint of Theorem 4, D = g − 1 ( 2 ) = g ‾ − 1 ( 2 ) D=g^{-1}(2)=\overline{g}^{-1}(2) D = g − 1 ( 2 ) = g − 1 ( 2 ) is a minimal hitting set of T : = { T x ∣ x ∈ V ∖ g ‾ − 1 ( 1 ) } \mathcal{T}:=\{T_x \mid x \in V\setminus\overline{g}^{-1}(1)\} T := { T x ∣ x ∈ V ∖ g − 1 ( 1 )} . As T x ⊆ N [ x ] T_x \subseteq N[x] T x ⊆ N [ x ] for all x ∈ V x \in V x ∈ V , ( D ∖ { v } ) (D \setminus\{v\}) ( D ∖ { v }) is not only a dominating set of G ′ G' G ′ but also a hitting set of T \mathcal{T} T because of ( ), contradicting minimality as stated in Theorem 4. As all possible violations of the characterization for minimal Roman dominating function as formulated in of Theorem 1 have been shown to contradict our assumptions, we must conclude that g g g is indeed a minimal Roman dominating function. ♢
This concludes our proof. □
As this is also a polynomial-time reduction, it implies following corollary.
Corollary 5. Extension Roman Hitting Function is N P NP N P -complete.
We know already that Extension Roman Hitting Function is polynomial-time solvable if the correspondence function is surjective. Since Extension Roman Hitting Function with injective correspondence function is as hard as the general Hitting Set problem, this leads to the question if κ 1 ( I ) = ∣ { i ∈ I ∣ τ − 1 ( i ) = ∅ } ∣ \kappa_1(\mathcal{I})=|\{i\in I\mid\tau^{-1}(i)=\emptyset\}| κ 1 ( I ) = ∣ { i ∈ I ∣ τ − 1 ( i ) = ∅ } ∣ could be a good parameter for this problem for each instance I = ( H , τ , f ) \mathcal{I}=(H,\tau,f) I = ( H , τ , f ) with H = ( V , ( s i ) i ∈ I ) H=(V,(s_i)_{i\in I}) H = ( V , ( s i ) i ∈ I ) , τ : V → I \tau:V\to I τ : V → I , f : V → { 0 , 1 , 2 } f:V\to\{0,1,2\} f : V → { 0 , 1 , 2 } , somehow measuring the distance from triviality again. In other words, we try to use parameterized complexity as a way to study the phenomenon that classical function properties as surjectivity seem to be crucial for finding polynomial-time algorithms for Extension Roman Hitting Function.
Theorem 11. κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function is W [ 3 ] W[3] W [ 3 ] -hard.
Proof. Observe that the reduction in the proof of Theorem 10 is also an FPT-reduction from the parameterized problem κ h − 1 ( 0 ) \kappa_{h^{-1}(0)} κ h − 1 ( 0 ) -Bounded-Extension Roman Domination to κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function, employing the parameter κ h − 1 ( 0 ) ( G , f , h ) = ∣ h − 1 ( 0 ) ∣ \kappa_{h^{-1}(0)}(G,f,h)=|h^{-1}(0)| κ h − 1 ( 0 ) ( G , f , h ) = ∣ h − 1 ( 0 ) ∣ , so that we can make use of Theorem 7 towards our claim. □
Theorem 12. κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function and κ h − 1 ( 0 ) \kappa_{h^{-1}(0)} κ h − 1 ( 0 ) -Bounded-Extension Roman Domination are W [ 3 ] W[3] W [ 3 ] -complete.
Proof. For the membership, we again use the Multicolored Independent Family problem. Let H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be a hypergraph with the correspondence function τ : X → I \tau:X\to I τ : X → I and two functions f : X → { 0 , 1 , 2 } f:X\to\{0,1,2\} f : X → { 0 , 1 , 2 } . We assume that Lemma 2 and Lemma 3 used exhaustively on f f f . Define the relation R = { ( x , y ) ∈ X 2 ∣ y ∈ f − 1 ( 1 ) , x ∈ s τ ( y ) } R=\{(x,y)\in X^2\mid y\in f^{-1}(1), x\in s_{\tau(y)}\} R = {( x , y ) ∈ X 2 ∣ y ∈ f − 1 ( 1 ) , x ∈ s τ ( y ) } . Let R ∗ R^* R ∗ be the transitive closure and R x : = { x } ∪ { y ∈ X ∣ ( x , y ) ∈ R x } R_x:=\{x\}\cup\{y\in X\mid(x,y)\in R_x\} R x := { x } ∪ { y ∈ X ∣ ( x , y ) ∈ R x } . We can show by an inductive argument on Lemma 2, that for any minimal Roman hitting function g : X → { 0 , 1 , 2 } g:X\to\{0,1,2\} g : X → { 0 , 1 , 2 } with f ≤ g f\leq g f ≤ g and g ( x ) = 2 g(x)=2 g ( x ) = 2 , also g ( y ) = 2 g(y)=2 g ( y ) = 2 for all y ∈ R x y\in R_x y ∈ R x .
We define U : = { n v ∣ v ∈ f − 1 ( { 0 , 1 } ) } ∪ { u x , i ∣ x ∈ X , i ∈ I ( x ) } U:=\{n_v\mid v\in f^{-1}(\{0,1\})\}\cup\{u_{x,i}\mid x\in X,i\in I(x)\} U := { n v ∣ v ∈ f − 1 ({ 0 , 1 })} ∪ { u x , i ∣ x ∈ X , i ∈ I ( x )} and A : = { i ∈ I ∣ τ − 1 ( i ) = ∅ } A:=\{i\in I\mid\tau^{-1}(i)=\emptyset\} A := { i ∈ I ∣ τ − 1 ( i ) = ∅ } . For x ∈ f − 1 ( { 0 , 1 } ) x\in f^{-1}(\{0,1\}) x ∈ f − 1 ({ 0 , 1 }) define W x : = { u y , i ∣ i ∈ I ( y ) , y ∈ s i ∖ { x } } W_x:=\{u_{y,i}\mid i\in I(y),y\in s_i\setminus\{x\}\} W x := { u y , i ∣ i ∈ I ( y ) , y ∈ s i ∖ { x }} and r x : = ⋃ y ∈ R x ( { n y } ∪ W y ) r_x:=\bigcup_{y\in R_x}(\{n_y\}\cup W_y) r x := ⋃ y ∈ R x ({ n y } ∪ W y ) . Furthermore, we need sets t x t_x t x for each x ∈ X x\in X x ∈ X . For x ∈ f − 1 ( 2 ) x\in f^{-1}(2) x ∈ f − 1 ( 2 ) , let t x : = { u x , i ∣ i ∈ I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x } ) ∪ { τ ( x ) } ) } t_x:=\{u_{x,i}\mid i\in I(x)\setminus(I(f^{-1}(2)\setminus\{x\})\cup\{\tau(x)\})\} t x := { u x , i ∣ i ∈ I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x }) ∪ { τ ( x )})} . If x ∉ f − 1 ( 2 ) x\notin f^{-1}(2) x ∈ / f − 1 ( 2 ) , then t x : = { η x } ∪ { u x , i ∣ i ∈ I ( x ) ∖ ( I ( f − 1 ( 2 ) ) ∪ { τ ( x ) } ) } t_x := \{\eta_x\} \cup\{u_{x,i} \mid i \in I(x) \setminus(I(f^{-1}(2)) \cup\{\tau(x)\})\} t x := { η x } ∪ { u x , i ∣ i ∈ I ( x ) ∖ ( I ( f − 1 ( 2 )) ∪ { τ ( x )})} . Now we can define the Multicolored Independent Family instance ( S i ) i ∈ A ∖ I ( f − 1 ( 2 ) ) × T (S_i)_{i \in A \setminus I(f^{-1}(2))} \times T ( S i ) i ∈ A ∖ I ( f − 1 ( 2 )) × T with T : = { t x ∣ x ∈ X } T := \{t_x \mid x \in X\} T := { t x ∣ x ∈ X } and S i : = { r x ∣ x ∈ s i } S_i := \{r_x \mid x \in s_i\} S i := { r x ∣ x ∈ s i } for i ∈ A ∖ I ( f − 1 ( 2 ) ) i \in A \setminus I(f^{-1}(2)) i ∈ A ∖ I ( f − 1 ( 2 )) .
Now we will explain the idea of each element: The set R x R_x R x includes each vertex which has to get value 2 (by Constraint 3), if x x x gets the value 2. A vertex x x x gets value 1 if and only if η x \eta_x η x is in a chosen hyperedge. If u x , i u_{x,i} u x , i not in the chosen hyperedges, then s i s_i s i does not contain any element of value 2 (besides x x x probably). Hence, t x t_x t x represents the possible private edges of x x x (beside η x \eta_x η x ). r x r_x r x describes the edges, which will be covered if x x x gets the value 2 (besides η y \eta_y η y possible).
Claim. ( S i ) i ∈ A ∖ I ( f − 1 ( 2 ) ) × T (S_i)_{i \in A \setminus I(f^{-1}(2))} \times T ( S i ) i ∈ A ∖ I ( f − 1 ( 2 )) × T is a yes-instance of Multicolored Independent Family if and only if ( H , τ , f ) (H,\tau,f) ( H , τ , f ) is a yes-instance of Roman Hitting Function.
Proof. Let g g g be a minimal Roman hitting function on H H H with respect to τ \tau τ with f ≤ g f \leq g f ≤ g . Hence, for each i ∈ A i \in A i ∈ A , there exists an x i ∈ s i ∩ g − 1 ( 2 ) x_i \in s_i \cap g^{-1}(2) x i ∈ s i ∩ g − 1 ( 2 ) . For each i ∈ A ′ : = A ∖ I ( f − 1 ( 2 ) ) i \in A' := A \setminus I(f^{-1}(2)) i ∈ A ′ := A ∖ I ( f − 1 ( 2 )) , choose r x i r_{x_i} r x i from S i S_i S i . Assume there is an x ∈ X x \in X x ∈ X with t x ⊆ ⋃ i ∈ A ′ r x i t_x \subseteq\bigcup_{i \in A'} r_{x_i} t x ⊆ ⋃ i ∈ A ′ r x i . If x ∈ f − 1 ( { 0 , 1 } ) x \in f^{-1}(\{0,1\}) x ∈ f − 1 ({ 0 , 1 }) , then η x ∈ ⋃ i ∈ A ′ r x i \eta_x \in\bigcup_{i \in A'} r_{x_i} η x ∈ ⋃ i ∈ A ′ r x i . Thus, there is an i ∈ A ′ i \in A' i ∈ A ′ such that ( x i , x ) ∈ R x i (x_i,x) \in R_{x_i} ( x i , x ) ∈ R x i . Recall, that ( x i , x ) ∈ R x i (x_i,x) \in R_{x_i} ( x i , x ) ∈ R x i together with g ( x i ) = 2 g(x_i)=2 g ( x i ) = 2 implies g ( x ) = 2 g(x)=2 g ( x ) = 2 . Furthermore, for each u y , i u_{y,i} u y , i with i ∈ I ( y ) ∖ ( I ( f − 1 ( 2 ) ) ∪ { τ ( y ) } ) i \in I(y) \setminus(I(f^{-1}(2)) \cup\{\tau(y)\}) i ∈ I ( y ) ∖ ( I ( f − 1 ( 2 )) ∪ { τ ( y )}) there is a j ∈ A ′ j \in A' j ∈ A ′ and a z ∈ R x j z \in R_{x_j} z ∈ R x j with u z , i ∈ w z u_{z,i} \in w_z u z , i ∈ w z . This implies, there is no private hyperedge for x x x under g g g and g g g is not minimal. Thus, t x ⊈ ⋃ i ∈ A ′ r x i t_x \not\subseteq\bigcup_{i \in A'} r_{x_i} t x ⊆ ⋃ i ∈ A ′ r x i . This analogously holds for x ∈ f − 1 ( 2 ) x \in f^{-1}(2) x ∈ f − 1 ( 2 ) .
Now let ( r x i ) i ∈ A ′ (r_{x_i})_{i \in A'} ( r x i ) i ∈ A ′ be solution for the Multicolored Independent Family instance. Define
B : = { x ∈ A ′ ∣ η x ∈ ⋃ i ∈ A ′ r x i } B := \{x \in A' \mid\eta_x \in\bigcup_{i \in A'} r_{x_i}\} B := { x ∈ A ′ ∣ η x ∈ i ∈ A ′ ⋃ r x i }
and
g : X → { 0 , 1 , 2 } , x ↦ { 2 , if x ∈ B , f ( x ) , otherwise. g\colon X \to\{0,1,2\}, \qquad x \mapsto
\begin{cases}
2, & \text{if } x \in B,\\
f(x), & \text{otherwise.}
\end{cases} g : X → { 0 , 1 , 2 } , x ↦ { 2 , f ( x ) , if x ∈ B , otherwise.
We want to show that P : = g − 1 ( 2 ) = B ∪ f − 1 ( 2 ) P := g^{-1}(2) = B \cup f^{-1}(2) P := g − 1 ( 2 ) = B ∪ f − 1 ( 2 ) fulfills the conditions of Theorem 5. Clearly, g − 1 ( 2 ) ⊆ P ⊆ g − 1 ( 1 ) ∪ g − 1 ( 2 ) g^{-1}(2) \subseteq P \subseteq g^{-1}(1) \cup g^{-1}(2) g − 1 ( 2 ) ⊆ P ⊆ g − 1 ( 1 ) ∪ g − 1 ( 2 ) . By definition of P P P , for all x ∈ P x \in P x ∈ P , η x ∉ t x ∖ ⋃ i ∈ A ′ r x i \eta_x \notin t_x \setminus\bigcup_{i \in A'} r_{x_i} η x ∈ / t x ∖ ⋃ i ∈ A ′ r x i if it even exists. Hence, for each x ∈ P x \in P x ∈ P there exists a i x ∈ I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x } ) ∪ { τ ( x ) } ) i_x \in I(x) \setminus(I(f^{-1}(2) \setminus\{x\}) \cup\{\tau(x)\}) i x ∈ I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x }) ∪ { τ ( x )}) with u x , i x ∈ t x ∖ ⋃ i ∈ A ′ r x i u_{x,i_x} \in t_x \setminus\bigcup_{i \in A'} r_{x_i} u x , i x ∈ t x ∖ ⋃ i ∈ A ′ r x i . Define now ρ : B → I \rho\colon B \to I ρ : B → I , x ↦ i x x \mapsto i_x x ↦ i x . This already implies ρ ( x ) ≠ τ ( x ) \rho(x) \ne\tau(x) ρ ( x ) = τ ( x ) and x ∈ s ρ ( x ) ∩ P x \in s_{\rho(x)} \cap P x ∈ s ρ ( x ) ∩ P . Assume there is a y ∈ ( s ρ ( x ) ∩ P ) ∖ { x } y \in(s_{\rho(x)} \cap P) \setminus\{x\} y ∈ ( s ρ ( x ) ∩ P ) ∖ { x } . Thus, either y ∈ f − 1 ( 2 ) y \in f^{-1}(2) y ∈ f − 1 ( 2 ) ( i x ∉ I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x } ) ∪ { τ ( x ) } ) ) (i_x \notin I(x) \setminus(I(f^{-1}(2) \setminus\{x\}) \cup\{\tau(x)\})) ( i x ∈ / I ( x ) ∖ ( I ( f − 1 ( 2 ) ∖ { x }) ∪ { τ ( x )})) or η y ∈ ⋃ i ∈ A ′ r x i \eta_y \in\bigcup_{i \in A'} r_{x_i} η y ∈ ⋃ i ∈ A ′ r x i . In the last case u x , i x ∈ w y ⊆ ⋃ i ∈ A ′ r x i u_{x,i_x} \in w_y \subseteq\bigcup_{i \in A'} r_{x_i} u x , i x ∈ w y ⊆ ⋃ i ∈ A ′ r x i . Hence, such a y y y does not exists and ( s ρ ( x ) ∩ P ) = { x } (s_{\rho(x)} \cap P)=\{x\} ( s ρ ( x ) ∩ P ) = { x } .
Assume there is an x ∈ g − 1 ( 1 ) ∖ P = g − 1 ( 1 ) ⊆ f − 1 ( 1 ) x \in g^{-1}(1) \setminus P = g^{-1}(1) \subseteq f^{-1}(1) x ∈ g − 1 ( 1 ) ∖ P = g − 1 ( 1 ) ⊆ f − 1 ( 1 ) with s τ ( x ) ∩ R 2 = ∅ s_{\tau(x)} \cap R_2 = \varnothing s τ ( x ) ∩ R 2 = ∅ . Then, τ ( x ) ∈ I ( f − 1 ( 2 ) ) \tau(x) \in I(f^{-1}(2)) τ ( x ) ∈ I ( f − 1 ( 2 )) or there is a y ∈ s τ ( x ) y \in s_{\tau(x)} y ∈ s τ ( x ) with η y ∈ ⋃ i ∈ A ′ r x i \eta_y \in\bigcup_{i \in A'} r_{x_i} η y ∈ ⋃ i ∈ A ′ r x i . Hence, either we could use Lemma 2 or x ∈ R y x \in R_y x ∈ R y . In both cases it is a contradiction and such an x x x does not exists. By definition of B B B and A ′ A' A ′ , for all A ⊆ I ( P ) A \subseteq I(P) A ⊆ I ( P ) . Hence Condition 4 is fulfilled and g g g is extensible. ⋄ \diamond ⋄
As ∣ A ′ ∣ ≤ ∣ A ∣ |A'| \leq|A| ∣ A ′ ∣ ≤ ∣ A ∣ , this is an FPT-reduction.
Now, we consider an explicit XP-algorithm for κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function; membership in XP already follows from Theorem 12 .
Lemma 6. The following problems are in XP:
κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function,
κ h − 1 ( 0 ) \kappa_{h^{-1}(0)} κ h − 1 ( 0 ) -Bounded-Extension Roman Domination, and
κ 2 − h \kappa_{2-h} κ 2 − h -Bounded-Extension Roman Domination.
Proof. For κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function and κ h − 1 ( 0 ) \kappa_{h^{-1}(0)} κ h − 1 ( 0 ) -Bounded-Extension Roman Domination, it is enough to show that κ 1 \kappa_1 κ 1 -Extension Roman Hitting Function ∈ \in ∈ XP. Let ( H , τ , f ) (H,\tau,f) ( H , τ , f ) be an instance with H = ( X , S ^ ) H=(X,\hat{S}) H = ( X , S ^ ) , S ^ = ( s i ) i ∈ I \hat{S}=(s_i)_{i\in I} S ^ = ( s i ) i ∈ I . This XP-algorithm is not difficult as we branch over each index in { i ∈ I ∣ τ − 1 ( i ) = ∅ } \{i\in I\mid\tau^{-1}(i)=\varnothing\} { i ∈ I ∣ τ − 1 ( i ) = ∅ } and try to hit the edge s i s_i s i with an element from X X X . If each edge is hit, we check with Algorithm 1 if there exists a minimal Roman hitting function which is bigger than this function. If Algorithm 1 returns yes, we also can return yes. Otherwise, we try another way to hit all the edges in S ∖ τ ( X ) S\setminus\tau(X) S ∖ τ ( X ) . This algorithm does run in time O ( n κ 1 ( H , τ , f ) ) O(n^{\kappa_1(H,\tau,f)}) O ( n κ 1 ( H , τ , f ) ) .
Now we consider κ 2 − h \kappa_{2-h} κ 2 − h -Bounded-Extension Roman Domination. Let ( G , f , h ) (G,f,h) ( G , f , h ) be an instance with G = ( V , E ) G=(V,E) G = ( V , E ) with f ≤ h f\leq h f ≤ h . First we want to set g ( x ) : = 2 g(x):=2 g ( x ) := 2 for each vertex x ∈ N ( f − 1 ( 2 ) ) ∩ f − 1 ( 1 ) x\in N(f^{-1}(2))\cap f^{-1}(1) x ∈ N ( f − 1 ( 2 )) ∩ f − 1 ( 1 ) . However, if the set N ( f − 1 ( 2 ) ) ∩ f − 1 ( 1 ) ∩ h − 1 ( { 0 , 1 } ) N(f^{-1}(2))\cap f^{-1}(1)\cap h^{-1}(\{0,1\}) N ( f − 1 ( 2 )) ∩ f − 1 ( 1 ) ∩ h − 1 ({ 0 , 1 }) is non-empty, we face a trivial no-instance, as for the solution g g g we are looking for, any vertex x x x with f ( x ) = 2 f(x)=2 f ( x ) = 2 satisfies g ( x ) = 2 g(x)=2 g ( x ) = 2 and moreover, a vertex y ∈ N ( x ) y\in N(x) y ∈ N ( x ) with f ( y ) = 1 f(y)=1 f ( y ) = 1 must be set to 2 2 2 by g g g , which is ruled out if h ( y ) ∈ { 0 , 1 } h(y)\in\{0,1\} h ( y ) ∈ { 0 , 1 } . As f ≤ g ≤ h f\leq g\leq h f ≤ g ≤ h , we can set g ( x ) : = 1 g(x):=1 g ( x ) := 1 for x ∈ f − 1 ( 1 ) ∩ h − 1 ( 1 ) x\in f^{-1}(1)\cap h^{-1}(1) x ∈ f − 1 ( 1 ) ∩ h − 1 ( 1 ) . After these settings, the XP-algorithm branches on each vertex in h − 1 ( 0 ) h^{-1}(0) h − 1 ( 0 ) and tries to dominate it by a neighbor in h − 1 ( 2 ) ∖ N ( f − 1 ( 1 ) ∩ h − 1 ( 1 ) ) h^{-1}(2)\setminus N(f^{-1}(1)\cap h^{-1}(1)) h − 1 ( 2 ) ∖ N ( f − 1 ( 1 ) ∩ h − 1 ( 1 )) . As 2 ⋅ ∣ h − 1 ( 0 ) ∣ ≤ ω ( 2 − h ) 2\cdot|h^{-1}(0)|\leq\omega(2-h) 2 ⋅ ∣ h − 1 ( 0 ) ∣ ≤ ω ( 2 − h ) , in total we have at most n ω ( 2 − h ) 2 n^{\frac{\omega(2-h)}{2}} n 2 ω ( 2 − h ) possibilities to do this. After each of these possible settings for g g g , where we define g ( x ) : = f ( x ) g(x):=f(x) g ( x ) := f ( x ) for any hitherto undefined vertex x x x , we run the polynomial-time algorithm for Extension Roman Domination from [4 ] , with g g g as the lower-bound function. This algorithm will work, as each vertex in h − 1 ( 0 ) h^{-1}(0) h − 1 ( 0 ) is dominated (the undominated vertices are the ones which are set to 1 1 1 ) and there is no vertex in N ( f − 1 ( 2 ) ) ∩ f − 1 ( 1 ) ∩ h − 1 ( 1 ) N(f^{-1}(2))\cap f^{-1}(1)\cap h^{-1}(1) N ( f − 1 ( 2 )) ∩ f − 1 ( 1 ) ∩ h − 1 ( 1 ) .
We are discussing several other parameterizations in the following that either lead to para-NP-hardness results (in Theorem 13 ) or to FPT-results (in Theorem 14).
Theorem 13. κ ζ \kappa_\zeta κ ζ -Extension Roman Hitting Function is para-NP-hard for each parameterization described by ζ ∈ { ∣ f − 1 ( 0 ) ∣ , ∣ f − 1 ( 1 ) ∣ , ∣ f − 1 ( 2 ) ∣ , ∣ f − 1 ( { 0 , 2 } ) ∣ } \zeta\in\{|f^{-1}(0)|,|f^{-1}(1)|,|f^{-1}(2)|,|f^{-1}(\{0,2\})|\} ζ ∈ { ∣ f − 1 ( 0 ) ∣ , ∣ f − 1 ( 1 ) ∣ , ∣ f − 1 ( 2 ) ∣ , ∣ f − 1 ({ 0 , 2 }) ∣ } .
Proof. For all the reductions that we show in this proof, we use the NP-completeness of Extension Hitting Set. Let H = ( X , S ^ = ( s i ) i ∈ I ) H=(X,\hat{S}=(s_i)_{i\in I}) H = ( X , S ^ = ( s i ) i ∈ I ) be a hypergraph with U ⊆ X U\subseteq X U ⊆ X , I ∩ X = ∅ I\cap X=\varnothing I ∩ X = ∅ and elements a , i b , i c ∉ X ∪ I a,i_b,i_c\notin X\cup I a , i b , i c ∈ / X ∪ I . We define X ′ = X ∪ { a } X'=X\cup\{a\} X ′ = X ∪ { a } , I ′ = I ∪ X ∪ { i b , i c } I'=I\cup X\cup\{i_b,i_c\} I ′ = I ∪ X ∪ { i b , i c } . For each parameterization, we prove that even if the parameter takes values zero or one and is hence fixed, each of the obtained problems can be used to solve arbitrary instances of Extension Hitting Set. First we will consider the parameter κ ζ \kappa_{\zeta} κ ζ with ζ ∈ { f − 1 ( 0 ) , f − 1 ( 2 ) , f − 1 ( { 0 , 2 } ) } \zeta\in\{f^{-1}(0), f^{-1}(2), f^{-1}(\{0,2\})\} ζ ∈ { f − 1 ( 0 ) , f − 1 ( 2 ) , f − 1 ({ 0 , 2 })} . Define the hypergraph H ′ = ( X ′ , ( s i ′ ) i ∈ I ′ ) H' = (X',(s'_i)_{i\in I'}) H ′ = ( X ′ , ( s i ′ ) i ∈ I ′ ) and the correspondence τ \tau τ with
τ : X ′ → I ′ , x ↦ { x , if x ∈ X , i b , if x = a , s i ′ : = { s i , if i ∈ I , { a , i } , if i ∈ U , { i } , if i ∈ X ∖ U , X ′ , if i = i b , { a } , if i = i c . \begin{aligned}
\tau&: X' \to I',\ x \mapsto
\begin{cases}
x, & \text{if } x \in X,\\
i_b, & \text{if } x = a,
\end{cases}
&
s'_i &:=
\begin{cases}
s_i, & \text{if } i \in I,\\
\{a,i\}, & \text{if } i \in U,\\
\{i\}, & \text{if } i \in X \setminus U,\\
X', & \text{if } i = i_b,\\
\{a\}, & \text{if } i = i_c.
\end{cases}
\end{aligned} τ : X ′ → I ′ , x ↦ { x , i b , if x ∈ X , if x = a , s i ′ := ⎩ ⎨ ⎧ s i , { a , i } , { i } , X ′ , { a } , if i ∈ I , if i ∈ U , if i ∈ X ∖ U , if i = i b , if i = i c .
for i ∈ I ′ i \in I' i ∈ I ′ . Furthermore, we need
f : X ′ → { 0 , 1 , 2 } , x ↦ { 2 , if x = a , 1 , if x ∈ X . f : X' \to\{0,1,2\},\ x \mapsto
\begin{cases}
2, & \text{if } x = a,\\
1, & \text{if } x \in X.
\end{cases} f : X ′ → { 0 , 1 , 2 } , x ↦ { 2 , 1 , if x = a , if x ∈ X .
This implies ∣ f − 1 ( { 0 , 2 } ) ∣ = 1 = ∣ f − 1 ( 2 ) ∣ |f^{-1}(\{0,2\})| = 1 = |f^{-1}(2)| ∣ f − 1 ({ 0 , 2 }) ∣ = 1 = ∣ f − 1 ( 2 ) ∣ and ∣ f − 1 ( 0 ) ∣ = 0 |f^{-1}(0)| = 0 ∣ f − 1 ( 0 ) ∣ = 0 , i.e., the parameter values are constant.
Claim. ( H , U ) (H,U) ( H , U ) is a yes-instance of Extension Hitting Set if and only if ( H ′ , τ , f ) (H',\tau,f) ( H ′ , τ , f ) is a yes-instance of Extension Roman Hitting Function.
Proof. First, we use Lemma 2 exhaustively. As f ( a ) = 2 f(a) = 2 f ( a ) = 2 and a ∈ s τ ( x ) a \in s_{\tau(x)} a ∈ s τ ( x ) for x ∈ U x \in U x ∈ U , ( H ′ , τ , f ) (H',\tau,f) ( H ′ , τ , f ) is a yes-instance of Extension Roman Hitting Function if and only if ( H ′ , τ , f ~ ) (H',\tau,\tilde{f}) ( H ′ , τ , f ~ ) with f ~ ( x ) = 2 \tilde{f}(x) = 2 f ~ ( x ) = 2 for x ∈ U ∪ { a } x \in U \cup\{a\} x ∈ U ∪ { a } and f ~ ( x ) = 1 \tilde{f}(x) = 1 f ~ ( x ) = 1 for x ∈ X ∖ U x \in X \setminus U x ∈ X ∖ U is a yes-instance of Extension Roman Hitting Function. Assume that there exists a minimal Roman hitting function g g g of ( H ′ , τ ) (H',\tau) ( H ′ , τ ) with f ~ ≤ g \tilde{f} \leq g f ~ ≤ g . Define D = g − 1 ( 2 ) ∖ { a } D = g^{-1}(2) \setminus\{a\} D = g − 1 ( 2 ) ∖ { a } . As a ∉ s i ′ = s i a \notin s'_i = s_i a ∈ / s i ′ = s i for each i ∈ I i \in I i ∈ I (i.e., τ − 1 ( i ) = ∅ \tau^{-1}(i) = \varnothing τ − 1 ( i ) = ∅ ), s i ∩ D ≠ ∅ s_i \cap D \ne\varnothing s i ∩ D = ∅ for such an i i i . If there existed an x ∈ D x \in D x ∈ D with for each i ∈ I ( x ) i \in I(x) i ∈ I ( x ) there is a y ∈ s i ∩ ( D ∖ { x } ) y \in s_i \cap(D \setminus\{x\}) y ∈ s i ∩ ( D ∖ { x }) , then this would contradict Constraint 2 of Theorem 4. Hence, D D D is a minimal hitting set.
Assume that there is a minimal hitting set D ⊆ X D \subseteq X D ⊆ X on H H H with U ⊆ D U \subseteq D U ⊆ D . Define g ∈ { 0 , 1 , 2 } X ′ g \in\{0,1,2\}^{X'} g ∈ { 0 , 1 , 2 } X ′ with g ( x ) = 2 g(x) = 2 g ( x ) = 2 for x ∈ D ∪ { a } x \in D \cup\{a\} x ∈ D ∪ { a } and g ( x ) = 1 g(x) = 1 g ( x ) = 1 for x ∈ X ∖ D x \in X \setminus D x ∈ X ∖ D . We use Theorem 4 to show that g g g is a minimal Roman hitting function. Since s τ ( x ) = { x } s_{\tau(x)} = \{x\} s τ ( x ) = { x } for each x ∈ g − 1 ( 1 ) = X ∖ D ⊆ X ∖ U x \in g^{-1}(1) = X \setminus D \subseteq X \setminus U x ∈ g − 1 ( 1 ) = X ∖ D ⊆ X ∖ U , the two first constraints hold. The fact that D D D is a minimal hitting set on H H H and s i c ∩ g − 1 ( 2 ) = { a } s_{i_c} \cap g^{-1}(2) = \{a\} s i c ∩ g − 1 ( 2 ) = { a } imply Constraint 2. Constraint 3 follows, because D D D is a hitting set on H H H and the hyperedges ( s i ′ ) i ∈ I ′ ∖ I (s'_i)_{i\in I'\setminus I} ( s i ′ ) i ∈ I ′ ∖ I are hit by { a } ∪ ( X ∖ D ) \{a\} \cup(X \setminus D) { a } ∪ ( X ∖ D ) . Therefore, g g g is a minimal Roman hitting function of H ′ H' H ′ .
:::
Next, we take a look at the parameter described by ∣ f − 1 ( 1 ) ∣ |f^{-1}(1)| ∣ f − 1 ( 1 ) ∣ . Define the hypergraph H ′ ′ = ( X ′ , ( s i ′ ′ ) i ∈ I ′ ) H'' = (X',(s''_i)_{i\in I'}) H ′′ = ( X ′ , ( s i ′′ ) i ∈ I ′ ) . Furthermore, we define the hyperedges s i ′ ′ s_i'' s i ′′ for i ∈ I ′ i \in I' i ∈ I ′ as follows:
s i ′ ′ ≔ { s i , if i ∈ I , { a , i } , if i ∈ X , X ′ , if i = i b , { a } , if i = i c . s_i'' \coloneqq
\begin{cases}
s_i, & \text{if } i \in I,\\
\{a,i\}, & \text{if } i \in X,\\
X', & \text{if } i = i_b,\\
\{a\}, & \text{if } i = i_c.
\end{cases} s i ′′ : = ⎩ ⎨ ⎧ s i , { a , i } , X ′ , { a } , if i ∈ I , if i ∈ X , if i = i b , if i = i c .
Define f ′ : X ′ → { 0 , 1 , 2 } f' : X' \to\{0,1,2\} f ′ : X ′ → { 0 , 1 , 2 } with f ′ − 1 ( 2 ) = U ∪ { a } {f'}^{-1}(2) = U \cup\{a\} f ′ − 1 ( 2 ) = U ∪ { a } and f ′ − 1 ( 0 ) = X ∖ U {f'}^{-1}(0) = X \setminus U f ′ − 1 ( 0 ) = X ∖ U . Thus f ′ − 1 ( 1 ) = 0 {f'}^{-1}(1) = 0 f ′ − 1 ( 1 ) = 0 , i.e., the parameter value is constant.
Claim. ( H , U ) (H,U) ( H , U ) is a yes-instance of Extension Hitting Set if and only if ( H ′ ′ , τ , f ′ ) (H'',\tau,f') ( H ′′ , τ , f ′ ) is a yes-instance of Extension Roman Hitting Function.
Proof. First, we assume that there is a minimal Roman hitting function g g g on H ′ ′ H'' H ′′ , τ \tau τ with f ′ ≤ g f' \leq g f ′ ≤ g . Define D : = g − 1 ( 2 ) ∖ { a } D := g^{-1}(2) \setminus\{a\} D := g − 1 ( 2 ) ∖ { a } . As τ − 1 ( i ) = ∅ \tau^{-1}(i) = \varnothing τ − 1 ( i ) = ∅ for each i ∈ I i \in I i ∈ I , s i ∩ D s_i \cap D s i ∩ D is not empty and D D D is a hitting set of H H H . If there exists an x ∈ D x \in D x ∈ D such that, for each i ∈ I ( x ) i \in I(x) i ∈ I ( x ) , there is a y ∈ s i ∩ ( D ∖ { x } ) y \in s_i \cap(D \setminus\{x\}) y ∈ s i ∩ ( D ∖ { x }) , then this would contradict Constraint 2 of Theorem 4. Hence, D D D is a minimal hitting set.
Assume that there is a minimal hitting set D ⊆ X D \subseteq X D ⊆ X on H H H with U ⊆ D U \subseteq D U ⊆ D . Define g : X → { 0 , 1 , 2 } g : X \to\{0,1,2\} g : X → { 0 , 1 , 2 } with g − 1 ( 2 ) = D ∪ { a } g^{-1}(2) = D \cup\{a\} g − 1 ( 2 ) = D ∪ { a } and g − 1 ( 0 ) = X ∖ D g^{-1}(0) = X \setminus D g − 1 ( 0 ) = X ∖ D . Trivially, f ′ ≤ g f' \leq g f ′ ≤ g holds. We will use Theorem 4 to show that g g g is a minimal Roman hitting function. Since g − 1 ( 1 ) g^{-1}(1) g − 1 ( 1 ) is empty, the first two constraints, i.e., Constraints 0 and 1, are fulfilled. As D D D is a minimal hitting set of H H H and each hyperedge of H H H is also a hyperedge of H ′ H' H ′ , Constraint 2 also holds. For the last constraint, we have to consider i ∈ I i \in I i ∈ I , only, since g ( a ) = 2 g(a) = 2 g ( a ) = 2 . From the fact that D D D is a minimal hitting set on H H H and s i c ′ ′ s_{i_c}'' s i c ′′ is only hit by a a a , the last constraint of Theorem 4 follows. Thus, g g g is a minimal Roman hitting function.
This finishes the discussion of all parameters.
Finally, we present some (rather straightforward) algorithmic results, based on different parameterizations.
Theorem 14. κ ζ \kappa_{\zeta} κ ζ -Extension Roman Hitting Function ∈ F P T \in FPT ∈ F P T for ζ ∈ { ω ( 2 − f ) , ∣ f − 1 ( { 0 , 1 } ) ∣ } \zeta\in\{\omega(2-f), |f^{-1}(\{0,1\})|\} ζ ∈ { ω ( 2 − f ) , ∣ f − 1 ({ 0 , 1 }) ∣ } .
Proof. We will present a simple FPT-algorithm. Let ( H = ( X , S ^ ) , τ , f ) (H = (X,\hat{S}),\tau,f) ( H = ( X , S ^ ) , τ , f ) be an instance. The idea is to walk through all functions g : X → { 0 , 1 , 2 } g : X \to\{0,1,2\} g : X → { 0 , 1 , 2 } with f ≤ g f \leq g f ≤ g and test if g g g is a minimal Roman hitting function. This runs in FPT-time as, for vertices x ∈ X x \in X x ∈ X with f ( x ) = 0 f(x) = 0 f ( x ) = 0 , there are 3 choices, for f ( x ) = 1 f(x) = 1 f ( x ) = 1 , there are 2 choices and for f ( x ) = 2 f(x) = 2 f ( x ) = 2 , there is only 1 choice. Furthermore, we can check in polynomial time if a function is a minimal Roman hitting function (such an algorithm can be constructed by modifying Algorithm 1 in a straightforward way). Therefore, there are
( ∏ x ∈ f − 1 ( 0 ) 3 ) ⋅ ( ∏ x ∈ f − 1 ( 1 ) 2 ) ≤ ( ∏ x ∈ f − 1 ( 0 ) 2 2 − f ( x ) ) ⋅ ( ∏ x ∈ f − 1 ( 1 ) 2 2 − f ( x ) ) \left(\prod_{x \in f^{-1}(0)} 3\right) \cdot\left(\prod_{x \in f^{-1}(1)} 2\right)
\leq
\left(\prod_{x \in f^{-1}(0)} 2^{2-f(x)}\right) \cdot\left(\prod_{x \in f^{-1}(1)} 2^{2-f(x)}\right) x ∈ f − 1 ( 0 ) ∏ 3 ⋅ x ∈ f − 1 ( 1 ) ∏ 2 ≤ x ∈ f − 1 ( 0 ) ∏ 2 2 − f ( x ) ⋅ x ∈ f − 1 ( 1 ) ∏ 2 2 − f ( x ) = 2 ω ( 2 − f ( x ) ) = 2^{\omega(2-f(x))} = 2 ω ( 2 − f ( x ))
or
( ∏ x ∈ f − 1 ( 0 ) 3 ) ( ∏ x ∈ f − 1 ( 1 ) 2 ) ≤ ( ∏ x ∈ f − 1 ( 0 ) 3 ) ( ∏ x ∈ f − 1 ( 1 ) 3 ) = 3 ∣ f − 1 ( { 0 , 1 } ) ∣ \begin{aligned}
\left(\prod_{x\in f^{-1}(0)}3\right)\left(\prod_{x\in f^{-1}(1)}2\right)\leq\left(\prod_{x\in f^{-1}(0)}3\right)\left(\prod_{x\in f^{-1}(1)}3\right) \\
&=3^{\lvert f^{-1}(\{0,1\})\rvert}
\end{aligned} x ∈ f − 1 ( 0 ) ∏ 3 x ∈ f − 1 ( 1 ) ∏ 2 ≤ x ∈ f − 1 ( 0 ) ∏ 3 x ∈ f − 1 ( 1 ) ∏ 3 = 3 ∣ f − 1 ({ 0 , 1 })∣
many possibilities for g g g .
Enumerating Minimal Roman Hitting Functions
In this section, we consider the output-sensitive complexity of enumerating minimal Roman hitting functions. We start by showing that enumerating minimal Roman hitting functions is transversal-hard. We then complement the transversal-hardness result by proving the converse implication: if all minimal hitting sets of an arbitrary hypergraph can be enumerated with polynomial delay, then all minimal Roman hitting functions of an arbitrary instance ( H , τ ) (H,\tau) ( H , τ ) can be enumerated with polynomial delay. Together with the transversal-hardness theorem, this establishes a polynomial-delay equivalence between the two enumeration problems. Additionally, the technique we use in this converse direction allows us to prove, with some modification and additional analysis, that there is an FPT-delay algorithm to enumerate the minimal Roman hitting functions of an arbitrary instance ( H , τ ) (H,\tau) ( H , τ ) parameterized by κ 1 \kappa_1 κ 1 .
From these results, it follows as a corollary that enumerating minimal Roman hitting functions is possible with polynomial delay if the correspondence function is surjective.
Recall that for a given hypergraph H H H and correspondence function τ \tau τ , μ − R H F ( H ) \mu-\mathcal{RHF}(H) μ − R HF ( H ) denotes the set of minimal Roman hitting functions with respect to H H H and τ \tau τ .
Theorem 15 (Transversal hardness theorem). If there would be an algorithm to enumerate all minimal Roman hitting function of an arbitrary instance ( H , τ ) (H,\tau) ( H , τ ) (even when τ \tau τ is injective) with polynomial delay, then there is an algorithm that enumerates all minimal hitting sets of an arbitrary hypergraph H ′ H' H ′ with polynomial delay.
Proof. Let H = ( X , ( S i ) i ∈ I ) H=(X,(S_i)_{i\in I}) H = ( X , ( S i ) i ∈ I ) be a hypergraph. We will use the same construction for a hypergraph H ′ ′ = ( X ′ , { S i ′ ′ } i ∈ I ′ ) H''=(X',\{S_i''\}_{i\in I'}) H ′′ = ( X ′ , { S i ′′ } i ∈ I ′ ) as in the proof of Theorem 13. Recall the following notation: X ′ : = { a } ∪ X X':=\{a\}\cup X X ′ := { a } ∪ X , I ′ : = { i b , i c } ∪ X ∪ I I':=\{i_b,i_c\}\cup X\cup I I ′ := { i b , i c } ∪ X ∪ I ,
τ ′ : X ′ → I ′ , x ↦ { x , x ∈ X i b , x = a , ∀ i ∈ I ′ : S i ′ ′ : = { S i , i ∈ I , { a , i } , i ∈ X , X ′ , i = i b , { a } , i = i c . \tau':X'\to I',\ x\mapsto\begin{cases}x,&x\in X\\i_b,&x=a\end{cases},\quad\forall i\in I':\ S_i'':=\begin{cases}S_i,&i\in I,\\\{a,i\},&i\in X,\\X',&i=i_b,\\\{a\},&i=i_c.\end{cases} τ ′ : X ′ → I ′ , x ↦ { x , i b , x ∈ X x = a , ∀ i ∈ I ′ : S i ′′ := ⎩ ⎨ ⎧ S i , { a , i } , X ′ , { a } , i ∈ I , i ∈ X , i = i b , i = i c .
Since τ − 1 ( i c ) = ∅ \tau^{-1}(i_c)=\varnothing τ − 1 ( i c ) = ∅ and S i c ′ ′ = { a } S_{i_c}''=\{a\} S i c ′′ = { a } , f ( a ) = 2 f(a)=2 f ( a ) = 2 for each Roman hitting function f : X ′ → { 0 , 1 , 2 } f:X'\to\{0,1,2\} f : X ′ → { 0 , 1 , 2 } . Thus, for each minimal Roman hitting function f : X ′ → { 0 , 1 , 2 } f:X'\to\{0,1,2\} f : X ′ → { 0 , 1 , 2 } and x ∈ X x\in X x ∈ X , f ( x ) ≠ 1 f(x)\ne1 f ( x ) = 1 , otherwise it contradicts Constraint 1 of Theorem 4. Hence, f − 1 ( 1 ) f^{-1}(1) f − 1 ( 1 ) is empty for each minimal Roman hitting function f f f of H ′ ′ H'' H ′′ .
We will show that there is a bijective function T T T between the minimal hitting sets of H H H and the minimal Roman hitting function of H ′ ′ H'' H ′′ . This function maps each minimal hitting set D D D to g : X ′ → { 0 , 1 , 2 } g : X' \to\{0,1,2\} g : X ′ → { 0 , 1 , 2 } with g − 1 ( 0 ) = X ∖ D g^{-1}(0)=X\setminus D g − 1 ( 0 ) = X ∖ D , g − 1 ( 2 ) = { a } ∪ D g^{-1}(2)=\{a\}\cup D g − 1 ( 2 ) = { a } ∪ D . In the proof of Theorem 13 , we have already shown that g g g is a minimal Roman hitting function of H ′ ′ H'' H ′′ . The inverse function maps a minimal Roman hitting function g g g to g − 1 ( 2 ) ∖ { a } g^{-1}(2)\setminus\{a\} g − 1 ( 2 ) ∖ { a } , which is a minimal hitting set by the proof of Theorem 13 . Since we can compute T ( D ) T(D) T ( D ) and T − 1 ( g ) T^{-1}(g) T − 1 ( g ) for a minimal hitting set and for a minimal Roman hitting function g g g , respectively, in polynomial time, the theorem holds.
We now define some terminology which the subsequent theorems in this section use. An index i ∈ I i\in I i ∈ I is owned if τ − 1 ( i ) ≠ ∅ \tau^{-1}(i)\ne\varnothing τ − 1 ( i ) = ∅ , and unowned otherwise. We write I o w n : = τ ( X ) I_{\mathrm{own}}:=\tau(X) I own := τ ( X ) and I u n : = I ∖ τ ( X ) I_{\mathrm{un}}:=I\setminus\tau(X) I un := I ∖ τ ( X ) .
For a hypergraph H = ( ( X , ( s i ) i ∈ I ) H=((X,(s_i)_{i\in I}) H = (( X , ( s i ) i ∈ I ) and a correspondence function τ \tau τ , define P H , C ( x ) : = I ( x ) ∖ I ( C ∖ { x } ) P_{H,C}(x):=I(x)\setminus I(C\setminus\{x\}) P H , C ( x ) := I ( x ) ∖ I ( C ∖ { x }) and
R ( H , τ ) : = { C ⊆ X ∣ { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( C ) ∧ ∀ x ∈ C : P H , C ( x ) ⊈ { τ ( x ) } } . \mathcal{R}(H,\tau):=\{C\subseteq X\mid\{i\in I\mid\tau^{-1}(i)=\varnothing\}\subseteq I(C)\land\forall x\in C:P_{H,C}(x)\nsubseteq\{\tau(x)\}\}. R ( H , τ ) := { C ⊆ X ∣ { i ∈ I ∣ τ − 1 ( i ) = ∅ } ⊆ I ( C ) ∧ ∀ x ∈ C : P H , C ( x ) ⊈ { τ ( x )}} .
The set P H , C ( x ) P_{H,C}(x) P H , C ( x ) consists of the indices of the hyperedges that are private to x x x with respect to C C C ; that is, these edges are hit by C C C only at x x x . We call every set C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) a Roman support of ( H , τ ) (H,\tau) ( H , τ ) . Equivalently, a Roman support hits every unowned hyperedge, and each of its vertices has a private hyperedge whose index is different from the index owned by that vertex. Here, “support” refers specifically to the set f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) , rather than to the ordinary support f − 1 ( { 1 , 2 } ) f^{-1}(\{1,2\}) f − 1 ({ 1 , 2 }) of a function. Corollary 6, which follows from the lemma below, tells us that a Roman support is a necessary support component of a minimal Roman hitting function.
Lemma 7. Let H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be a hypergraph and τ \tau τ be a correspondence function. Then Ψ H : μ - R H F ( H ) → R ( H , τ ) \Psi_H:\mu\text{-}\mathit{RHF}(H)\to\mathcal{R}(H,\tau) Ψ H : μ - RHF ( H ) → R ( H , τ ) , f ↦ f − 1 ( 2 ) f\mapsto f^{-1}(2) f ↦ f − 1 ( 2 ) is a surjective function, and for all C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) , Ψ H − 1 ( C ) \Psi_H^{-1}(C) Ψ H − 1 ( C ) can be enumerated with polynomial delay and polynomial space.
Proof. By Theorem 4, Ψ H \Psi_H Ψ H is well-defined. Let C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) . Let ( x i ) i ∈ I ∖ I ( C ) (x_i)_{i\in I\setminus I(C)} ( x i ) i ∈ I ∖ I ( C ) be a sequence such that, for all i ∈ I ∖ I ( C ) i\in I\setminus I(C) i ∈ I ∖ I ( C ) , x i ∈ τ − 1 ( i ) x_i\in\tau^{-1}(i) x i ∈ τ − 1 ( i ) . Define f C : = 2 χ C + χ { x i ∣ i ∈ I ∖ I ( C ) } f_C:=2\chi_C+\chi_{\{x_i\mid i\in I\setminus I(C)\}} f C := 2 χ C + χ { x i ∣ i ∈ I ∖ I ( C )} . f C f_C f C is minimal by Theorem 4 as, for each i ∈ I ∖ I ( C ) i\in I\setminus I(C) i ∈ I ∖ I ( C ) , there is exactly one element x i ∈ f C − 1 ( 1 ) x_i\in f_C^{-1}(1) x i ∈ f C − 1 ( 1 ) . Hence, Ψ H \Psi_H Ψ H is surjective.
Now, we want to prove that for all C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) and f ∈ Ψ H − 1 ( C ) f\in\Psi_H^{-1}(C) f ∈ Ψ H − 1 ( C ) , there exists a sequence ( x i ) i ∈ I ∖ I ( C ) (x_i)_{i\in I\setminus I(C)} ( x i ) i ∈ I ∖ I ( C ) with x i ∈ τ − 1 ( i ) x_i\in\tau^{-1}(i) x i ∈ τ − 1 ( i ) for all i ∈ I ∖ I ( C ) i\in I\setminus I(C) i ∈ I ∖ I ( C ) such that f = 2 χ C + χ { x i ∣ i ∈ I ∖ I ( C ) } f=2\chi_C+\chi_{\{x_i\mid i\in I\setminus I(C)\}} f = 2 χ C + χ { x i ∣ i ∈ I ∖ I ( C )} . Since f f f is a Roman hitting function, there exists a y i ∈ τ − 1 ( i ) y_i\in\tau^{-1}(i) y i ∈ τ − 1 ( i ) for each i ∈ I ∖ I ( C ) i\in I\setminus I(C) i ∈ I ∖ I ( C ) . Thus, f ′ = 2 χ C + χ { y i ∣ i ∈ I ∖ I ( C ) } ≤ f f'=2\chi_C+\chi_{\{y_i\mid i\in I\setminus I(C)\}}\leq f f ′ = 2 χ C + χ { y i ∣ i ∈ I ∖ I ( C )} ≤ f . Clearly, f ′ f' f ′ is a Roman hitting function. Therefore, f = f ′ f=f' f = f ′ and there exists a sequence ( y i ) i ∈ I ∖ I ( C ) (y_i)_{i\in I\setminus I(C)} ( y i ) i ∈ I ∖ I ( C ) with f = 2 χ C + χ { y i ∣ i ∈ I ∖ I ( C ) } f=2\chi_C+\chi_{\{y_i\mid i\in I\setminus I(C)\}} f = 2 χ C + χ { y i ∣ i ∈ I ∖ I ( C )} . Keep in mind that we can choose any combination of elements from τ − 1 ( i ) \tau^{-1}(i) τ − 1 ( i ) for all i ∈ I ∖ I ( C ) i\in I\setminus I(C) i ∈ I ∖ I ( C ) . The next combination can therefore be constructed in polynomial time and at most quadratic space. Thus, we can enumerate Ψ H − 1 ( C ) \Psi_H^{-1}(C) Ψ H − 1 ( C ) with polynomial delay and polynomial space.
Since Ψ H \Psi_H Ψ H is a well-defined surjective mapping, we obtain the following corollary.
Corollary 6. Let H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be a hypergraph, τ \tau τ be a correspondence function and C ⊆ X C\subseteq X C ⊆ X . Then, there exists a minimal Roman hitting function f ∈ { 0 , 1 , 2 } X f\in\{0,1,2\}^{X} f ∈ { 0 , 1 , 2 } X with f − 1 ( 2 ) = C f^{-1}(2)=C f − 1 ( 2 ) = C if and only if C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) .
Theorem 16. If the minimal hitting sets of arbitrary hypergraphs can be enumerated with polynomial delay, then the minimal Roman hitting functions of every instance ( H , τ ) (H,\tau) ( H , τ ) can be enumerated with polynomial delay.
Proof. Fix an arbitrary hypergraph H = ( X , ( s i ) i ∈ I ) H=(X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) and an arbitrary correspondence τ : X → I \tau:X\to I τ : X → I . Define H u n : = ( X , ( s i ) i ∈ I u n ) H_{\mathrm{un}}:=(X,(s_i)_{i\in I_{\mathrm{un}}}) H un := ( X , ( s i ) i ∈ I un ) .
Claim (Deletion property). Let B B B be a Roman support and let C ⊆ B C\subseteq B C ⊆ B . If C C C hits every unowned hyperedge, then C C C is a Roman support.
Proof. By assumption, C C C hits every unowned hyperedge. In order to certify the additional private hyperedge condition necessary to render a set a Roman support, let x ∈ C x\in C x ∈ C be arbitrary. Then x ∈ B x\in B x ∈ B , and by virtue of B B B being a Roman support, there is some index i x ∈ I ∖ { τ ( x ) } i_x\in I\setminus\{\tau(x)\} i x ∈ I ∖ { τ ( x )} for which s i x ∩ B = { x } s_{i_x}\cap B=\{x\} s i x ∩ B = { x } . From C ⊆ B C\subseteq B C ⊆ B and x ∈ C x\in C x ∈ C , it follows that s i x ∩ C = { x } s_{i_x}\cap C=\{x\} s i x ∩ C = { x } . i x ≠ τ ( x ) i_x\ne\tau(x) i x = τ ( x ) holds as a simple consequence of the nature of the set over which i x i_x i x is quantified. Therefore, C C C meets all of the criteria required to be a Roman support. ◇
Claim. The minimal hitting sets of H u n H_{\mathrm{un}} H un are exactly the inclusion-minimal Roman supports of ( H , τ ) (H,\tau) ( H , τ ) in R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) (a Roman support B ∈ R ( H , τ ) B\in\mathcal{R}(H,\tau) B ∈ R ( H , τ ) is inclusion-minimal in R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) if there is no C ∈ R ( H , τ ) C\in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) for which C ⊊ B C\subsetneq B C ⊊ B ).
Proof. We prove that the set of all minimal hitting sets of H u n H_{\mathrm{un}} H un is equal to the set of all inclusion-minimal Roman supports of ( H , τ ) (H,\tau) ( H , τ ) by showing both of the relevant inclusions.
For the forward inclusion, let T T T be a minimal hitting set of H u n H_{\mathrm{un}} H un . Since T T T is a hitting set of H u n H_{\mathrm{un}} H un , it hits every hyperedge s i s_i s i with i ∈ I u n i\in I_{\mathrm{un}} i ∈ I un . Now let x ∈ T x\in T x ∈ T be arbitrary. By the minimality of T T T , T ∖ { x } T\setminus\{x\} T ∖ { x } fails to hit some unowned hyperedge s i s_i s i with i ∈ I u n i\in I_{\mathrm{un}} i ∈ I un . Now we have s i ∩ T = { x } s_i\cap T=\{x\} s i ∩ T = { x } : x x x must be part of the intersection, as the fact that it was the specific absence of x x x which made T ∖ { x } T\setminus\{x\} T ∖ { x } fail to hit s i s_i s i implies x ∈ s i x\in s_i x ∈ s i ; moreover, s i ∩ T s_i\cap T s i ∩ T cannot contain elements other than x x x , as then T ∖ { x } T\setminus\{x\} T ∖ { x } would have indeed hit s i s_i s i . Crucially, i ∈ I u n = I ∖ τ ( X ) i\in I_{\mathrm{un}}=I\setminus\tau(X) i ∈ I un = I ∖ τ ( X ) , so we have i ≠ τ ( x ) i\ne\tau(x) i = τ ( x ) . Thus i ∈ P H , T ( x ) ∖ { τ ( x ) } i\in P_{H,T}(x)\setminus\{\tau(x)\} i ∈ P H , T ( x ) ∖ { τ ( x )} , and T T T is a Roman support. T T T must be an inclusion-minimal Roman support, because any proper subset of T T T would fail to hit some hyperedge of H u n H_{\mathrm{un}} H un .
Now let B B B be an inclusion-minimal Roman support. By definition, B B B is a hitting set of H u n H_{\mathrm{un}} H un . Assume for the sake of contradiction that B B B is not a minimal hitting set of H u n H_{\mathrm{un}} H un . Then there exists a set C ⊊ B C\subsetneq B C ⊊ B that is a hitting set of H u n H_{\mathrm{un}} H un . By the previous deletion claim, C C C is a Roman support, which contradicts the inclusion-minimality of B B B . Hence, B B B is a minimal hitting set of $H_{\mathrm{un}}. ◇
Fix an arbitrary total order ≺ \prec ≺ on X X X . For every B ∈ R ( H , τ ) B\in\mathcal{R}(H,\tau) B ∈ R ( H , τ ) , define
D ( B ) : = { x ∈ B ∣ B ∖ { x } ∉ R ( H , τ ) } D(B):=\{x\in B\mid B\setminus\{x\}\notin\mathcal{R}(H,\tau)\} D ( B ) := { x ∈ B ∣ B ∖ { x } ∈ / R ( H , τ )}
Thus, D ( B ) D(B) D ( B ) is the set of vertices whose deletion from B B B leaves another Roman support.
If D ( B ) ≠ ∅ D(B) \ne\varnothing D ( B ) = ∅ , define the parent of B B B by
p ( B ) : = B ∖ { max ≺ D ( B ) } . p(B) := B \setminus\{\max_{\prec} D(B)\}. p ( B ) := B ∖ { ≺ max D ( B )} .
Since X X X is finite and ≺ \prec ≺ is a total order on X X X , max ≺ D ( B ) \max_{\prec} D(B) max ≺ D ( B ) is uniquely determined whenever D ( B ) D(B) D ( B ) is nonempty. If D ( B ) = ∅ D(B) = \varnothing D ( B ) = ∅ , then we call B B B a root.
Let F p \mathcal{F}_p F p be the directed graph with vertex set R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) and with an arc from B B B to p ( B ) p(B) p ( B ) for every B ∈ R ( H , τ ) B \in\mathcal{R}(H,\tau) B ∈ R ( H , τ ) satisfying D ( B ) ≠ ∅ D(B) \ne\varnothing D ( B ) = ∅ . In the claim below, a rooted forest is an acyclic graph whose constituent trees have one of their nodes designated as a root.
Claim. The directed graph F p \mathcal{F}_p F p is a rooted forest whose roots — in the above sense of the elements of R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) which render D ( ⋅ ) D(\cdot) D ( ⋅ ) empty — are exactly the minimal hitting sets of H u n H_{\mathrm{un}} H un .
Proof. First we show that D ( B ) = ∅ D(B) = \varnothing D ( B ) = ∅ if and only if B B B is inclusion-minimal in R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) . By the previous claim, this would imply that the roots of F p \mathcal{F}_p F p are exactly the minimal hitting sets of H u n H_{\mathrm{un}} H un .
If D ( B ) ≠ ∅ D(B) \ne\varnothing D ( B ) = ∅ , then B ∖ { x } ∈ R ( H , τ ) B \setminus\{x\} \in\mathcal{R}(H,\tau) B ∖ { x } ∈ R ( H , τ ) for some x ∈ B x \in B x ∈ B , and B B B is not inclusion-minimal in R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) .
Conversely, assume that B B B is not inclusion-minimal in R ( H , τ ) \mathcal{R}(H,\tau) R ( H , τ ) . Then there exists a C ∈ R ( H , τ ) C \in\mathcal{R}(H,\tau) C ∈ R ( H , τ ) for which C ⊂ B C \subset B C ⊂ B . Let x ∈ B ∖ C x \in B \setminus C x ∈ B ∖ C . Since C C C is a Roman support, it hits every hyperedge of H u n H_{\mathrm{un}} H un ; this implies that B ∖ { x } B \setminus\{x\} B ∖ { x } hits every hyperedge of H u n H_{\mathrm{un}} H un , because C ⊆ B ∖ { x } C \subseteq B \setminus\{x\} C ⊆ B ∖ { x } . The deletion claim earlier in this proof then gives us that B ∖ { x } B \setminus\{x\} B ∖ { x } is a Roman support. As such, x ∈ D ( B ) x \in D(B) x ∈ D ( B ) , and D ( B ) ≠ ∅ D(B) \ne\varnothing D ( B ) = ∅ .
Now we show that F p \mathcal{F}_p F p is a rooted forest. Every non-root Roman support B B B has exactly one parent: D ( B ) ≠ ∅ D(B) \ne\varnothing D ( B ) = ∅ , and the total order ≺ \prec ≺ makes p ( B ) p(B) p ( B ) unique. Moreover, by the definition of D ( B ) D(B) D ( B ) , p ( B ) p(B) p ( B ) is itself a Roman support, and ∣ p ( B ) ∣ = ∣ B ∣ − 1 |p(B)| = |B| - 1 ∣ p ( B ) ∣ = ∣ B ∣ − 1 . Since R ( H , τ ) ⊆ 2 X \mathcal{R}(H,\tau) \subseteq2^X R ( H , τ ) ⊆ 2 X is finite, repeated application of p p p from any Roman support must terminate at a Roman support B ∗ B^* B ∗ for which D ( B ∗ ) = ∅ D(B^*) = \varnothing D ( B ∗ ) = ∅ . Thus every Roman support belongs to a component containing a root. The root at which repeated application of p p p must eventually terminate is unique, because the parent of any Roman support is unique.
Moreover, it is impossible for there to be a cycle in F p \mathcal{F}_p F p : every directed arc in F p \mathcal{F}_p F p leads from a Roman support to its parent, and thus the head of such an arc is a set with strictly lesser cardinality than the tail of said arc. The presence of a cycle in F p \mathcal{F}_p F p would imply that a Roman support in F p \mathcal{F}_p F p has two cardinalities — “its” cardinality, and then an even smaller cardinality based on applying the cardinality-decreasing property of successive arcs leading back to said Roman support.
Therefore, F p \mathcal{F}_p F p is a rooted forest. ◇
We now use the rooted forest F p \mathcal{F}_p F p to define a reverse-search algorithm, which algorithm uses as a tool the polynomial-delay algorithm for enumerating the minimal hitting sets of H u n H_{\mathrm{un}} H un whose existence this proof assumes. When the minimal-hitting-set enumerator outputs a root, this is not itself an output of the reverse-search algorithm at that time; the root is only output by the reverse-search algorithm later when the recursive procedure it employs is invoked on it.
The reverse-search algorithm performs the following steps. Run (simulate) the polynomial-delay algorithm for enumerating the minimal hitting sets of H u n H_{\mathrm{un}} H un until it either outputs a minimal hitting set of H u n H_{\mathrm{un}} H un or reports that no further minimal hitting set exists. If the latter eventuality occurs, the reverse-search algorithm terminates. In the former case, the reverse-search algorithm suspends the minimal-hitting-set enumerator and runs the recursive procedure specified by the following on the enumerated root. The recursive procedure takes as input a Roman support B B B , and first outputs B B B . Then, for each y ∈ X ∖ B y \in X \setminus B y ∈ X ∖ B , the procedure sets C : = B ∪ { y } C := B \cup\{y\} C := B ∪ { y } , and if C C C is a Roman support and p ( C ) = B p(C) = B p ( C ) = B , the procedure recursively visits C C C . After the recursive procedure terminates, the reverse-search algorithm resumes the minimal-hitting-set enumerator, and repeats the same treatment of the assumed enumerator: if it outputs a root, the reverse-search algorithm pauses the minimal-hitting-set enumerator and runs the recursive procedure outlined above on the enumerated root, upon the conclusion of which it resumes the minimal-hitting-set enumerator; if the minimal-hitting-set enumerator terminates, the reverse-search algorithm terminates. This process continues until the minimal-hitting-set enumerator, and in turn the reverse-search algorithm, terminates.
For a vertex B B B of F p \mathcal{F}_p F p , define the depth of B B B to be the number of arcs in the unique directed path from B B B to the root of its tree.
Claim (Correctness of reverse search). The reverse-search algorithm outputs every Roman support exactly once.
Proof. We first show that every Roman support is output by the reverse-search algorithm. Fix a rooted tree of F p \mathcal{F}_p F p ; we show that for all depths d d d in the tree, every Roman support in said tree at depth d d d is output. We proceed by induction on d d d .
At depth 0, the root of the tree is a minimal hitting set of H u n H_{\mathrm{un}} H un by the preceding claim; it will thus be produced due to the assumed existence of a minimal-hitting-set enumerator, and the reverse-search algorithm will call its recursive procedure on it and output it.
Now assume that the reverse-search algorithm outputs every Roman support at depth d d d in the fixed tree. Let C C C be a Roman support in the same tree at depth d + 1 d + 1 d + 1 . Then p ( C ) = B p(C) = B p ( C ) = B for some roman support B B B at depth d d d in the tree. Since p ( C ) = B p(C) = B p ( C ) = B , there is a unique vertex y ∈ X ∖ B y \in X \setminus B y ∈ X ∖ B for which C = B ∪ { y } C = B \cup\{y\} C = B ∪ { y } . By the induction hypothesis, the reverse-search algorithm outputs B B B . Therefore, it visits B B B , considers this vertex y y y , and, conditional on C C C both being a Roman support and satisfying p ( C ) = B p(C) = B p ( C ) = B , outputs C C C . It is indeed the case that C C C is a Roman support and p ( C ) = B p(C) = B p ( C ) = B . Thus, after validating that these two conditions hold, the reverse-search algorithm will recursively visit C C C , whereupon the set C C C will be output.
We next show by induction on d d d that for every Roman support B B B at depth d d d in a rooted tree of F p \mathcal{F}_p F p , the set B B B is output no more than once by the reverse-search algorithm.
If d = 0 d = 0 d = 0 , this holds because every root is produced exactly once by the minimal-hitting-set enumerator, and the reverse-search algorithm invokes the recursive procedure exactly once on each root produced by that enumerator. Moreover, a sequence of recursive calls made by the recursive procedure cannot return to the root on which it was invoked, because the recursive procedure, when visiting a Roman support B B B , only recurses on Roman supports of which B B B is the parent, and a root has no parent.
Now assume that every Roman support of depth d d d is output at most once. Then if C C C is a Roman support of depth d + 1 d+1 d + 1 , its unique parent p ( C ) p(C) p ( C ) is output at most once, and is therefore visited by the recursive procedure at most once. When the recursive procedure is visiting p ( C ) p(C) p ( C ) , it will only consider C C C once, because there is a unique vertex y ∈ C ∖ p ( C ) y \in C \setminus p(C) y ∈ C ∖ p ( C ) such that C = p ( C ) ∪ { y } C = p(C) \cup\{y\} C = p ( C ) ∪ { y } , so the recursive procedure only considers y y y once. Because a non-root Roman support can be output only when the reverse-search procedure is visiting its unique parent, the set C C C is output no more than once by the reverse-search algorithm. ⋄ \diamond ⋄
Claim. The reverse-search algorithm enumerates all Roman supports with polynomial delay.
Proof. By assumption, the roots of F p \mathcal{F}_p F p (i.e., the minimal hitting sets of H u n \mathcal{H}_{\mathrm{un}} H un ) can be enumerated with polynomial delay. Thus the time before the reverse-search algorithm outputs its first Roman support is polynomial.
We now argue that the time between two successive enumerations of the reverse-search algorithm, if both enumerations are elements in the same rooted tree of F p \mathcal{F}_p F p , is polynomially bounded. Between enumerating two elements in the same rooted tree of F p \mathcal{F}_p F p , the reverse-search algorithm will only check, for each subset C C C of X X X formed by adding to the set B B B it is visiting some y ∈ X ∖ B y \in X \setminus B y ∈ X ∖ B , whether C C C is a Roman support and p ( C ) = B p(C) = B p ( C ) = B , and if each of these checks come back in the negative, it will backtrack to some other Roman support. During this process, when the reverse-search algorithm is still visiting B B B , polynomially many such C C C are considered hereby; in particular, the reverse-search algorithm constructs exactly ∣ X ∖ B ∣ |X \setminus B| ∣ X ∖ B ∣ of them. For a single set C C C for which ∣ C ∣ = ∣ B ∣ + 1 |C| = |B| + 1 ∣ C ∣ = ∣ B ∣ + 1 , performing the two checks which the reverse-search algorithm performs on C C C consumes a polynomial amount of time. Namely, testing whether C C C is a Roman support can be done in polynomial time: one can scan all indices in I u n I_{\mathrm{un}} I un to verify that C ∩ s i ≠ ∅ C \cap s_i \ne\varnothing C ∩ s i = ∅ for each i ∈ I u n i \in I_{\mathrm{un}} i ∈ I un , and, for every x ∈ C x \in C x ∈ C , scan all indices i ∈ I ∖ { τ ( x ) } i \in I \setminus\{\tau(x)\} i ∈ I ∖ { τ ( x )} and check whether there exists at least one such index satisfying s i ∩ C = { x } s_i \cap C = \{x\} s i ∩ C = { x } . The check p ( C ) = B p(C) = B p ( C ) = B can also be done in polynomial time. D ( C ) D(C) D ( C ) can be computed by testing, for every c ∈ C c \in C c ∈ C , whether C ∖ { c } ∈ R ( H , τ ) C \setminus\{c\} \in\mathcal{R}(H,\tau) C ∖ { c } ∈ R ( H , τ ) ; and if D ( C ) ≠ ∅ D(C) \ne\varnothing D ( C ) = ∅ , computing max ≺ D ( C ) \max_{\prec} D(C) max ≺ D ( C ) and comparing C ∖ { max ≺ D ( C ) } C \setminus\{\max_{\prec} D(C)\} C ∖ { max ≺ D ( C )} with B B B completes the desired check. If the reverse-search algorithm backtracks to another Roman support after performing these checks, it will do so in polynomial time: the depth of a rooted tree in F p \mathcal{F}_p F p is at most ∣ X ∣ |X| ∣ X ∣ , since the cardinality of the vertices in a directed path in F p \mathcal{F}_p F p decreases by 1 across every directed arc, due to the nature of the parent function.
After the reverse-search algorithm has finished enumerating each of the Roman supports in one rooted tree, the polynomial-delay minimal-hitting-set enumerator whose existence we are assuming produces the next root, or reports that no root remains, in polynomial time. Therefore, the reverse-search algorithm enumerates all Roman supports with polynomial delay. ⋄ \diamond ⋄
The enumeration algorithm A e n u m A_{\mathrm{enum}} A enum we give for the minimal Roman hitting functions uses the reverse-search algorithm as a tool. As with the reverse-search algorithm’s use of the minimal-hitting-set enumerator, A e n u m A_{\mathrm{enum}} A enum runs the reverse-search algorithm internally, pausing it after it outputs a Roman support. Specifically, whenever the reverse-search algorithm is still search algorithm produces a Roman support B B B , A e n u m A_{\mathrm{enum}} A enum suspends the reverse-search algorithm and enumerates all minimal Roman hitting functions f f f satisfying f − 1 ( 2 ) = B f^{-1}(2)=B f − 1 ( 2 ) = B using the polynomial delay procedure from Lemma 7. A e n u m A_{\mathrm{enum}} A enum then resumes the simulation of the reverse-search algorithm until it either outputs a Roman support or terminates. When the reverse-search algorithm terminates, A e n u m A_{\mathrm{enum}} A enum terminates.
The outputs of the reverse-search algorithm which ensue due to its use as an internal tool of A e n u m A_{\mathrm{enum}} A enum are not actually enumerated by A e n u m A_{\mathrm{enum}} A enum .
First of all, A e n u m A_{\mathrm{enum}} A enum outputs every minimal Roman hitting function. To see this, let f f f be an arbitrary minimal Roman hitting function. By Lemma 7, f − 1 ( 2 ) ∈ R ( H , τ ) f^{-1}(2)\in\mathcal{R}(H,\tau) f − 1 ( 2 ) ∈ R ( H , τ ) . Thus f − 1 ( 2 ) f^{-1}(2) f − 1 ( 2 ) is a Roman support, and the reverse-search algorithm will eventually output B B B such that B = f − 1 ( 2 ) B=f^{-1}(2) B = f − 1 ( 2 ) . At this point, A e n u m A_{\mathrm{enum}} A enum employs the procedure from Lemma 7 to enumerate all minimal Roman hitting functions g g g satisfying g − 1 ( 2 ) = B g^{-1}(2)=B g − 1 ( 2 ) = B ; in particular f f f is output by A e n u m A_{\mathrm{enum}} A enum .
Now suppose for the sake of contradiction that A e n u m A_{\mathrm{enum}} A enum enumerates some minimal Roman hitting function f f f twice. The two enumerations of f f f on the part of A e n u m A_{\mathrm{enum}} A enum could not have occurred when invoking the polynomial delay procedure from Lemma 7 to enumerate all minimal Roman hitting functions satisfying f − 1 ( 2 ) = B f^{-1}(2)=B f − 1 ( 2 ) = B , since, if they had done so, the referenced polynomial delay procedure from Lemma 7 would not be a valid enumeration algorithm. Therefore, there must exist two Roman supports B 1 B_1 B 1 and B 2 B_2 B 2 which the reverse-search algorithm enumerates at different times, for which f − 1 ( 2 ) = B 1 f^{-1}(2)=B_1 f − 1 ( 2 ) = B 1 and f − 1 ( 2 ) = B 2 f^{-1}(2)=B_2 f − 1 ( 2 ) = B 2 . But then B 1 = B 2 B_1=B_2 B 1 = B 2 holds by transitivity, and B 1 B_1 B 1 and B 2 B_2 B 2 could not have been output at different times by the reverse-search algorithm.
The algorithm A e n u m A_{\mathrm{enum}} A enum has polynomial delay. If the reverse-search algorithm reports that no Roman support exists, then A e n u m A_{\mathrm{enum}} A enum terminates within polynomial time without producing an output. Otherwise, the time between the initialization of A e n u m A_{\mathrm{enum}} A enum and the first output of A e n u m A_{\mathrm{enum}} A enum is polynomial, because the reverse-search algorithm enumerates its first output a polynomial amount of time after its initiation, and the enumerator from Lemma 7 which A e n u m A_{\mathrm{enum}} A enum uses as a subroutine likewise produces its first output in polynomial time.
It follows from Lemma 7 that the delay between two enumerations of minimal Roman hitting functions satisfying f − 1 ( 2 ) = B f^{-1}(2)=B f − 1 ( 2 ) = B , for some Roman support B B B , is polynomial. By the surjectivity of Ψ H \Psi_H Ψ H established by Lemma 7, for every Roman support B B B , there exists a minimal Roman hitting function f f f for which f − 1 ( 2 ) = B f^{-1}(2)=B f − 1 ( 2 ) = B . Thus, after the reverse-search algorithm outputs a Roman support, A e n u m A_{\mathrm{enum}} A enum enumerates a minimal Roman hitting function within a polynomial amount of time. Between the last function in the preimage of one Roman support and the first function in the preimage of the next Roman support, there is but a polynomial-delay termination of the enumerator from Lemma 7, a polynomial-delay transition to the next Roman support taken up by reverse-search, and a polynomial-delay initialization of the enumerator from Lemma 7, in that order. Finally, the time between the last enumerated minimal Roman hitting function and the termination of A e n u m A_{\mathrm{enum}} A enum is polynomial, because the time between the last enumerated minimal Roman hitting function and the termination of the enumerator from Lemma 7 is polynomial, and the time between last enumerated Roman support of the reverse-search algorithm and the termination of the reverse-search algorithm is polynomial. This proves the theorem.
Theorems 15 and 16 give us the following corollary.
Corollary 7 (Polynomial-delay Equivalence). There exists a polynomial-delay algorithm that, given an arbitrary instance ( H , τ ) (H,\tau) ( H , τ ) , enumerates all of the minimal Roman hitting functions of ( H , τ ) (H,\tau) ( H , τ ) , if and only if there exists a polynomial-delay algorithm that, given an arbitrary hypergraph, enumerates all of its minimal hitting sets.
Since there is no known polynomial-delay algorithm for enumerating minimal hitting sets, we now consider a corresponding parameterized enumeration problem in the following. The notation is based on [21 ] .
E = ( Q , κ , Sol ) E = (Q, \kappa, \operatorname{Sol}) E = ( Q , κ , Sol ) is a parameterized enumeration problem (over a finite alphabet Σ \Sigma Σ ) if
Q ⊆ Σ ∗ Q \subseteq\Sigma^* Q ⊆ Σ ∗ ,
κ : Σ ∗ → N \kappa: \Sigma^* \to\mathbb{N} κ : Σ ∗ → N , the so-called parameterization, is a computable function, and
Sol : Σ ∗ → 2 Σ ∗ \operatorname{Sol} : \Sigma^* \to2^{\Sigma^*} Sol : Σ ∗ → 2 Σ ∗ is a function such that for all x ∈ Σ ∗ x \in\Sigma^* x ∈ Σ ∗ , Sol ( x ) \operatorname{Sol}(x) Sol ( x ) is a finite set and Sol ( x ) ≠ ∅ \operatorname{Sol}(x) \ne\varnothing Sol ( x ) = ∅ if and only if x ∈ Q x \in Q x ∈ Q .
For a parameterized enumeration problem E = ( Q , κ , Sol ) E = (Q, \kappa, \operatorname{Sol}) E = ( Q , κ , Sol ) over the alphabet Σ \Sigma Σ , x ∈ Σ ∗ x \in\Sigma^* x ∈ Σ ∗ is an instance, with the parameter κ ( x ) \kappa(x) κ ( x ) , and Sol ( x ) \operatorname{Sol}(x) Sol ( x ) is the set of solutions of x x x (for an appropriate notion of ‘solution’, e.g., a minimal hitting set). The goal is to enumerate all elements in Sol ( x ) \operatorname{Sol}(x) Sol ( x ) without repetition.
An enumeration algorithm for a parameterized enumeration problem has FPT-delay if there exists a polynomial p p p and a computable function t : N → N t : \mathbb{N} \to\mathbb{N} t : N → N such that the time from the start of the program to outputting the first solution, and the time from outputting the last output to the program halt, as well as the time between any two consecutive solution outputs is bounded by t ( κ ( x ) ) p ( ∣ x ∣ ) t(\kappa(x))p(|x|) t ( κ ( x )) p ( ∣ x ∣ ) .
The following corollary is obtained by a combination of the proof of Theorem 16 and the minimal-hitting-set enumeration algorithm of [11 ] .
Corollary 8 (FPT-delay parameterized by κ 1 \kappa_1 κ 1 ). There exists a polynomial-space, FPT-delay enumeration algorithm for minimal Roman hitting functions when parameterized by κ 1 = ∣ I u n ∣ \kappa_1 = |I_{\mathrm{un}}| κ 1 = ∣ I un ∣ .
Proof. Let H = ( X , ( s i ) i ∈ I ) H = (X,(s_i)_{i\in I}) H = ( X , ( s i ) i ∈ I ) be a hypergraph and τ : X → I \tau: X \to I τ : X → I a correspondence function. As in the proof of Theorem 16 , define H u n : = ( X , ( s i ) i ∈ I u n ) H_{\mathrm{un}} := (X,(s_i)_{i\in I_{\mathrm{un}}}) H un := ( X , ( s i ) i ∈ I un ) . Because we would like to apply the minimal-hitting-set enumerator from [11 ] , but that minimal-hitting-set enumerator applies only to hypergraphs whose edges collection is a set, in contradistinction to how H u n H_{\mathrm{un}} H un may contain repeated hyperedges, we define an auxiliary hypergraph formed by deleting repeated hyperedges in H u n H_{\mathrm{un}} H un . Let S u n = { s i ∣ i ∈ I u n } S_{\mathrm{un}} = \{s_i \mid i \in I_{\mathrm{un}}\} S un = { s i ∣ i ∈ I un } and define H ‾ u n = ( X , S u n ) \overline{H}_{\mathrm{un}} = (X,S_{\mathrm{un}}) H un = ( X , S un ) . Because repeated hyperedges do not affect what the minimal hitting sets are, enumerating the minimal hitting sets of H ‾ u n \overline{H}_{\mathrm{un}} H un is equivalent to enumerating the minimal hitting sets of H u n H_{\mathrm{un}} H un .
If ∅ ∈ S u n \varnothing\in S_{\mathrm{un}} ∅ ∈ S un , then H ‾ u n \overline{H}_{\mathrm{un}} H un lacks a hitting set, so there is neither a Roman support nor minimal Roman Hitting Function; this case can be trivially handled by defining a minimal-Roman Hitting Function enumerator with the properties desired by this Corollary which terminates without producing an output. Therefore, we assume for the rest of this proof that ∅ ∉ S u n \varnothing\notin S_{\mathrm{un}} ∅ ∈ / S un . This assumption allows us to define k ∗ k^* k ∗ as being the maximum cardinality of a minimal hitting set of H ‾ u n \overline{H}_{\mathrm{un}} H un . We first show that k ∗ ≤ κ 1 k^* \le\kappa_1 k ∗ ≤ κ 1 . This is important because the delay bound which [11 ] gives for its algorithm to enumerate the minimal hitting sets of an arbitrary hypergraph depends on both the number of hyperedges of said hypergraph and the maximum cardinality k ∗ k^* k ∗ of a minimal hitting set of the same hypergraph. Our goal is to show that the minimal-hitting-set enumerator from [11 ] has FPT-delay parameterized by κ 1 \kappa_1 κ 1 , so that we can use it in lieu of the assumed minimal-hitting-set enumerator in A e n u m A_{\mathrm{enum}} A enum from the proof of Theorem 16 .
Let T T T be a minimal hitting set of H ‾ u n \overline{H}_{\mathrm{un}} H un . Because T T T is minimal, for every x ∈ T x \in T x ∈ T , there exists a hyperedge e x ∈ S u n e_x \in S_{\mathrm{un}} e x ∈ S un for which e x ∩ T = { x } e_x \cap T = \{x\} e x ∩ T = { x } (if there were no such hyperedge — meaning that for every hyperedge of H ‾ u n \overline{H}_{\mathrm{un}} H un , its intersection with T T T , if it contains x x x , must contain another element besides x x x — then T ∖ { x } T \setminus\{x\} T ∖ { x } would be a hitting set of H ‾ u n \overline{H}_{\mathrm{un}} H un , contradicting the minimality of T T T ). Let x ↦ e x x \mapsto e_x x ↦ e x be any function from T T T to S u n S_{\mathrm{un}} S un which maps a vertex x ∈ T x \in T x ∈ T to some hyperedge e x ∈ S u n e_x \in S_{\mathrm{un}} e x ∈ S un for which e x ∩ T = { x } e_x \cap T = \{x\} e x ∩ T = { x } . x ↦ e x x \mapsto e_x x ↦ e x is injective: if x ≠ y x \ne y x = y , then if e x = e y e_x = e_y e x = e y , there is a single hyperedge e x e_x e x which satisfies both e x ∩ T = { x } e_x \cap T = \{x\} e x ∩ T = { x } and e x ∩ T = { y } e_x \cap T = \{y\} e x ∩ T = { y } , which is impossible. Therefore the codomain of x ↦ e x x \mapsto e_x x ↦ e x has cardinality at least that of the domain of x ↦ e x x \mapsto e_x x ↦ e x ; i.e., ∣ T ∣ ≤ ∣ S u n ∣ ≤ κ 1 |T| \le|S_{\mathrm{un}}| \le\kappa_1 ∣ T ∣ ≤ ∣ S un ∣ ≤ κ 1 . Because T T T was arbitrary, this gives k ∗ ≤ κ 1 k^* \le\kappa_1 k ∗ ≤ κ 1 , as desired.
By [11 ] , the minimal hitting sets of a hypergraph with n n n vertices and m m m hyperedges can be enumerated in a way which both consumes polynomial space and has delay O ( m k ∗ + 1 n 2 ) O(m^{k^*+1}n^2) O ( m k ∗ + 1 n 2 ) . We express the delay of the minimal-hitting-set enumerator given by [11 ] as O ( 1 + m k ∗ + 1 n 2 ) O(1 + m^{k^*+1}n^2) O ( 1 + m k ∗ + 1 n 2 ) in order to handle the degenerate edge case. Applying the given minimal-hitting-set enumerator to H ‾ u n \overline{H}_{\mathrm{un}} H un with n = ∣ X ∣ n = |X| n = ∣ X ∣ , m = ∣ S u n ∣ ≤ κ 1 m = |S_{\mathrm{un}}| \le\kappa_1 m = ∣ S un ∣ ≤ κ 1 , and k ∗ ≤ κ 1 k^* \le\kappa_1 k ∗ ≤ κ 1 gives an algorithm for enumerating the minimal hitting sets of H ‾ u n \overline{H}_{\mathrm{un}} H un with O ( 1 + κ 1 κ 1 + 1 ∣ X ∣ 2 ) O(1 + \kappa_1^{\kappa_1+1}|X|^2) O ( 1 + κ 1 κ 1 + 1 ∣ X ∣ 2 ) delay and polynomial space. This delay can be written as g ( κ 1 ) ⋅ ∣ ( H , τ ) ∣ O ( 1 ) g(\kappa_1) \cdot|(H,\tau)|^{O(1)} g ( κ 1 ) ⋅ ∣ ( H , τ ) ∣ O ( 1 ) for the computable function g ( k ) = 1 + k k + 1 g(k) = 1 + k^{k+1} g ( k ) = 1 + k k + 1 , where ∣ ( H , τ ) ∣ |(H,\tau)| ∣ ( H , τ ) ∣ denotes the length of the encoding for the instance ( H , τ ) (H,\tau) ( H , τ ) . Thus there exists a polynomial-space minimal-hitting-set enumerator with FPT-delay, parameterized by κ 1 \kappa_1 κ 1 .
Now consider the algorithm A e n u m ′ A'_{\mathrm{enum}} A enum ′ , which is the same as A e n u m A_{\mathrm{enum}} A enum from the proof of Theorem 16 in all respects except that its invocation of the reverse-search algorithm involves the reverse-search algorithm specifically using a polynomial-space minimal-hitting-set enumerator with FPT-delay parameterized by κ 1 \kappa_1 κ 1 to generate the minimal hitting sets of H ‾ u n \overline{H}_{\mathrm{un}} H un , rather than using an arbitrary minimal-hitting-set enumerator to enumerate the minimal hitting sets of H u n H_{\mathrm{un}} H un . Because enumerating the minimal hitting sets of H ‾ u n \overline{H}_{\mathrm{un}} H un is equivalent to enumerating those of H u n H_{\mathrm{un}} H un per the discussion in the first paragraph of this proof, the correctness proof of A e n u m A_{\mathrm{enum}} A enum applies to A e n u m ′ A'_{\mathrm{enum}} A enum ′ .
The reverse-search algorithm modified thus is a polynomial-space enumeration algorithm with respect to κ 1 \kappa_1 κ 1 for all Roman supports. The modified reverse-search algorithm needs only space to run a polynomial-space minimal-hitting-set enumerator and to maintain its recursion stack of depth ∣ X ∣ |X| ∣ X ∣ , each of the frames of which store only a polynomial-size of information, namely the Roman support being visited, the next candidate vertex to be examined, and the data required by the membership and parent tests.
Because the procedure from Lemma 7 is also polynomial-space, it follows that A e n u m ′ A'_{\mathrm{enum}} A enum ′ is itself using only polynomial space. The algorithm A e n u m ′ A'_{\mathrm{enum}} A enum ′ has FPT-delay, because the delay between any two of its outputs is at most the sum of the FPT-delays on the part of the minimal-hitting-set enumerator and the sum of the polynomial-delay operations which A e n u m A_{\mathrm{enum}} A enum performs between any two of its outputs.
As κ 1 \kappa_1 κ 1 measures the ‘distance from surjectivity’ of correspondence functions, we can hence deduce the following result that can be seen as a counterpart of Corollary 2 in the world of extension problems.
Corollary 9. There exists a polynomial-delay and polynomial-space enumeration algorithm for minimal Roman hitting functions with surjective correspondence functions.
Conclusions
We have generalized the notion of Roman domination towards hypergraphs by introducing the definition of Roman hitting functions. We have proven that all minimal Roman hitting functions can be enumerated with polynomial delay if the correspondence function is surjective. This can be seen as a technical answer to our question what causes Roman domination to behave different from classical domination with respect to polynomial-delay enumerability. When the correspondence is not surjective, Roman Hitting Function rather behaves like Dominating Set; in particular, its extension problem is W[3 ] -complete when parameterized by the given pre-solution’s weight, and we observe that it is transversal-hard to enumerate all minimal Roman hitting functions.
We mentioned in the introduction that Roman Domination is in FPT, when parameterized in a dual way, meaning, in this case, by n − k n-k n − k , where n n n is the number of vertices of the graph and k k k is an upper-bound on the weight of the Roman dominating function. It might be interesting to have similar results for the two generalizations of Roman domination introduced in this paper. However, now it is not very clear what the ‘dual’ of the ω ( f ) \omega(f) ω ( f ) -parameterization should be.
Notice that up to quite recently, only a handful of (natural) problems have been known to be complete for W[3 ] , which is the third level of the W-hierarchy of parameterized complexity. Even today, apart from the extension problems and their relatives that we mentioned throughout this paper, we only know of the problems shown in [13 , 16 , 17 ] . Seeing more and more problems these days that are complete for W[3 ] adds new interest to W[3 ] . It might be time to attack the 25-years-old open question if W [ 3 ] = W ∗ [ 3 ] W[3] = W^*[3] W [ 3 ] = W ∗ [ 3 ] , see [23 ] . According to [17 ] , the current status is: W [ 3 ] ⊆ W ∗ [ 3 ] ⊆ W [ 4 ] W[3] \subseteq W^*[3] \subseteq W[4] W [ 3 ] ⊆ W ∗ [ 3 ] ⊆ W [ 4 ] .