Temporal Dominating Set and Temporal Vertex Cover Under the Lense of Degree Restrictions
Abstract
We study the Temporal Dominating Set problem, in which one asks whether a temporal graph given as a sequence of snapshot graphs, over the same vertex set , has a set of temporal vertices of size at most such that each vertex of is dominated by some in the snapshot that contains . Additionally, we consider Temporal Partial Dominating Set, where one asks whether at least (and not necessarily all) vertices of can be dominated by and a further generalization in which the solution may only contain a bounded number of temporal vertices from each snapshot.
We analyze how the complexity of Temporal (Partial) Dominating Set is influenced by the maximum snapshot degree and the structure of the underlying graph, the graph with vertex set and whose edge set is the union of all snapshot edge sets. For example, we obtain a complexity dichotomy for the maximum snapshot degree and we show that Temporal Partial Dominating Set is fixed-parameter tractable for , where and denote the treewidth and the maximum degree of the underlying graph of , respectively. We also show which of our results transfer to the well-studied Temporal Vertex Cover problem. For example, we show that Temporal Vertex Cover is also fixed-parameter tractable for which substantially extends the previously known polynomial-time algorithms for the case that the underlying graph is a path or cycle.
Keywords and phrases:
NP-hard problem, FPT-algorithm, Treewidth, Color codingFunding:
Nils Morawietz: Partially supported by the French ANR, project ANR-22-CE48-0001 (TEMPOGRAL).Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithms ; Theory of computation Graph algorithms analysisAcknowledgements:
Some of the results of this work are also contained in the first author’s Master thesis [23].Editors:
Kitty Meeks and Christian ScheidelerSeries and Publisher:

1 Introduction
Many real-world situations such as friendships in a social network that may change over time are naturally modeled by temporal graphs which have a dynamic set of edges and thus allow to capture changing interactions and relations between the network entities [24, 29]. There are many equivalent ways of formalizing temporal graphs; in this work, we view them as finite sequences of (static) graphs, called snapshots, where all graphs in the sequence have the same vertex set. The vertices in the snapshots are temporal vertices and the graph obtained by taking the union over all edge sets is the underlying graph.
To better understand the algorithmic challenges posed by analyzing and using temporal graphs, different variants of classical graph problems have been lifted to the temporal setting. An example is the famous NP-hard Vertex Cover problem, where one is given an undirected graph and the task is to find a small vertex cover, that is, a vertex set such that each edge has an endpoint in . The complexity of Vertex Cover has been studied from many different viewpoints. In particular, it is the main object of research in parameterized algorithmics [22, 6, 25, 32]. A canonical temporal version of Vertex Cover is the Temporal Vertex Cover problem, introduced by Akrida et al. [1]. A temporal vertex is a vertex in a specific snapshot. In Temporal Vertex Cover we are looking for a small temporal vertex cover, which is a set of temporal vertices such that each edge of the underlying graph is covered by some temporal vertex in , that is, is an endpoint of and is present in the snapshot of (see Figure 1 for an example).
Temporal Vertex Cover (TVC)
Input: A temporal graph and an integer .
Question: Is there a temporal vertex cover of with
As shown in a series of works that are discussed in more detail below, TVC turned out to be quite hard when compared to Vertex Cover, even for inputs with a heavily restricted structure.
In this work, we want to broaden our algorithmic knowledge for temporal versions of such classic graph problems. To this end, we study a temporal variant of the NP-hard Dominating Set problem, which has a similarly central role in algorithmic research. In Dominating Set the task is to find, for a given graph , a small set of vertices such that every vertex is dominated by which means that it is either in or has at least one neighbor in . Interestingly, Dominating Set turns out to be more difficult than Vertex Cover in several aspects such as approximability or parameterized complexity [7, 36]. This motivates the exploration of temporal Dominating Set variants, analogous to those for Vertex Cover, with the goal of analyzing and comparing their complexities.
There are several ways of extending domination to the temporal setting [5]. In analogy to TVC, we consider the version where we say that a vertex in the underlying graph is dominated by a temporal vertex if is contained in the closed neighborhood of in the snapshot of . A set of temporal vertices is then a temporal dominating set if each vertex of the underlying graph is dominated by at least one temporal vertex of (see Figure 1 for an example). If we now aim to find a small temporal dominating set, we arrive at the following problem.
Temporal Dominating Set (TDS)
Input: A temporal graph and an integer .
Question: Is there a temporal dominating set of with ?
A natural and well-studied generalization of Dominating Set is Partial Dominating Set where we ask for a small set that dominates many but not necessarily all vertices of the graph. In our temporal setting, this gives the following problem.
Temporal Partial Dominating Set (TPDS)
Input: A temporal graph and integers .
Question: Is there a temporal vertex set with which dominates at least vertices of the underlying graph ?
Moreover, we consider Temporal (Partial) Dominating Set under budget constraints for each snapshot. Here, the solution is allowed to contain at most temporal vertices from each snapshot, for some given number . We refer to the two resulting problems as Budget-TDS and Budget-TPDS, respectively.
As mentioned above, one aim of our study is to compare the complexity of TDS to TVC. To obtain a full picture, we also consider the partial and budget versions of TVC. In the most general problem, Budget-Temporal Partial Vertex Cover (Budget-TPVC), the question is whether we can cover at least edges of the underlying graph , by selecting at most temporal vertices, with at most from each snapshot. The two intermediate problems, Temporal Partial Vertex Cover (TPVC) and Budget-Temporal Vertex Cover (Budget-TVC) are defined analogously.
We analyze the complexity of all problems with respect to the structure of the underlying graph , the maximum snapshot degree, and from the viewpoint of parameterized complexity. Before stating our results, we give a brief overview of the literature on the considered and related problems.
Known Results and Further Related Work.
For temporal graphs with only one snapshot, TVC and TDS coincide with Vertex Cover and Dominating Set, respectively. This also holds for the partial variants. Hence, all temporal problems considered in this work inherit all hardness results that are known for their static counterparts. In particular, TVC and TDS are NP-hard even when the underlying graph has maximum degree [18]. In addition, the following is known: TVC is already NP-hard when the underlying graph is a star graph [1]. The reduction also shows that TVC is W[2]-hard with respect to in that case [1]. Hence, it is unlikely that the problem can be solved in time. On the positive side, TVC is solvable in polynomial time if the underlying graph is a path or cycle [21].
Akrida et al. [1] also introduced Sliding Window Temporal Vertex Cover (SW-TVC) where the input additionally contains an integer , and the aim is to cover every edge at least once in every window of consecutive snapshots. In contrast to TVC, SW-TVC is NP-hard if the underlying graph is a path [21]. Moreover, SW-TVC is FPT for , that is, it can be solved in time [21]. Finally, Hamm et al. [21] considered a partial variant of SW-TVC where “partial” refers to the fact that each edge needs to be covered in only a given subset of the windows. This variant thus differs substantially from TPVC as defined here.
There are further temporal variants of Vertex Cover and Dominating Set which have been discussed and studied. These include a multistage variant of Vertex Cover [15], a version with activity intervals for the selected vertices [17, 9, 11, 10, 8, 12, 33, 34], a reachability-based variant for Dominating Set [26] and different conditions on how and when a vertex should be dominated [5, 35, 37].
Our Contribution.
In a nutshell, we show that TDS is considerably harder than its static counterpart. Moreover, we observe that introducing budgets makes it harder to exploit a bounded degree of the underlying graph, and that TDS and TVC are similarly difficult, with some border cases where TVC is easy and TDS is hard. More precisely, we obtain the following results touching on three main aspects of the input structure; see Tables 1 and 2 for an overview for TDS and TVC, respectively.
TDS | TPDS | Budget-TDS | Budget-TPDS | |
is a star | NP-h. | NP-h. | NP-h. | NP-h. |
Corollary 3.2 | Corollary 3.2 | Corollary 3.2 | Corollary 3.2 | |
is a clique | NP-h. | NP-h. | NP-h. | NP-h. |
Thm. 3.3 | Thm. 3.3 | Thm. 3.3 | Thm. 3.3 | |
is a path | Poly | Poly | NP-h. | NP-h. |
Thm. 4.6 | Thm. 4.6 | Thm. 3.7 | Thm. 3.7 | |
NP-h. | NP-h. | NP-h. | NP-h. | |
Thm. 3.3 | Thm. 3.3 | Thm. 3.3 | Thm. 3.3 | |
Poly | Poly | NP-h. | NP-h. | |
Thm. 3.5 | Thm. 3.5 | Thm. 3.7 | Thm. 3.7 | |
FPT | FPT | paraNP-h. | paraNP-h. | |
Thm. 4.6 | Thm. 4.6 | Thm. 3.7 | Thm. 3.7 | |
- | FPT | - | FPT | |
Thm. 4.2 | Thm. 4.2 | |||
FPT | FPT | FPT | FPT | |
Thm. 4.5 | Thm. 4.5 | Thm. 4.5 | Thm. 4.5 |
The first aspect is the global structure of the underlying graph . We show that, like TVC, TDS is already NP-hard if is restricted to be a star. Moreover, we show that TVC and TDS are hard if is restricted to be a clique. For restricted to a path, we show that all problem variants without budget constraints are easy but adding budgets to the snapshots makes the problems NP-hard.
The second aspect on which we focus is the maximum snapshot degree which is defined as the maximum of the maximum degrees of all snapshot graphs. Here, we obtain a complexity dichotomy for all problem variants. In particular, we show that TDS is NP-hard for and that for the non-budgeted variants are polynomial-time solvable and the variants with budget are NP-hard. For TVC the situation is different, here leads to hardness for all variants, leads to polynomial-time solvability for all variants, and for we observe that adding budgets makes the problem hard.
The third aspect is the parameterized complexity of the problems. We show that all problem variants without budgets are tractable with respect to the combination of the treewidth of and the maximum degree of . For the variants with budget, this problem parameterization is already excluded by the NP-hardness for the case that is a path. For the partial problem variants, we then show fixed-parameter tractability for , the number of elements to be covered. This implies also fixed-parameter tractability with respect to , since instances with are trivial no-instances. Finally, we show that for the latter result, we can replace by the temporal -index of which we define to be the largest number such that contains temporal vertices with degree at least . This parameter is upper-bounded by and potentially much smaller, when we have a skewed degree distribution for the temporal vertices. In our opinion, this parameter can be of interest for other temporal graph problems as well.
TVC | TPVC | Budget-TVC | Budget-TPVC | |
is a star | NP-h. | NP-h. | NP-h. | NP-h. |
[1, Thm. 2] | [1, Thm. 2] | [1, Thm. 2] | [1, Thm. 2] | |
is a clique | NP-h | NP-h | NP-h | NP-h |
Thm. 3.4 | Thm. 3.4 | Thm. 3.4 | Thm. 3.4 | |
is a path | Poly | Poly | NP-h | NP-h |
[21, Thm. 5] | Thm. 3.6 | Thm. 3.8 | Thm. 3.8 | |
NP-h | NP-h | NP-h | NP-h | |
Thm. 3.4 | Thm. 3.4 | Thm. 3.4 | Thm. 3.4 | |
Poly | Poly | NP-h | NP-h | |
Thm. 3.6 | Thm. 3.6 | Thm. 3.8 | Thm. 3.8 | |
Poly | Poly | Poly | Poly | |
Thm. 3.9 | Thm. 3.9 | Thm. 3.9 | Thm. 3.9 | |
FPT | FPT | paraNP-h. | paraNP-h. | |
Prop. 4.7 | Prop. 4.7 | Thm. 3.8 | Thm. 3.8 | |
- | FPT | - | FPT | |
Corollary 4.3 | Corollary 4.3 | |||
FPT | FPT | FPT | FPT | |
Thm. 4.5 | Thm. 4.5 | Thm. 4.5 | Thm. 4.5 |
Proofs of statements marked with are deferred to the full version.
2 Preliminaries
Throughout the work, we denote the set of integers by . If , we write . Given a set and an integer , we write for the collection of all subsets of of size exactly . For the main definitions of classical and parameterized complexity theory, including the definition of treewidth and tree decompositions, we refer to the standard monographs [3, 7].
Graph notation.
A (static) graph consists of a vertex set and an edge set . Given a graph , we refer to the set of vertices by and to the set of edges by . Throughout this work, if is clear from the context, we let and . For an edge we may write . The neighborhood of a vertex is denoted by . Further, we call the closed neighborhood of . The closed neighborhood of a set of vertices is defined as the union of the closed neighborhoods over all vertices from the set. The open neighborhood of a set of vertices is defined as . If is clear from the context, we may omit the subscript.
We let denote the degree of a vertex . If , then we say that is isolated. The maximum degree of a graph is . We write instead of when is clear from the context. The -index of a graph is the largest integer such that contains at least vertices of degree at least [14]. We call the graph a subgraph of the graph if and . The subgraph is called induced if . The graph is the subgraph of induced by .
A graph is a clique if . A path of length is a graph of the form . We call and the endpoints of the path. A cycle of length is a path of length with an additional edge between the endpoints of the path.
Temporal graph notation.
We use the following definition of temporal graphs.
Definition 2.1.
A temporal graph is a finite sequence of graphs which all have the same set of vertices .
The graphs of the sequence are called snapshots.We write instead of and instead of , if the temporal graph is clear from context. An edge of a snapshot is a temporal edge and the pair is the temporal vertex of in snapshot . Sometimes we say the edge appears in snapshot if . Given a temporal graph , we define the underlying graph of by and simply write when is clear from the context. We let . With we denote the maximum degree of the th snapshot, that is, . Further, we define the maximum degree over all snapshots of a given temporal graph by and call the maximum snapshot degree of . We refer to by when is clear from the context. We define the -index of a temporal graph as follows.
Definition 2.2.
The -index of (the temporal graph) is the maximum number such that contains at least temporal vertices of degree at least .111Note that our definition of -index of differs from the one given by Oettershagen et al. [31]
An alternative definition for is the following: Consider the graph which is the disjoint union of all snapshots of . Then is the -index of . If a snapshot has an empty edge set, that is, , then we say is an empty snapshot. For a temporal vertex , we define the neighborhood by and analogously the closed neighborhood by . The (closed) neighborhood of a set of temporal vertices is defined analogously to the (closed) neighborhood of static vertices. For a set of vertices , we let denote the temporal subgraph of induced by .
We now give formal definitions for temporal vertex covers and dominating sets that we search for in TDS and TVC and their extensions. Let be a temporal graph and let be the set of temporal vertices of . We say covers the edge , if there exists a timestamp such that and at least one of or is contained in . If covers all edges from , then we call a temporal vertex cover (see Figure 1 for an example). We say a vertex is dominated by the temporal vertex if . A set of temporal vertices is a temporal dominating set if each vertex of is dominated by at least one temporal vertex of (see Figure 1 for an example).
Parameterized Complexity Theory.
Parameterized complexity is a two-dimensional framework for describing the computational complexity of decision problems [7]. A parameterized problem is a language , where is a fixed, finite alphabet. For an instance , is called the parameter and the size of the instance is .
A parameterized problem is fixed-parameter tractable (FPT) if there exists an algorithm (called fixed-parameter algorithm), a computable function , and a constant such that, given , the algorithm correctly decides whether in time bounded by . The complexity class containing all fixed-parameter tractable problems is called FPT.
To show that a problem is unlikely to have an FPT-algorithm, one makes use of parameterized reductions. Let be two parameterized problems. A parameterized reduction from to is an algorithm that, given an instance of , outputs an instance of such that if and only if , for some computable function , and the running time is for some computable function . In particular, if there exists a parameterized reduction from to and is not in FPT, then the parameterized reduction implies that is also not in FPT. The W-hierarchy consists of the complexity classes ; we say that a parameterized problem is -hard if every problem from can be reduced to by some parameterized reduction. The standard assumption of parameterized complexity theory is FPT . This assumption allows to show that a parameterized problem is not fixed-parameter tractable by providing a parameterized reduction from some -hard problem.
3 Classical Complexity of the Considered Problems
We now present our dichotomy for for all considered problems.
3.1 Hardness Results for Unbounded Budget
In this section we study restricted settings for which TDS and therefore all its generalizations are NP-hard. Akrida et al. [1] proved by a reduction from Set Cover that TVC is NP-hard even when the underlying graph is a star graph. Recall that this reduction [1, Thm. 2] also implies that TVC is -hard when parameterized by under these restrictions. With a similar idea, we can also show that TDS is NP-hard if the underlying graph is a star graph.
Theorem 3.1.
TDS is NP-hard and -hard when parameterized by even when the underlying graph is a star graph.
Proof.
We present a polynomial-time reduction from Hitting Set, which is NP-hard and -hard when parameterized by the size of the sought solution.
Hitting Set
Input: A universe , a family of subsets of (called hyperedges), and an integer .
Question: Is there a hitting set of size at most for , that is, is there a set of size at most , such that each hyperedge of contains at least one element of ?
Let be an instance of Hitting Set and assume without loss of generality that each hyperedge of is non-empty, as otherwise, is a trivial no-instance. Fix some arbitrary order on and consider the following temporal graph . The vertex set consists of one vertex for each hyperedge , and one center vertex . Further, we introduce for each element one snapshot in which the center is connected to exactly those vertices for which the hyperedge contains . By construction, is a star graph. Clearly, this reduction can be done in polynomial time.
Correctness: We show that has a hitting set of size at most if and only if has a temporal dominating set of size at most .
() Let be a hitting set of size at most for . For each , we add the temporal vertex to . For each hyperedge there exists a such that since is a hitting set. By construction, the temporal vertex dominates the vertex because . It follows immediately that the chosen temporal vertices are a temporal dominating set of .
() Let be a temporal dominating set of of size at most . Note that we can assume that only contains temporal vertices of the center vertex , that is, . This is due to the fact that, for each temporal vertex with there exists a snapshot such that and consequently the temporal vertex dominates a subset of the vertices dominated by . Consider the set obtained by adding to if is in the temporal dominating set . For each , the vertex is dominated by some vertex . By construction, and . Consequently, is a hitting set of size at most for .
If we reduce from the NP-hard special case [18] of Hitting Set where each hyperedge has size and each element occurs in at most three hyperedges, the resulting temporal graph has at most three edges in each snapshot, and each edge appears in at most two snapshots, which implies the following.
Corollary 3.2.
TDS is NP-hard even when the underlying graph is a star graph, there are at most three edges in each snapshot, and each edge appears at most two times.
Due to the NP-hardness for underlying stars, parameterized algorithms for a large number of parameters of the underlying graph are impossible. The next results show that even if the underlying graph is a clique, the problem remains NP-hard even for very restricted number of edges in each snapshot. Note that this also bounds the maximum snapshot degree .
Theorem 3.3.
TDS is NP-hard even when the underlying graph is a clique and there are at most two edges in each snapshot.
Proof.
We provide a reduction from Exact Cover By -Sets (X3C) [18]. The input of the problem consists of a finite set together with a family of size-3 subsets of and the question is whether there is a subset of such that each appears in exactly one set from (this implies ).
Consider a temporal graph with vertex set and snapshots. For let and define the edge set . The purpose of the remaining snapshots is to ensure that the underlying graph is a clique. This can be done by adding for each pair of elements one snapshot which only contains the edge . By construction, the underlying graph is a clique and there are at most two edges in each snapshot. Clearly, this reduction can be done in polynomial time.
Correctness: We show that is a yes-instance of X3C if and only if is a yes-instance of TDS.
() Suppose each element from appears in exactly one set from . Recall that this implies that has size . Consider the following temporal vertex set . For each we add the temporal vertex to . Clearly, dominates exactly the vertices from which correspond to the elements from . Since every element of is contained in a set from , it follows that every vertex from is dominated.
() Suppose that is a temporal dominating set of size for . Since each snapshot contains at most two edges and , it is clear that each temporal vertex from dominates exactly three vertices which are not dominated by any other temporal vertex from . By construction, it follows that , since only these temporal vertices can dominate more than two vertices in their respective snapshot. We obtain a solution to the X3C instance by adding to if and only if contains a temporal vertex from the th snapshot, that is, the temporal vertex . Observe that by definition of the first snapshots, the set covers exactly the elements from whose corresponding vertices are dominated by . This implies that every element of is contained in exactly one set from , since dominates each vertex exactly once.
We now show a similar hardness result for Temporal Vertex Cover with a slightly larger snapshot degree on instances with a clique as underlying graph. Recall that for instances with a star as underlying graph, TVC is known to be NP-hard [1, Thm. 2].
Theorem 3.4 ().
TVC is NP-hard even when the underlying graph is a clique, there are at most three edges in each snapshot, and each edge appears at most twice.
3.2 Polynomial-Time Solvable Cases for Unbounded Budget
We now discuss special cases of TDS that can be solved in polynomial time. If we restrict the underlying graph to paths or cycles, then TDS and TPDS are solvable in polynomial time. This follows directly from Theorem 4.6, which states that TPDS is in FPT with respect to , and hence we do not describe specific algorithms for this case.
Considering the maximum snapshot degree, note that Theorem 3.3 shows that TDS is NP-hard when restricted to temporal graphs of maximum snapshot degree two. However, if we restrict ourselves further to temporal graphs of maximum snapshot degree one, then TDS and its partial variant can be solved efficiently by reducing the problem to a matching problem.
Theorem 3.5 ().
TPDS can be solved in polynomial time if the maximum snapshot degree is one.
For TPVC we provide a polynomial-time algorithm for a maximum snapshot degree of 2 instead of one as for TPDS.
Theorem 3.6.
TPVC can be solved in polynomial time if the maximum snapshot degree is 2.
Proof.
Let be an instance of TPVC. Without loss of generality we assume that and that since otherwise the instance is a trivial no-instance. Moreover, let be a solution of and let be the set of covered edges by . Since the maximum snapshot degree is two, each vertex in can cover at most two edges of . Consequently, each vertex in covers either a single edge of or a pair of adjacent edges of , that is, a .
Now, we consider a mapping such that each edge in is mapped to one of its endpoints in . Let be the set of temporal vertices such that exactly two edges of are mapped to each temporal vertex in . Next, we show that maximizing the number of covered edges is equivalent to maximizing the number of edge-disjoint s. More precisely, we prove that is a solution if and only if : Each temporal vertex in can cover at most one edge of according to . Moreover, let . Since each temporal vertex in covers at most one edge of according to , we have . Hence, we obtain and implying .
Consequently, we need to find a set of at least temporal vertices such that each temporal vertex of covers a of such that all these s are edge-disjoint. Afterwards, we can greedily add temporal vertices to which cover exactly one so-far uncovered edge of to obtain a solution for . This is always possible due to our assumptions that and that .
It remains to maximize the number of these edge-disjoint s. However, since some pairs of adjacent edges, that is, some non-induced s, of might not appear together in one snapshot, we cannot simply find a maximum packing of edge-disjoint s in . Thus, essentially we are given the underlying graph and a list of possible s, that is, pairs of adjacent edges appearing in a common snapshot, and the task is to find a maximum packing of such s. This problem is known as Edge Disjoint List -Packing and can be solved in polynomial time via a reduction to Maximum Matching [19]. Since [19] does not provide the construction, we describe it for sake of completeness. The auxillary graph contains a vertex for each edge . Moreover, two vertices and of are adjacent if and only if and there exists a snapshot where both edges and are active. Now, maximizing the number of edge-disjoint covered by the solution is equivalent to finding a maximum matching in which can be done in polynomial time [28].
Theorem 3.6 implies that TPVC can be solved in polynomial time if is a path. Hence, our result generalizes a result of Hamm et al. [21, Thm. 5] who provided a polynomial-time algorithm for TVC if is a path.
3.3 The Influence of Budgets on the Complexity
We now study Budget-TDS and Budget-TVC. Recall that in those problems the input has an additional integer and we are allowed to select temporal vertices overall but only up to temporal vertices per snapshot.
We proceed by showing that Budget-TDS and Budget-TVC are already NP-hard even if the underlying graph is a path.
Theorem 3.7.
Budget-TDS with a budget constraint of is NP-hard, even if the underlying graph is a path and the maximum snapshot degree is one.
Proof.
We reduce from the NP-hard Rainbow Matching problem on properly edge-colored paths [27]. In this problem, the instance consists of a path with vertex set , an edge coloring for some , and an integer and the question is whether there exists a matching of size at least such that all edges in the matching are assigned a different color.
Consider the temporal graph with vertex set and the following snapshots: For each color , we introduce one snapshot , which contains exactly the edges colored with the corresponding color . Furthermore, we add additional empty snapshots and set to obtain the Budget-TDS instance . By construction, the underlying graph is a path and the maximum snapshot degree is one since is a proper edge coloring, that is, no two incident edges of have the same color.
Correctness: We show that has a rainbow matching of size at least if and only if has a temporal dominating set of size at most which does not exceed the budget of one in any of the snapshots.
() Suppose is a rainbow matching of size . For each color and each edge with we add to . Note that these temporal vertices already dominate vertices since is a matching. For the remaining undominated vertices from we add isolated temporal vertices from the empty snapshots to such that there is no conflict with the budget constraint. This can be done because contains empty snapshots. Finally, note that dominates all vertices, has size and contains at most one temporal vertex from each snapshot since is a rainbow matching.
() Suppose that is a solution to . Since the maximum snapshot degree is one, we know that every temporal vertex dominates at most two vertices. A solution of size needs to dominate all vertices, which implies that there exist temporal vertices in which dominate in total vertices. Each of these temporal vertices is incident to exactly one edge and therefore comes from a snapshot which corresponds to some color of the edge coloring . By adding all these edges to , we obtain a rainbow matching of size at least . As the temporal vertices dominate in total vertices, it follows that is a matching. The rainbow property is a consequence of the budget restriction which implies that contains no two vertices from the same snapshot and therefore no two edges of the same color are added to .
We get almost the same hardness for Budget-TVC.
Theorem 3.8 ().
Budget-TVC with a budget constraint of is NP-hard, even if the underlying graph is a path.
Hence Budget-TDS and Budget-TVC are strictly harder than TDS and TVC with respect to the structure of the underlying graph and with respect to the maximum snapshot degree. Moreover, since is a path in Theorem 3.8, we directly obtain that Budget-TVC remains NP-hard even if the maximum snapshot degree is two. This is in sharp contrast to TVC which is solvable in polynomial time if the maximum snapshot degree is two, see Theorem 3.6. We now show that the snapshot degree of 2 in Theorem 3.8 is necessary for the NP-hardness on paths.
Theorem 3.9.
Budget-TPVC can be solved in polynomial time if the maximum snapshot degree is one.
Proof.
Let be a Budget-TPVC instance. Observe that since the maximum snapshot degree is one, each temporal vertex can cover at most one edge. Consequently, if , we have a no-instance. Moreover, since an optimal solution never contains both endpoints of an edge, it is safe to assume that .
To solve the instance , we use a max-flow problem, which can be solved in polynomial time [20]. Let be a flow-network with source and target . Moreover, has a vertex for each snapshot and a vertex for each edge . The source has an arc with capacity to each vertex corresponding to a snapshot. The vertex corresponding to snapshot has an arc with capacity one to edge if can be covered in . Finally, each vertex for each has an arc to the target with capacity .
We now show that is a yes-instance of Budget-TPVC if and only if has a maximum flow of .
Assume that has a maximum flow of value . Since each vertex corresponding to an edge in has only one outgoing arc which has capacity one, there exists at most one vertex such that there is a flow of value 1 from to . Now, since the maximum snapshot degree is 1, we let be a temporal vertex such that is one of the endpoints of the edge in corresponding to . We now argue that the set of these temporal vertices is a solution for . By the above, each vertex in covers exactly one unique edge and by the construction of our flow-network contains at most temporal vertices from each snapshot. Furthermore, since the flow has value , we obtain that and thus is a solution for .
Let be a solution for where no edge is covered twice. Consequently, each vertex in covers exactly one edge and this edge is covered by no other vertex in . More precisely, let be the temporal vertices contained in snapshot . Note that . For each snapshot , we let a flow with value flow from the source to vertex . Since each vertex in covers a unique edge , we let a flow of value 1 flow from to each edge which is covered by a vertex in . Clearly, these are many. Finally, we let a flow from each covered edge to the target with a value 1 flow. Consequently, has a flow with value .
4 Parameterized Complexity
In this section, we study all problems from the viewpoint of parameterized complexity. In particular, we first provide FPT-algorithms for the number of dominated vertices or covered edges, respectively, in the partial variants. Then, we extend these results to obtain FPT-algorithms for plus the -index of the temporal vertex degrees . Finally, we provide FPT-algorithms for the purely structural parameter of the underlying graph. We state the algorithms in their most general form, that is, if possible for the partial and budget variant.
4.1 Parameters and
Recall that in the partial variants TPDS and TPVC the input contains an additional integer for the number of dominated vertices/covered edges. It is known that Partial Dominating Set and Partial Vertex Cover are in FPT with respect to (for example a consequence of [4]). We show that these result extend to the temporal and budget versions.
The idea is to use color coding [2] which is a very popular technique to obtain fixed-parameter algorithms [7]. Given some instance of a parameterized problem, the rough idea is to randomly color some elements of this instance and then solve a colorful version of the given instance. If the colorful version of the problem is fixed-parameter tractable, then we can often derandomize the algorithm such that it solves our original instance by deterministically considering a specific family of colorings. We consider the derandomized version of color coding that makes use of perfect hash families. More formally, a family of functions from to is -perfect if for each of size there exists a function such that the restriction of to is injective. The following theorem shows that a perfect hash family can be constructed in FPT time.
Proposition 4.1 ([30]).
For any one can construct an -perfect hash family of size in time .
Initially, we show our result for Budget-TPDS.
Theorem 4.2.
Budget-TPDS can be solved in time.
Proof.
Let be a Budget-TPDS-instance. We can assume by taking copies of each snapshot. Note that this increases the lifetime of the temporal graph by the factor .
Consider the following randomized algorithm. Let be a uniformly at random coloring of the vertices . We say that a temporal vertex dominates the color if there exists a neighbor of in with color . With we denote the set of colors, which are dominated by the temporal vertex . For each set of colors and each let
at most one temporal vertex of each snapshot is used and | |||
We initialize the table by setting and for all . The remaining entries are computed recursively by
We prove the correctness by showing two inequalities.
() Suppose that is a set of temporal vertices for which the minimum in the definition of is attained. Due to the minimizing, it is clear that each temporal vertex from dominates at least one color from . If contains a temporal vertex from , then is considered in the definition of the entry . Otherwise is considered in the definition of . Therefore the inequality holds.
() Note that each set which is considered in the definition of is also considered in the definition of . Hence, we have . Now suppose the minimum on the right hand side of the computation is attained for the entry and the set . Then clearly is considered in the definition of and we have . This proves the inequality.
Finally, the algorithm returns yes if and only if . This means, it returns yes if and only if there is a temporal vertex set of size at most which dominates pairwise differently colored vertices.
If we run this algorithm once, then it is not guaranteed that the random coloring colors vertices, which are dominated by some solution of the Budget-TPDS-instance, with different colors. For derandomization we can iterate over a specific set of colorings, instead of randomly coloring the vertices. The set of colorings needs to contain at least one coloring which colors the “correct” vertices with distinct colors. Such a set can be constructed by using the definition of perfect hash families (see Proposition 4.1).
For a fixed coloring , the size of the table is and it takes time to compute one entry, which implies an overall running time of if the budget equals one. If we take copies of each snapshot, such that we can assume , then the lifetime increases by the factor and consequently the running time is for a fixed coloring .
Using the construction mentioned in Proposition 4.1 and running the algorithm from above for each coloring of this construction, we obtain an overall running time of .
The algorithm of Theorem 4.2 also works analogously for Budget-TPVC: We only need to color the edges instead of the vertices. Hence, we obtain the following.
Corollary 4.3.
Budget-TPVC can be solved in time.
Recall that is the maximum snapshot degree. Observe that if for the TDS variants and if for the TVC variants, then we have a no-instance. Thus, we obtain the following.
Proposition 4.4.
Budget-TPDS and Budget-TPVC can be solved in time.
Furthermore, recall that TDS is -hard with respect to the solution size and that it is NP-hard even if [38]. Consequently, both parameters and are necessary to obtain an FPT-algorithm.
Of course, we would like to replace by potentially smaller parameters. However, since TVC and TDS are W[2]-hard with respect to if is a star, we cannot make use of degree-based parameterizations of such as the -index of or the -closure [16] of . To circumvent this problem we consider the -index of the temporal graph , which we defined as the maximum number such that contains at least temporal vertices of degree at least .
The idea for the algorithm is to first branch on the temporal vertices that have a high degree and then use the fact that after removing these vertices, the remaining instance has bounded maximum snapshot degree which allows us to use an FPT-algorithm for .
Theorem 4.5.
Budget-TPDS and Budget-TPVC can be solved in time.
Proof.
We only state the proof for Budget-TPDS, the proof for Budget-TPVC follows analogously. Let be an instance of Budget-TPDS.
Let be the set of temporal vertices of degree at least . By definition, . The idea is to first branch on the high-degree temporal vertices whether they are part of a fixed solution or not and then to use an adaption of the color coding algorithm described in Theorem 4.2 for an auxiliary Budget-TPDS instance .
Now, let be a fixed solution of . Initially, we branch for each temporal vertex whether is part of or not. Note that these are possibilities. Next, consider a fixed possibility and let and . Now, let . Since each temporal vertex which is not in can dominate at most temporal vertices, if then this choice of cannot lead to a solution. If for no choice of we obtain then is a no-instance. Thus, in the following we assume that we consider a choice of such that . Moreover, by we denote the number of temporal vertices of of snapshot . If for any , then we abort this choice of and since we can pick at most temporal vertices of each snapshot. Thus, in the following we can safely assume that for each . Now, let . By our assumption on , we have for each .
Next, we solve an auxiliary Budget-TPDS instance . Here, the temporal graph has copies of snapshot for each . These are snapshots in total. Note that might be much higher than . Moreover, we set and .
Next, we use color coding with colors on to determine the set as follows: The color is only used for the vertices in and consequently, in each uniformly at random coloring with the first colors we only color the vertices . Again, we say that a temporal vertex dominates the color if there exists a neighbor of in snapshot with color . Now, the table for a set of colors and each is defined similar to Theorem 4.2, that is:
at most one temporal vertex of each snapshot is used and | |||
We initialize the table analogously to the proof of Theorem 4.2, by setting and for all .
We again denote by the set of colors, which are dominated by the temporal vertex . The remaining entries are then computed recursively by
Hence, the only change to the update in Theorem 4.2 is that we no do not consider temporal vertices of . The correctness of the dynamic program follows since we assign all vertices in color to indicate that they are already dominated. Since in the we only consider color subsets , we cannot pick any vertex of again in the dynamic program. Moreover, during the updates of the dynamic program we do not pick any vertex of . Consequently, is a solution for , where .
For the running time, observe that there are possibilities for and . Moreover, the running time of the dynamic program is . Since we only use the dynamic program if , we obtain an overall running time of .
4.2 Parameter
We finish this section by showing that TPDS and TPVC are in FPT for the purely structural parameter of the underlying graph. Also note that we cannot obtain FPT-algorithms for for Budget-TDS and Budget-TVC since they are already NP-hard on underlying graphs which are paths (see Theorems 3.7 and 3.8). Together with the hardness results from Section 3.1, this gives a comprehensive picture of the parameterized complexity for many structural parameters of the underlying graph.
Theorem 4.6 ().
TPDS can be solved in time.
Again, we would like to obtain an FPT-algorithm for the combination of treewidth with a smaller parameter than . However, this is unlikely due to the NP-hardness of stars where the treewidth, -index [14], and -closure [16] are constant.
Finally, we want to remark that a very similar approach also works to obtain fixed-parameter tractability for TVC and TPVC with respect to . This then generalizes a result from Hamm et al. [21] who showed that TVC can be solved in polynomial time for underlying paths and cycles.
Proposition 4.7 ().
TPVC can be solved in time.
5 Future Work
Let us conclude with a list of open questions: First, it is open whether Temporal Vertex Cover and Temporal Dominating Set admit an FPT-algorithm for any structural parameterization for the underlying graph that is not already bounded in a function of . Second, our FPT-algorithms for (Theorem 4.2) imply that all considered problems admit an FPT-algorithm for , the number of vertices of the underlying graph. For Temporal Dominating Set the running time is since . For Temporal Vertex Cover, however, we only obtain a running time of since . Thus, it is open whether Temporal Vertex Cover can also be solved in time. Finally, another direction for future work is the investigation of further temporal graph parameters: for example do our considered problems admit FPT-algorithms with respect to the temporal neighborhood diversity [13]?
References
- [1] Eleni C. Akrida, George B. Mertzios, Paul G. Spirakis, and Viktor Zamaraev. Temporal vertex cover with a sliding time window. Journal of Computer and System Sciences, 107:108–123, 2020. doi:10.1016/j.jcss.2019.08.002.
- [2] Noga Alon, Raphael Yuster, and Uri Zwick. Color-coding. Journal of the ACM, 42(4):844–856, 1995. doi:10.1145/210332.210337.
- [3] Sanjeev Arora and Boaz Barak. Computational Complexity - A Modern Approach. Cambridge University Press, 2009. URL: http://www.cambridge.org/catalogue/catalogue.asp?isbn=9780521424264.
- [4] Markus Bläser. Computing small partial coverings. Information Processing Letters, 85(6):327–331, 2003. doi:10.1016/S0020-0190(02)00434-9.
- [5] Arnaud Casteigts. A journey through dynamic networks (with excursions). Habilitation thesis, Université de Bordeaux, 2018. URL: https://tel.archives-ouvertes.fr/tel-01883384.
- [6] Jianer Chen, Iyad A. Kanj, and Ge Xia. Improved upper bounds for vertex cover. Theoretical Computer Science, 411(40-42):3736–3756, 2010. doi:10.1016/j.tcs.2010.06.026.
- [7] Marek Cygan, Fedor V. Fomin, Lukasz Kowalik, Daniel Lokshtanov, Dániel Marx, Marcin Pilipczuk, Michal Pilipczuk, and Saket Saurabh. Parameterized Algorithms. Springer, 2015. doi:10.1007/978-3-319-21275-3.
- [8] Riccardo Dondi. Insights into the complexity of disentangling temporal graphs. In Proceedings of the 23rd Italian Conference on Theoretical Computer Science (ICTCS ’22), volume 3284 of CEUR Workshop Proceedings, pages 1–13. CEUR-WS.org, 2022. URL: https://ceur-ws.org/Vol-3284/2973.pdf.
- [9] Riccardo Dondi. Untangling temporal graphs of bounded degree. Theoretical Computer Science, 969:114040, 2023. doi:10.1016/j.tcs.2023.114040.
- [10] Riccardo Dondi and Manuel Lafond. An FPT algorithm for temporal graph untangling. In Proceedings of the 18th International Symposium on Parameterized and Exact Computation (IPEC ’23), volume 285 of LIPIcs, pages 12:1–12:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.IPEC.2023.12.
- [11] Riccardo Dondi, Fabrizio Montecchiani, Giacomo Ortali, Tommaso Piselli, and Alessandra Tappini. Partial temporal vertex cover with bounded activity intervals. In Proceedings of the 3rd Symposium on Algorithmic Foundations of Dynamic Networks (SAND ’24), volume 292 of LIPIcs, pages 11:1–11:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.SAND.2024.11.
- [12] Riccardo Dondi and Alexandru Popa. Timeline cover in temporal graphs: Exact and approximation algorithms. In Proceedings of the 34th International Workshop on Combinatorial Algorithms (IWOCA ’23), volume 13889 of Lecture Notes in Computer Science, pages 173–184. Springer, 2023. doi:10.1007/978-3-031-34347-6_15.
- [13] Jessica A. Enright, Samuel D. Hand, Laura Larios-Jones, and Kitty Meeks. Structural parameters for dense temporal graphs. In Proceedings of the 49th International Symposium on Mathematical Foundations of Computer Science (MFCS ’24), volume 306 of LIPIcs, pages 52:1–52:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.MFCS.2024.52.
- [14] David Eppstein and Emma Spiro. The -index of a graph and its application to dynamic subgraph statistics. Journal of Graph Algorithms and Applications, 16, May 2009.
- [15] Till Fluschnik, Rolf Niedermeier, Valentin Rohm, and Philipp Zschoche. Multistage vertex cover. In Proceedings of the 14th International Symposium on Parameterized and Exact Computation (IPEC ’19), volume 148 of LIPIcs, pages 14:1–14:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi:10.4230/LIPIcs.IPEC.2019.14.
- [16] Jacob Fox, Tim Roughgarden, C. Seshadhri, Fan Wei, and Nicole Wein. Finding cliques in social networks: A new distribution-free model. SIAM Journal on Computing, 49(2):448–464, 2020. doi:10.1137/18M1210459.
- [17] Vincent Froese, Pascal Kunz, and Philipp Zschoche. Disentangling the computational complexity of network untangling. Theory of Computing Systems, 68(1):103–121, 2024. doi:10.1007/s00224-023-10150-y.
- [18] M. R. Garey, David S. Johnson, and Larry J. Stockmeyer. Some simplified NP-complete problems. In Proceedings of the 6th Annual ACM Symposium on Theory of Computing (STOC ’74), pages 47–63. ACM, 1974. doi:10.1145/800119.803884.
- [19] Tatsuya Gima, Tesshu Hanaka, Yasuaki Kobayashi, Yota Otachi, Tomohito Shirai, Akira Suzuki, Yuma Tamura, and Xiao Zhou. On the complexity of list -packing for sparse graph classes. In Proceedings of the 18th International Conference and Workshops on Algorithms and Computation (WALCOM ’24), volume 14549 of Lecture Notes in Computer Science, pages 421–435. Springer, 2024. doi:10.1007/978-981-97-0566-5_30.
- [20] Andrew V. Goldberg and Satish Rao. Beyond the flow decomposition barrier. Journal of the ACM, 45(5):783–797, 1998. doi:10.1145/290179.290181.
- [21] Thekla Hamm, Nina Klobas, George B. Mertzios, and Paul G. Spirakis. The complexity of temporal vertex cover in small-degree graphs. In Proceedings of the Thirty-Sixth AAAI Conference on Artificial Intelligence (AAAI ’22), pages 10193–10201. AAAI Press, 2022. doi:10.1609/aaai.v36i9.21259.
- [22] David G. Harris and N. S. Narayanaswamy. A faster algorithm for vertex cover parameterized by solution size. In Proceedings of the 41st International Symposium on Theoretical Aspects of Computer Science (STACS ’24), volume 289 of LIPIcs, pages 40:1–40:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPIcs.STACS.2024.40.
- [23] Anton Herrmann. On the complexity of computing optimal dominating sets in temporal graphs. Master’s thesis, Friedrich-Schiller-Universität Jena, 2024.
- [24] Petter Holme and Jari Saramäki. Temporal networks. CoRR, abs/1108.1780, 2011. arXiv:1108.1780.
- [25] Leon Kellerhals, Tomohiro Koana, and Pascal Kunz. Vertex cover and feedback vertex set above and below structural guarantees. In Proceedings of the 17th International Symposium on Parameterized and Exact Computation (IPEC ’22), volume 249 of LIPIcs, pages 19:1–19:14. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPIcs.IPEC.2022.19.
- [26] David C. Kutner and Laura Larios-Jones. Temporal reachability dominating sets: Contagion in temporal graphs. In Proceedings of the 19th International Symposium on Algorithmics of Wireless Networks (ALGOWIN ’23), volume 14061 of Lecture Notes in Computer Science, pages 101–116. Springer, 2023. doi:10.1007/978-3-031-48882-5_8.
- [27] Van Bang Le and Florian Pfender. Complexity results for rainbow matchings. Theoretical Computer Science, 524:27–33, 2014. doi:10.1016/j.tcs.2013.12.013.
- [28] Silvio Micali and Vijay V. Vazirani. An algorithm for finding maximum matching in general graphs. In Proceedings of the 21st Annual Symposium on Foundations of Computer Science (FOCS ’80), pages 17–27. IEEE Computer Society, 1980. doi:10.1109/SFCS.1980.12.
- [29] Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Math., 12(4):239–280, 2016. doi:10.1080/15427951.2016.1177801.
- [30] Moni Naor, Leonard J. Schulman, and Aravind Srinivasan. Splitters and near-optimal derandomization. In Proceedings of the 36th Annual Symposium on Foundations of Computer Science (FOCS ’95), pages 182–191. IEEE Computer Society, 1995. doi:10.1109/SFCS.1995.492475.
- [31] Lutz Oettershagen, Nils M. Kriege, and Petra Mutzel. A higher-order temporal h-index for evolving networks. In Ambuj K. Singh, Yizhou Sun, Leman Akoglu, Dimitrios Gunopulos, Xifeng Yan, Ravi Kumar, Fatma Ozcan, and Jieping Ye, editors, Proceedings of the 29th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD ’23), pages 1770–1782. ACM, 2023. doi:10.1145/3580305.3599242.
- [32] Igor Razgon and Barry O’Sullivan. Almost 2-sat is fixed-parameter tractable. Journal of Computer and System Sciences, 75(8):435–450, 2009. doi:10.1016/j.jcss.2009.04.002.
- [33] Polina Rozenshtein, Nikolaj Tatti, and Aristides Gionis. The network-untangling problem: from interactions to activity timelines. Data Mining and Knowledge Discovery, 35(1):213–247, 2021. doi:10.1007/s10618-020-00717-5.
- [34] Carsten Schubert. Leveraging graph structure to untangle temporal networks efficiently. Master’s thesis, TU Berlin, Institute of Software Engineering and Theoretical Computer Science, 2023.
- [35] M Verheije. Algorithms for domination problems on temporal graphs. Master’s thesis, Utrecht University, Graduate School of Natural Sciences, 2021.
- [36] David P. Williamson and David B. Shmoys. The Design of Approximation Algorithms. Cambridge University Press, 2011. URL: http://www.cambridge.org/de/knowledge/isbn/item5759340/?site_locale=de_DE.
- [37] Dawei Zhao, Gaoxi Xiao, Zhen Wang, Lianhai Wang, and Lijuan Xu. Minimum dominating set of multiplex networks: Definition, application, and identification. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 51(12):7823–7837, 2021. doi:10.1109/TSMC.2020.2987163.
- [38] Igor E. Zverovich and Vadim E. Zverovich. An induced subgraph characterization of domination perfect graphs. Journal of Graph Theory, 20(3):375–395, 1995. doi:10.1002/jgt.3190200313.