Novel Complexity Results for Temporal Separators with Deadlines
Abstract
We consider two variants, (s,z,)-Temporal Separator and (s,z,)-Temporal Cut, respectively, of the vertex separator and the edge cut problem in temporal graphs. The goal is to remove the minimum number of vertices (temporal edges, respectively) in order to delete all the temporal paths that have time travel at most between a source vertex and target vertex . First, we solve an open problem in the literature showing that (s,z,)-Temporal Separator is NP-hard even when the underlying graph has pathwidth bounded by four. We complement this result showing that (s,z,)-Temporal Separator can be solved in polynomial time for graphs of pathwidth bounded by three. Then we consider the approximability of (s,z,)-Temporal Separator and we show that it cannot be approximated within factor for any constant , unless ( is the vertex set of the input temporal graph) and that the strict version is approximable within factor (we show also that it is unliklely that this factor can be improved). Then we consider the (s,z,)-Temporal Cut problem, we show that it is APX-hard and we present a approximation algorithm.
Keywords and phrases:
Temporal Graphs, Graph Algorithms, Graph Separators, Parameterized Complexity, Approximation ComplexityCopyright and License:
2012 ACM Subject Classification:
Theory of computation Parameterized complexity and exact algorithms ; Theory of computation Graph algorithms analysis ; Mathematics of computing Graph theoryEditors:
Pat Morin and Eunjin OhSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
A central problem in checking network robustness is finding the minimum number of vertices or edges that need to be removed in order to disconnect the network. In classic (static) graphs this is modeled by computing a minimum cut or a minimum vertex separator between a source vertex and a target vertex . The static graph model however does not consider how a network may change over time. In transportation networks, for example, the time schedule is a fundamental aspect that has to be taken into account for analyzing several properties, like connectedness and robustness. The need to incorporate time information of edge availability has led to the introduction of the temporal graph modelΒ [12, 9, 16, 10], where edges are assigned timestamps in a discrete set that define when each edge is available (thus when a specific transport is available in a transportation network).
The robustness problems (minimum cut and minimum vertex separator) have been considered also for temporal graphs, where the paths to be removed have to be temporal, that is they have to satisfy a time constraint. Given a source and a target , the (s,z)-Temporal Cut problem asks for the minimum number of temporal edges that have to be removed so that and are disconnected, while (s,z)-Temporal Separator asks for the minimum number of vertices that have to be removed so that and are disconnected. (s,z)-Temporal Cut is known to be in solvable in polynomial timeΒ [2], (s,z)-Temporal Separator is known NP-hardΒ [12, 17], and its fixed-parameter tractability and approximability (and variants thereof) have been studiedΒ [7, 15, 8, 14, 11].
A variant of the (s,z)-Temporal Separator problem that has been considered inΒ [8] to model the robustness of transportation system, defines and as separated if the time needed to move from to is above a time threshold. The motivation is that if the time to move from to is increased considerably, then this makes the possibility of moving from to unlikely. This is modeled inΒ [8] by defining the (s,z,)-Temporal Separator problem, that asks for a smallest subset of vertices whose removal deletes each temporal path that takes at most time between and . Several results have been given for (s,z,)-Temporal Separator inΒ [8]. The (s,z,)-Temporal Separator problem is NP-hard when and the temporal graph is defined over (at least) two timestamps. On the other hand, the problem is solvable in polynomial time when the underlying graph is a tree (after deleting and ), or it has branchwidth at most two. As for the approximation complexity, it is shown to be not approximable within factor assuming that ) ( is the set of vertices of the temporal graph, the number of timestamps); moreover, a -approximation algorithm is presented (also a -approximation algorithm for (s,z)-Temporal Separator). Finally, it is shown that solving (s,z,)-Temporal Separator when the underlying graph has bounded pathwidth is at least as difficult as solving a problem called Discrete Segment Covering, whose complexity is unsolvedΒ [1]. In SectionΒ 3, we settle the status of (s,z,)-Temporal Separator on graphs of bounded pathwidth: we show that the decision version of problem is NP-hard even with and when the underlying graph has pathwidth at most , and we give a polynomial-time algorithm when the pathwidth is at most . Then in SectionΒ 4, we show that (s,z,)-Temporal Separator cannot be approximated within factor for any constant , unless and we present an -approximation algorithm for the strict variant of (s,z,)-Temporal Separator111In the strict variant a temporal path must uses temporal edges with increasing timestamps. We show also that improving this factor is a challenging problem, since the strict variant of (s,z,)-Temporal Separator is hard to approximate as Vertex Cover -Uniform Hypergraph, where . In SectionΒ 5, we consider the (s,z,)-Temporal Cut problem and we show that it is APX-hard, which contrasts with the polynomial-time solvability of the problem when deadlines are not considered, and we present a -approximation algorithm. In SectionΒ 2 we give some definitions and we formally define the two problems we are interested into. Some of the proofs are omitted due to space constraint.
2 Preliminaries
For an integer , we use the notation . A temporal graph is defined over a set of vertices and a set of temporal edges, where . An undirected edge in a temporal graph is then a triple , where and is a timestamp222As in [8] we assume that is a temporal edge of if and only if is a temporal edge of .. Note that we denote by an edge in an undirected (static) graph and an arc in a directed (static) graph.
We say that are neighbors in if they share some temporal edge, and denote the set of neighbors of by (we drop the subscript if it is clear from the context). Given a set , we denote by the subgraph induced by , which contains vertex set and every temporal edge whose two endpoints are in . We also denote by the temporal graph obtained by removing each vertex in . Given a set , we denote by the temporal graph obtained by removing each temporal edge in .
An interval , with and , is the sequence of consecutive timestamps between and , including and . Given interval , is the temporal subgraph of that has temporal edges having timestamps in .
A temporal path in a temporal graph is a sequence of temporal edges such that
with and , for each , and , , for each with ; is called an ()-temporal path, since it starts from vertex and ends in vertex . If , with , then the temporal path is strict. Given two vertices and Given a temporal path , the travelling time of is defined as . The set of vertices of a temporal path is denoted by . We may refer to a temporal path of travelling time at most as an -temporal path. Two temporal paths are temporal edge disjoint if they donβt share any temporal edge.
Given a temporal graph , we assume that there are two special vertices , which are the source and the target vertex of . A set is an -temporal separator (-strict temporal separator, respectively) in if there is no temporal path (strict temporal path, respectively) in between and . Given , a set is an -temporal separator (-strict temporal separator, respectively) in if there is no temporal path (strict temporal path, respectively) between and in of travelling time at most .
A set of temporal edges is an -temporal cut (-strict temporal cut, respectively) in if there is no temporal path (strict temporal path, respectively) in between and . Given a set is an -temporal cut (-strict temporal cut, respectively) in if there is no temporal path (strict temporal path, respectively) in between and of travelling time at most .
Now, we are ready to define the combinatorial problems we are interested in. The first, introduced inΒ [8], is the following.
Problem 1 ((s,z,)-Temporal Separator).
- Input:
-
a temporal graph , two vertices , a positive integer .
- Output:
-
An (s,z,)-temporal separator in of minimum size.
We denote by (s,z,)-Strict Temporal Separator the variant of (s,z,)-Temporal Separator where we look for an (s,z,)-strict temporal separator.
We consider now the second problem we are interested into.
Problem 2 ((s,z,)-Temporal Cut).
- Input:
-
a temporal graph , two vertices , a positive integer .
- Output:
-
An (s,z,)-temporal cut in of minimum size.
Note that if , then (s,z,)-Temporal Separator ((s,z,)-Temporal Cut, respectively) is exactly the (s,z)-Temporal Separator problem (the (s,z)-Temporal Cut) problem, respectively) where we look for an - temporal separator (-temporal cut, respectively) in .
3 Graphs of bounded pathwidth
Let us first recall the notion of pathwidth. A nice path decomposition of a graph is a sequence of set of vertices , with each referred to as a bag, such that all of the following holds:
-
;
-
for , either , with , in which case is called an introduce bag; or , with , in which case is a forget bag.
-
for every pair of vertices and that share an edge in , some bag contains both and (regardless of the time of the edge).
-
for every vertex , there are such that the set of bags that contain is precisely .
The width of the nice path decomposition is . The pathwidth of is the minimum width of a nice path decomposition of .
We show that (s,z,)-Temporal Separator is NP-hard even on graphs of pathwidth and when . Our reduction is from the Multicolored Independent Set problem, where we are given a (static) graph and a partition of into sets. The sets are called color classes. The question is whether there is an independent set of such that for each , that is, we must choose one vertex per color class to form an independent set. Note that this problem is typically used to prove W[1]-hardness, but it is also NP-hardΒ [6]333Note that the problem considered inΒ [6], Multicolored Clique, is equivalent to Multicolored Independent Set if we consider complementary relations (edges and no edges) between vertices of different color classes of the input graph..
Let be an instance of Multicolored Independent Set, with vertex partition . We assume, without loss of generality, that for every .
Let us construct from an instance of the (s,z,)-Temporal Separator problem consisting of temporal graph , vertices and to separate, and . In the construction, we assign to temporal edges of a time in the set , with the understanding that all elements of correspond to a distinct integer. Since , one can view the temporal edges as being colored by an element of and the problem as having to destroy all monochromatic paths β so the subscripts of the elements of can be seen as colors. So from , first add to the vertices , and a new vertex . We then have vertex-choosing gadgets and edge-verification gadgets (see FigureΒ 1 for an illustration).
Vertex-choosing gadgets.
For each , build a gadget for as follows. For every , add to two vertices and . Then add a temporal path at time from to formed by the temporal edges . Also add a temporal path at time from to formed by the temporal edges .
To complete the gadget, add a new vertex , then add temporal edges so that there is a path with a time of from to that first goes through , then through all the vertices exactly once. More precisely, denote , where the ordering is arbitrary. Then, add the temporal edges and , and for each , add the temporal edge .
Edge verification gadgets.
Next, we construct gadgets to verify that the chosen vertices correspond to an independent set of . For each edge of , where and such that , add to two vertices and . Add a temporal path at time from to formed by the temporal edges , and , enforcing the deletion of at least one of the two vertices. Next, add a temporal path at time formed by the temporal edges . Finally, add a new vertex and a temporal path at time going from to formed by the temporal edges .
Lemma 1.
The graph constructed from as described above has pathwidth at most .
The idea is that we can get a path decomposition by putting in every bag. Then, the and the gadgets are easy to construct using two extra vertices per bag. We next show that NP-hardness holds.
Lemma 2.
The graph has a multicolored independent set if and only if has an -temporal separator of size .
Proof sketch.
Let be a multicolored independent set of , with each . In , in the gadget, delete every vertex, except , and delete instead. This removes all the and the temporal paths, but can reach with a temporal path at time . Then for each edge of , in the gadget, delete if reaches with time , and delete otherwise. This removes the temporal path, and since we delete at least one of or , there remains no temporal path at time or going through the gadget.
Conversely, suppose there is an -temporal separator in of size . The temporal paths enforce deleting, for each , one of or , and also for each one of or . There is no room for other deletions. Because of the temporal path in the gadget, some is deleted and some is kept. Also, we cannot keep and from different gadgets if , as otherwise there will be a or temporal path going through the gadget. Hence, the kept vertices correspond to a multicolored independent set.
Theorem 3.
The (s,z,)-Temporal Separator problem is NP-hard, even with and on temporal graphs of pathwidth at most , and even if each edge is present in only one timestamp.
We mention that it should be possible to modify the proof to prove a similar hardness for the strict variant of the problem, for larger values of , as it suffices to replace each label with time intervals that are far enough from each other. This modification requires a large value of as the red path in our construction traverses vertices, in addition to and . We leave the details for a future version, and the complexity of the strict variant for fixed pathwidth and remains open.
Graphs of pathwidth
Here we show that (s,z,)-Temporal Separator can be solved in polynomial time on graphs of pathwidth , for any , which shows that the above hardness is tight, assuming . Note that now, we allow temporal edges to have multiple activation times, and we allow them to be directed or not. Let be a temporal graph. We first apply two reduction rules, which can easily seen to be safe, that is, a solution of size at most exists in the temporal graph before the application of the rule if and only if it exists also after its application.
Rule 1.
If has a vertex such that is an -temporal path, then delete .
Rule 2.
If has multiple connected components , then solve each subgraph separately.
We say that is clean if none of the above rules is applicable to . Note that for and (note that is the set of temporal edges of ), one can determine in time whether one of the rules applies, and each rule can be applied at most times, and so a graph can be made clean in time . Note, for RuleΒ 1 we assume that the time between the consecutive temporal arcs can be compared in constant time, and Rule 2 does not use arc times, so there is no time dependency on .
We now turn to (clean) graphs of pathwidth at most . We assume that we have checked that has pathwidth at most and we can compute a decomposition of in timeΒ [3]. The idea is to first check whether there is an -separator of size at most (so, a separator that ignores edge times). If there is one, then there is an -temporal separator of size at most . In this case we can compute a solution by trying every combination of at most three vertices. If there is no such separator, we can rely on the structural lemma below, which is illustrated in FigureΒ 2. First, we can show that there is a sequence of bags that contain both and ; this allows to find , consisting of the vertices introduced and forgotten within this sequence. This induces a caterpillar444Recall that a caterpillar is a tree in which there is a main path , and every vertex not on that path is a leaf adjacent to a vertex of the path. , as removing and from these bags yields a subgraph of pathwidth at most . The vertices other than or in bags that precede this sequence form , and the vertex or introduced last has at most one neighbor in (e.g., in FigureΒ 2, has only as a neighbor in ). Analogously, contains vertices of bags that occur after the sequence.
Lemma 4.
Suppose that is clean, has pathwidth at most , and has no -separator of size or less. Then in time we can compute a partition of into three non-empty sets such that all of the following holds:
-
either has at most one neighbor in (resp. ), or has at most one neighbor in (resp. ).
-
the subgraph induced by is a caterpillar with main path . Moreover, is the only vertex of whose neighborhood can intersect with , and is the only vertex of whose neighborhood can intersect with .
One can infer from this structure that βmostβ deletions occur on the caterpillar path.
Lemma 5.
Suppose that is clean and that can be partitioned into the sets as in LemmaΒ 4. Then there exists a minimum -temporal separator in which at most one vertex of is deleted, at most one vertex of is deleted, and all other deleted vertices are on the main path of the caterpillar.
Our algorithm proceeds as follows. We first make clean, possibly handling multiple connected components of separately, and construct the sets from LemmaΒ 4. We then run AlgorithmΒ 1, which first guesses every way that a solution could delete at most one vertex from and at most one vertex from , noting that such a solution exists by LemmaΒ 5. There are possible guesses, and for each of them, we solve a restricted version of the problem where we can only delete vertices from the caterpillar .
This is done by the function, which attempts to extend the guess by finding the minimum number of deletions to do on the main path , traversing it from left to right. When at a specific , we restrict the graph to , where contains the deletions made so far and contains , and the predecessors of , and their neighbors. In a greedy manner, we delete only if it creates a temporal path in this restricted graph, considering the deletions applied so far. We can apply a greedy approach, since we can show that no vertex in is removed, if needed is removed instead. This ensures that there is no temporal path that goes through the βs in increasing order (possibly going in as well), and we make one last check at the end to ensure that no temporal path goes through and then on the path in the reverse order (if so, we delete to prevent that).
Theorem 6.
The (s,z,)-Temporal Separator problem can be solved in time on graphs on pathwidth at most , where and .
Note that the above algorithm works for the strict variant of the problem. Indeed, the algorithm only needs to query whether a forbidden path exists, so it suffices to have access to a routine that determines whether a strict -temporal path exists. Again we leave the details for a future version.
4 Approximation of (s,z,)-Temporal Separator
4.1 Hardness of Approximation
In this section we strengthen the inapproximability of (s,z,)-Strict Temporal Separator (and later we extend the inapproximability to (s,z,)-Temporal Separator). We prove the result by giving an approximation preserving reduction from Directed Multicut to (s,z,)-Strict Temporal Separator. Directed Multicut is known to be inapproximable within factor , for any constant , even for a directed acyclic graph with a set of vertices, unless Β [4]. We recall here that Directed Multicut (we consider it is defined on a directed acyclic graph).
Problem 3 (Directed Multicut).
- Input:
-
given a directed acyclic graph , a set of pairs of vertices, with , .
- Output:
-
asks for a minimum cardinality subset so that each pair , , is disconnected in .
Note that we assume that, for each , , it holds that , otherwise the pair cannot be separated by edge removal. Given an instance of Directed Multicut, the vertices that belong to a pair in are called terminals; the set (, respectively) contains those terminals such that and ( and , respectively).
Consider an instance of Directed Multicut, in the following we construct a corresponding instance of (s,z,)-Strict Temporal Separator. We first present the idea of the construction. Essentially contains copies of each vertex, plus one vertex for each arc in , in addition to and . This ensures that only the vertices associated with arcs will be removed, as removing copies of each vertex of requires to delete too many vertices. As for the temporal edges of , for each arc from to in , there is a path of length two, consisting of a temporal edge from the vertex associated with to vertex associated with arc and a temporal edge from the vertex associated with arc to the vertex associated with . Each vertex is associated with a interval of timestamps . The timestamps are assigned to temporal edges of so that if there exists a path in from to , then there exists a temporal path from two corresponding vertices of , that is to , , with timestamps in the interval .
Now, we present the formal definition of the instance of (s,z,)-Strict Temporal Separator. First, . Given , since is a DAG, we assume that the vertices of are sorted according to a topological sorting of , that is for , , it holds that . We define the set of vertices:
Now, we define the set of temporal edges.
For a vertex , ,
denotes the set of vertices that can be reached with
a path that starts from in .
Now, we prove the relations between Directed Multicut
and (s,z,)-Strict Temporal Separator.
Lemma 7.
Consider an instance of Directed Multicut and a the instance of (s,z,)-Strict Temporal Separator, computed by the construction above. Then (1) given a solution of Directed Multicut on instance consisting of arcs we can compute in polynomial time a solution of (s,z,)-Strict Temporal Separator on instance consisting of vertices; (2) given a solution of (s,z,)-Strict Temporal Separator on instance consisting of vertices we can compute in polynomial time a solution of Directed Multicut on instance consisting of most arcs.
Proof sketch.
For (1), given a solution of Directed Multicut on instance consisting of arcs, we can compute in polynomial time a solution of (s,z,)-Strict Temporal Separator on the corresponding instance as follows: . Indeed, if contains a strict temporal path it must pass through two vertices and there is a path between the corresponding vertices , of such that . For (2), given a solution of (s,z,)-Strict Temporal Separator on instance , where , first we can show that that there is a solution of (s,z,)-Strict Temporal Separator on instance , with , that contains only vertices . We can define a solution of Directed Multicut on instance as follows .
It follows from Lemma 7 that we have designed an approximation preserving reduction from Directed Multicut to (s,z,)-Strict Temporal Separator. Since Directed Multicut is not approximable within factor , for any constant , unless [4], we have the following result.
Theorem 8.
The (s,z,)-Strict Temporal Separator problem is -hard to approximate for any constant , unless .
The same result holds also for (s,z,)-Temporal Separator, we need to slightly modify the input temporal graph so that each -temporal path is forced to be strict.
Corollary 9.
The (s,z,)-Temporal Separator problem is -hard to approximate for any constant , unless .
4.2 Approximating (s,z,)-Strict Temporal Separator
We consider now the (s,z,)-Strict Temporal Separator problem and we present an -approximation algorithm for it. First, we prove the following easy claim.
Claim 10.
A strict -temporal path between and contains at most vertices different from and .
Now, we present the approximation algorithm (AlgorithmΒ 2). The algorithm greedily looks for a strict -temporal path between and . If there exists such a , AlgorithmΒ 2 removes all the vertices of from , except for and , and adds its vertices to the vertex separator . If there exists no such path, then the algorithm stops and return .
AlgorithmΒ 2 has approximation factor since the -temporal paths considered in each iteration are vertex-disjoint, thus any solution of (s,z,)-Strict Temporal Separator contains at least one vertex for each of these temporal path.
Theorem 11.
Algorithm 2 is an -approximation algorithm for (s,z,)-Strict Temporal Separator.
Next, we prove that, using an approximation preserving reduction from Vertex Cover -Uniform Hypergraph similar to the one presented inΒ [8] from Set Cover, improving this approximation factor is a challenging problem. In particular, Vertex Cover -Uniform Hypergraph is not approximable within factor , for any positive constant , assuming the Unique Game ConjectureΒ [13].
Corollary 12.
(s,z,)-Strict Temporal Separator is hard to approximate within factor , for any positive constant , assuming the Unique Game Conjecture.
5 Tractability and approximation of (s,z,)-Temporal Cut
In this section we consider the (s,z,)-Temporal Cut problem. First, we prove the APX-hardness of the problem, then we present a -approximation algorithm.
5.1 Hardness of (s,z,)-Temporal Cut
We show the APX-hardness of (s,z,)-Temporal Cut, by presenting an approximation preserving reduction from the Multiway Cut problem, which is APX-hardΒ [5]. In this latter problem, the input is an undirected graph with distinguished vertices called terminals. The goal is to remove the minimum number of edges from to cut all paths between terminals, that is, compute of minimum size such that in there is no path between and for every distinct .
Consider an instance of Multiway Cut and construct a temporal graphΒ as follows. First define . We assume that some edges of are undeletable. This can easily be achieved by replacing an undeletable edge with a large number of parallel paths between and at time . We construct as follows. First, start with a copy of in which every temporal edge is defined at time , and every such temporal edge is deletable: for each we add to . Then add vertices and , and add the following undeletable edges:
In other words we add and for , and add . Note that is a neighbor of every except . Also observe that the edge is useless, but we include it to preserve the pattern.
Theorem 13.
The (s,z,)-Temporal Cut problem is APX-hard, even for .
Proof sketch.
Let be a multiway cut of , so that all paths are removed in . In , remove the set . Note that needs to use two distinct and terminals to reach , because it first needs to use some temporal edges, but cannot use the temporal edge . But cuts any path between two terminals, so is a temporal cut of .
Conversely, any temporal cut contains only deletable edges which are copied from . Consider . A case analysis shows that if has a path between and , then has an -temporal path from to , going through then or vice-versa using that path. Thus must be a multiway cut for .
Note for , (s,z,)-Temporal Cut is in P: the subgraphs that occur at different times can be treated independently, and thus can be solved by computing a minimum edge cut for each possible time.
Also note that unlike most of our previous results, there is no obvious extension of the above reduction to the the strict variant, where one must delete a minimum number of edges to remove all strict temporal paths of travel time at most . We leave the complexity of latter as an open problem.
5.2 A -Approximation for (s,z,)-Temporal Cut
We present a -approximation algorithm for (s,z,)-Temporal Cut. We start by recalling a generalization of Mengerβs Theorem on temporal graphsΒ [2].
Theorem 14.
The maximum number of edge-disjoint -temporal paths in a temporal graph equals the size of a minimum temporal -cut of .
Also given a temporal graph , it is possible to compute in polynomial time a minimum temporal -cut of Β [2] and we denote such algorithm by . We present now a result that will be useful to prove the approximation factor.
Lemma 15.
Given , consider temporal graph and let be an -cut of . Consider a temporal path of , for some , and a temporal path of , for some . Then and are temporal edge disjoint.
We describe now an algorithm that has approximation factor , then we show how to use it to achieve approximation factor . We assume for simplicity that is even.
The algorithm is recursive: given an interval , at each step if the difference is at least , thus contains at least timestamps, it defines a timestamp that partitions in two (almost) equal parts the intervals of length contained in . Then it computes a minimum temporal cut of and recursively computes a solution on the first part of intervals and a solution on the second part of intervals (independently). Since the number of intervals of length is bounded by , and each recursive call partitions in two equal parts this set of intervals, it follows that after levels of recursion, the size of an interval is at most , thus there can be at most levels of recursion.
Denote by the number of recursion levels and by the number of timestamps defined (as in the pseudocode) at level , . Denote by the -th timestamp chosen by the algorithm at the -th level of the recursion, and . Now, consider an approximate solution and optimal solution of (s,z,)-Temporal Cut. We partition and as follows. Given a timestamp , and , we denote by the set of temporal edges added to by the approximation algorithm when it defines . By construction and by Lemma 15, the sets , , , define a partition of . Similarly, we define , , , as the set of temporal edges such that (1) there is an -temporal path in from to that contains and (2) does not belong to any , with for some . Note that by LemmaΒ 15 this is indeed a partition, and in particular for each it holds that for each and .
Since each temporal edge belongs to exactly one set and since , for each , we have that
and
Now, we prove the following result.
Lemma 16.
Consider , , , the set of temporal edges cut by AlgorithmΒ 3 when it defines . For each level of the recursion, it holds that
Based on the previous lemma, since the number of recursion levels is bounded by , we can prove the following.
Theorem 17.
Algorithm 3 returns an -temporal cut of size at most .
Next we prove that the previous approximation algorithm can be used to obtain an approximation algorithm of factor for (s,z,)-Temporal Cut. We assume that is a multiple of (if not, increase to the next multiple of , with no temporal edges existing in the extra times appended). Consider the time domain and computes the following sets of disjoint intervals of :
-
;
-
.
Each interval of length is contained in at least one element of or . and, moreover, two graphs defined on distinct intervals of a set are temporal edge disjoint. Recall that is the temporal graph defined on interval .
Lemma 18.
Consider the sets and , then (1) for each of length , there is an interval of or that contains it; (2) Given and be two distinct interval of , then a temporal path of and a temporal path of are temporal edge disjoint.
Now, we run Algorithm 3 on each , with and we compute a feasible solution since by Lemma 18 each interval of length is contained in an interval of or . The -approximation factor is due to the fact that each interval has length and we approximate each with a factor of . Then by Lemma 18 two intervals and of , are temporal edge disjoint, thus each temporal edge removed by an optimal solution belongs to at most one interval of and at most one interval of . Because we remove edges from both the intervals in and , our approximation factor is multiplied by two.
Corollary 19.
(s,z,)-Temporal Cut admits a -approximation algorithm.
6 Conclusion
We have studied (s,z,)-Temporal Separator and (s,z,)-Temporal Cut, two variants of the vertex separator and the edge cut problem in temporal graphs. We have shown that (s,z,)-Temporal Separator is NP-hard even when the underlying graph has pathwidth bounded by four and it can be solved in polynomial time for graphs of pathwidth bounded by three. We have shown that (s,z,)-Temporal Separator cannot be approximated within factor for any constant , unless , and that the strict version is approximable within factor ; moreover, we have shown that it is unliklely that this factor can be improved. Finally, We have shown that (s,z,)-Temporal Cut is APX-hard and that it is approximable within factor .
We conclude the paper with a few open problems:
-
Is the (s,z,)-Temporal Separator problem NP-hard on graphs of treewidth at most three?
-
Is there a -approximation for (s,z,)-Temporal Separator (non strict variant)?
-
Is there a -approximation for the (s,z,)-Temporal Cut problem?
-
Is the strict variant of the (s,z,)-Temporal Cut NP-hard?
References
- [1] Dan Bergren, Eduard Eiben, Robert Ganian, and Iyad Kanj. On covering segments with unit intervals. SIAM J. Discret. Math., 36(2):1200β1230, 2022. doi:10.1137/20M1336412.
- [2] KennethΒ A. Berman. Vulnerability of scheduled networks and a generalization of mengerβs theorem. Networks, 28(3):125β134, 1996. doi:10.1002/(SICI)1097-0037(199610)28:3\%3C125::AID-NET1\%3E3.0.CO;2-P.
- [3] HansΒ L Bodlaender and Ton Kloks. Efficient and constructive algorithms for the pathwidth and treewidth of graphs. Journal of Algorithms, 21(2):358β402, 1996. doi:10.1006/JAGM.1996.0049.
- [4] Julia Chuzhoy and Sanjeev Khanna. Polynomial flow-cut gaps and hardness of directed cut problems. J. ACM, 56(2):6:1β6:28, 2009. doi:10.1145/1502793.1502795.
- [5] Elias Dahlhaus, DavidΒ S Johnson, ChristosΒ H Papadimitriou, PaulΒ D Seymour, and Mihalis Yannakakis. The complexity of multiway cuts. In Proceedings of the twenty-fourth annual ACM symposium on Theory of computing, pages 241β251, 1992.
- [6] MichaelΒ R Fellows, Danny Hermelin, Frances Rosamond, and StΓ©phane Vialette. On the parameterized complexity of multiple-interval graph problems. Theoretical computer science, 410(1):53β61, 2009. doi:10.1016/J.TCS.2008.09.065.
- [7] Till Fluschnik, Hendrik Molter, Rolf Niedermeier, Malte Renken, and Philipp Zschoche. Temporal graph classes: A view through temporal separators. Theor. Comput. Sci., 806:197β218, 2020. doi:10.1016/J.TCS.2019.03.031.
- [8] HovhannesΒ A. Harutyunyan, Kamran Koupayi, and Denis Pankratov. Temporal separators with deadlines. In Satoru Iwata and Naonori Kakimura, editors, 34th International Symposium on Algorithms and Computation, ISAAC 2023, December 3-6, 2023, Kyoto, Japan, volume 283 of LIPIcs, pages 38:1β38:19. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik, 2023. doi:10.4230/LIPICS.ISAAC.2023.38.
- [9] Petter Holme. Modern temporal network theory: a colloquium. The European Physical Journal B, 88(9):234, 2015.
- [10] MohammadΒ Mehdi Hosseinzadeh, Mario Cannataro, PietroΒ Hiram Guzzi, and Riccardo Dondi. Temporal networks in biology and medicine: a survey on models, algorithms, and tools. Netw. Model. Anal. Health Informatics Bioinform., 12(1):10, 2023. doi:10.1007/S13721-022-00406-X.
- [11] Allen Ibiapina and Ana Silva. Mengerian graphs: Characterization and recognition. J. Comput. Syst. Sci., 139:103467, 2024. doi:10.1016/J.JCSS.2023.103467.
- [12] David Kempe, JonΒ M. Kleinberg, and Amit Kumar. Connectivity and inference problems for temporal networks. J. Comput. Syst. Sci., 64(4):820β842, 2002. doi:10.1006/jcss.2002.1829.
- [13] Subhash Khot and Oded Regev. Vertex cover might be hard to approximate to within 2- . Journal of Computer and System Sciences, 74(3):335β349, 2008.
- [14] Nina Klobas, GeorgeΒ B. Mertzios, Hendrik Molter, Rolf Niedermeier, and Philipp Zschoche. Interference-free walks in time: temporally disjoint paths. Auton. Agents Multi Agent Syst., 37(1):1, 2023. doi:10.1007/S10458-022-09583-5.
- [15] Nicolas Maack, Hendrik Molter, Rolf Niedermeier, and Malte Renken. On finding separators in temporal split and permutation graphs. J. Comput. Syst. Sci., 135:1β14, 2023. doi:10.1016/J.JCSS.2023.01.004.
- [16] Othon Michail. An introduction to temporal graphs: An algorithmic perspective. Internet Math., 12(4):239β280, 2016. doi:10.1080/15427951.2016.1177801.
- [17] Philipp Zschoche, Till Fluschnik, Hendrik Molter, and Rolf Niedermeier. The complexity of finding small separators in temporal graphs. J. Comput. Syst. Sci., 107:72β92, 2020. doi:10.1016/J.JCSS.2019.07.006.
