Tight Approximation and Kernelization Bounds for Vertex-Disjoint Shortest Paths
Abstract
We examine the possibility of approximating Maximum Vertex-Disjoint Shortest Paths. In this problem, the input is an edge-weighted (directed or undirected) -vertex graph along with terminal pairs . The task is to connect as many terminal pairs as possible by pairwise vertex-disjoint paths such that each path is a shortest path between the respective terminals. Our work is anchored in the recent breakthrough by Lochet [SODA ’21], which demonstrates the polynomial-time solvability of the problem for a fixed value of .
Lochet’s result implies the existence of a polynomial-time -approximation for Maximum Vertex-Disjoint Shortest Paths, where is a constant. (One can guess terminal pairs to connect in time and then utilize Lochet’s algorithm to compute the solution in time.) Our first result suggests that this approximation algorithm is, in a sense, the best we can hope for. More precisely, assuming the gap-ETH, we exclude the existence of an -approximation within time for any function that only depends on .
Our second result demonstrates the infeasibility of achieving an approximation ratio of in polynomial time, unless P NP. It is not difficult to show that a greedy algorithm selecting a path with the minimum number of arcs results in a -approximation, where is the number of edges in all the paths of an optimal solution. Since , this underscores the tightness of the -inapproximability bound.
Additionally, we establish that Maximum Vertex-Disjoint Shortest Paths is fixed-parameter tractable when parameterized by but does not admit a polynomial kernel. Our hardness results hold for undirected graphs with unit weights, while our positive results extend to scenarios where the input graph is directed and features arbitrary (non-negative) edge weights.
Keywords and phrases:
Inapproximability, Fixed-parameter tractability, Parameterized approximationCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Approximation algorithms analysis ; Theory of computation Shortest paths ; Theory of computation Problems, reductions and completeness ; Theory of computation Fixed parameter tractabilityEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
We study a variant of the well-known problem Vertex-Disjoint Paths. In the latter, the input comprises a (directed or undirected) graph and terminal pairs. The task is to identify whether pairwise vertex-disjoint paths can connect all terminals. Vertex-Disjoint Paths has long been established as NP-complete [21] and has played a pivotal role in the graph-minor project by Robertson and Seymour [29].
Eilam-Tzoreff [14] introduced a variant of Vertex-Disjoint Paths where all paths in the solution must be shortest paths between the respective terminals. The parameterized complexity of this variant, known as Vertex-Disjoint Shortest Paths, was recently resolved [25] and subsequently the running time improved [3]: The problem, parameterized by , is W[1]-hard and in XP (that is, polynomial-time solvable for constant ) for undirected graphs. On directed graphs, the problem is NP-hard already for if zero-weight edges are allowed [16]. The problem is solvable in polynomial time for for positive edge weights [4]. It is NP-hard when is part of the input and the complexity for constant remains open.
The optimization variant of Vertex-Disjoint Shortest Paths, where not necessarily all terminal pairs need to be connected, but at least of them, is referred to as Maximum Vertex-Disjoint Shortest Paths.
A few remarks are in order. In the literature concerning Vertex-Disjoint Paths and its variants, one usually distinguishes between vertex-disjoint and internally vertex-disjoint paths. In the latter, two paths in a solution might share common endpoints while in the former, all paths must be completely vertex disjoint – including the two ends. We focus on the variant where paths must be completely vertex-disjoint, but most of our results also hold for internally vertex-disjoint paths.
Note that Vertex-Disjoint Shortest Paths is a special case of Maximum Vertex-Disjoint Shortest Paths with . For the maximization version, we are not given as input but are instead asked to find a set that is as large as possible. Slightly abusing notation, we do not distinguish between these two variants and refer to both as Maximum Vertex-Disjoint Shortest Paths.
While parameterization by yields strong hardness bounds (both in terms of parameterized complexity and, as we will show later, approximation), another natural parameterization would be the sum of path lengths in a solution. We initiate the study of a related parameter , the minimum number of edges in an optimal solution (assuming the instance is a yes-instance, otherwise, we define ). If we confine all edge weights to be positive integers, then serves as a lower bound for the sum of path lengths. Since our hardness results apply to unweighted graphs, studying instead of the sum of path lengths does not weaken the negative results and proves to be very useful for approximation and parameterized algorithms. Note that the sum of path lengths is not a suitable parameter as dividing all edge weights by (where is the maximum weight of any edge in the input) yields an equivalent instance where the sum of path lengths in the solution is at most one.
For the parameterized complexity of Maximum Vertex-Disjoint Shortest Paths, we note that the results for Vertex-Disjoint Shortest Paths [3, 25] for the parameterization by directly translate for Maximum Vertex-Disjoint Shortest Paths parameterized by . The problem is W[1]-hard as a generalization of Vertex-Disjoint Shortest Paths, and to obtain an XP algorithm, it is sufficient to observe that in time we can guess a set of size and apply the XP algorithm for Vertex-Disjoint Shortest Paths for the selected set of terminal pairs.
Before the recent work of Chitnis, Thomas, and Wirth [8], little was known about approximation algorithms for the Maximum Vertex-Disjoint Shortest Paths problem. Chitnis, Thomas, and Wirth demonstrated that no -approximation could be achieved in time assuming the gap-ETH.
For the related Maximum Vertex-Disjoint Paths, where the task is to connect the maximum number of terminal pairs by disjoint but not necessarily shortest paths, -approximation algorithms are due to Kleinberg [23] and Kolliopoulos and Stein [24]. The best known lower bounds for this variant are and . The first lower bound holds even if the input graph is an unweighted planar graph, while the second holds even if the input graph is an unweighted grid graph [9, 10]. For these two special cases, there are approximation algorithms achieving ratios and , respectively [9, 10].
When requiring the solution paths to be edge-disjoint rather than vertex-disjoint, it is known that even computing a -approximation is NP-hard in the directed setting [18]. There have also been some studies on relaxing the notion so that each edge appears in at most of the solution paths. The integer is called the congestion and the currently best known approximation algorithm achieves a -approximation with [11].
Our results.
We show that computing a -approximation for Maximum Vertex-Disjoint Shortest Paths is NP-hard for any (Theorem 3). Moreover in terms of FPT-approximations, we demonstrate in Theorem 1 that any -approximation in time implies FPT W[1] and that it is impossible to achieve an -approximation in time unless the gap-ETH fails. This significantly improves the current state of approximation results for Maximum Vertex-Disjoint Shortest Paths in two ways. First, we use the weaker assumption FPT W[1] instead of the gap-ETH. Second, our theorem excludes approximation factors polynomial in the input size, rather than only constant factors larger than 2 as shown by Chitnis et al. [8].
We complement the first lower bound by showing that a simple greedy strategy for Maximum Vertex-Disjoint Paths achieves a -approximation also for Maximum Vertex-Disjoint Shortest Paths (Theorem 4). In Theorems 5 and 7, we show that Maximum Vertex-Disjoint Shortest Paths is fixed-parameter tractable when parameterized by , but it does not admit a polynomial kernel. We mention that our hardness results hold for undirected graphs with unit weights, and all our positive results hold even for directed and edge-weighted input graphs. We summarize our results in Table 1.
Parameter | Exact | Approximation |
no | NP-complete | no -approximation in poly(n) time |
XP and W[1]-hard | no -approximation in time | |
FPT and no poly kernel | -approximation |
2 Preliminaries
For a positive integer , we denote by the set of all positive integers at most . We denote by a graph and by and the number of vertices and edges in , respectively. A graph is said to be -partite if can be partitioned into disjoint sets such that each set induces an independent set, that is, there is no edge with for some . The degree of a vertex is the number of edges in that contain as an endpoint and the maximum degree of a graph is the highest degree of any vertex in the graph.
A path in a graph is a sequence of distinct vertices such that each pair is connected by an edge in . The first and last vertex and are called the ends of . We also say that is a path from to or a --path. The length of a path is the sum of its edge lengths or simply the number of edges if the graph is unweighted. For two vertices , we denote the length of a shortest --path in by or if the graph is clear from the context.
We assume the reader to be familiar with the big-O notation and basic concepts in computational complexity like NP-completeness and reductions. We refer to the textbook by Garey and Johnson [17] for an introduction.
For a detailed introduction to parameterized complexity and kernelization, we refer the reader to the text books by Cygan et al. [12] and Fomin et al. [15]. A parameterized problem is a language containing pairs where is an instance of an (unparameterized) problem and is an integer called the parameter. In this paper, the parameter will usually be either the number of terminal pairs or the minimum number of edges in a solution (a maximum collection of vertex-disjoint shortest paths between terminal pairs). A parameterized problem is fixed-parameter tractable if there exists an algorithm solving any instance of in time, where is some computable function only depending on . To show that a problem is presumably not fixed-parameter tractable, one usually shows that the problem is hard for a complexity class known as W[1]. The class XP contains all parameterized problems which can be solved in time, that is, in polynomial time if is constant. A parameterized problem is said to admit a polynomial kernel, if there is a polynomial-time algorithm that given an instance computes an equivalent instance (called the kernel) such that are upper-bounded by a polynomial in . It is known that any parameterized problem admitting a polynomial kernel is fixed-parameter tractable and each fixed-parameter tractable problem is contained in XP.
An -approximation algorithm for a maximization problem is a polynomial-time algorithm that for any input returns a solution of size at least where is the size of an optimal solution. A parameterized -approximation algorithm also returns a solution of size at least , but its running time is allowed to be , where is the parameter and is some computable function only depending on . In this work, we always consider (unparameterized) approximation algorithms unless we specifically state a parameterized running time.
To exclude an -approximation for an optimization problem, one can use the framework of approximation-preserving reductions. A strict approximation-preserving reduction is a pair of algorithms – called the reduction algorithm and the solution-lifting algorithm – that both run in polynomial time and satisfy the following. The reduction algorithm takes as input an instance of a problem and produces an instance of a problem . The solution-lifting algorithm takes any solution of and transforms it into a solution of such that if is an -approximation for for some , then is an -approximation for . If a strict approximation-preserving reduction from to exists and is hard to approximate within some value , then is also hard to approximate within .
The exponential time hypothesis (ETH) introduced by Impagliazzo and Paturi [20] states that there is some such that each (unparameterized) algorithm solving 3-Sat takes at least time, where is the number of variables in the input instance. A stronger conjecture called the gap-ETH was independently introduced by Dinur [13] and Manurangsi and Raghavendra [27]. It states that there exist such that any -approximation algorithm for Max 3-Sat111Max 3-Sat is a generalization of 3-Sat where the question is not whether the input formula is satisfiable but rather how many clauses can be satisfied simultaneously. takes at least time.
3 Approximation
In this section, we show that Maximum Vertex-Disjoint Shortest Paths admits no -approximation in time unless the gap-ETH fails and no -approximation in polynomial time unless P NP. We complement the latter result by developing a -approximation algorithm that runs in polynomial time. We start with a reduction based on a previous reduction by Bentert et al. [3] and make it approximation-preserving.222We mention in passing that essentially the same modification to the reduction by Bentert et al. has been found by Akmal et al. [1] in independent research. While we use the modification to show stronger inapproximability bounds, they use it to show stronger fine-grained hardness results with respect to the minimum degree of a polynomial-time algorithm for constant . Moreover, our result is tight in the sense that a -approximation can be computed in polynomial time by simply connecting any terminal pair by a shortest path. A -approximation for any constant can also be computed in polynomial time by guessing terminal pairs to connect and then using the XP-time algorithm by Bentert et al. [3] to find a solution. Note that since is a constant, the XP-time algorithm for terminal pairs runs in polynomial time.
Theorem 1.
Unless FPT W[1], Maximum Vertex-Disjoint Shortest Paths cannot be -approximated in time, and assuming the gap-ETH, it cannot be -approximated in time. All of these results hold even for subcubic graphs with terminals of degree one.
Proof.
We present a strict approximation-preserving reduction from Multicolored Clique to Maximum Vertex-Disjoint Shortest Paths such that the maximum degree is three and each terminal vertex has degree one. Moreover, the maximum number of vertex-disjoint shortest paths between terminal pairs will be equal to the largest clique in the original instance. The theorem then follows from the fact that a -time -approximation for Clique would imply that FPT W[1] [7, 22], a -time -approximation for Clique refutes the gap-ETH [6], and that the textbook reduction from Clique to Multicolored Clique only increases the number of vertices by a quadratic factor and does not change the size of a largest clique in the graph [12].
The reduction is depicted in Figure 1 and works as follows.
Top right: Example instance for Multicolored Clique with colors and vertices per color. A multicolored clique is highlighted (by thick edges).
Bottom left: The constructed instance with the four shortest paths corresponding to the vertices of the clique highlighted. Note that these paths are pairwise disjoint. The dotted edges (incident to and vertices) indicate binary trees (where all leaves have distance from the root). Red edges indicate paths of length and blue edges indicate paths of length .
Let be a -partite graph (or equivalently a graph colored with colors where all vertices of any color form an independent set) with vertices of each color. Let be the set of vertices of color in . We start with a terminal pair for each color and a pair of (non-terminal) vertices for each vertex . Next for each color , we add a binary tree of height where the vertices are the leaves for all . We make adjacent to the root of the binary tree. Analogously, we add a binary tree of the same height with leaves and make adjacent to the root. Next, we add a crossing gadget for each pair of vertices with . If , then the gadget consists of four vertices , and and edges and . If , then the gadget consists of only two vertices and and the edge . For the sake of notational convenience, we will in the latter case also denote by and by . To complete the construction, we connect the different gadgets as follows. First, we connect via paths of length two and for all and and for all . Second, we connect via paths of length two the vertices to for all and all and to for all and all . Third, we connect also via paths of length two to for all and all . Next, we connect via paths of length each vertex to for each and . Similarly, is connected to via paths of length . Finally, we connect with for all and with for all . This concludes the construction.
We next prove that all shortest --paths are of the form
(1) |
for some and where the --paths go directly from to and the --paths go directly from to . We say that the respective path is the th canonical path for color .
To show the above claim, first note that the distance from to any vertex is the same value for all pairs of indices and . Moreover, the same holds for and , each --path contains at least one vertex and one vertex for some , and all paths of the form in Equation 1 are of length . We first show that each --path of length at most contains an edge of the form to . Consider the graph where all of these edges are removed. Note that due to the grid-like structure, the distance between and for any values , and is at least if and at least if .333We mention that there are some pairs of vertices and , where the distance between the two is less than . An example is the pair in Figure 1 with a distance of . However, in all examples it holds that and such that the left side is either smaller in both inequalities or larger in both inequalities. Hence, these pairs cannot be used as shortcuts as they move “down and left” instead of towards “down and right” in Figure 1. Hence, all shortest --paths use an edge of the form to and the shortest path from to some vertex is to the vertex . Note that the other endpoint of the specified edge is and the shortest path to now goes via for analogous reasons. Thus, all shortest --paths have the form (1).
We next prove that any set of disjoint shortest paths between terminal pairs in the constructed graph has a one-to-one correspondence to a multicolored clique of size for any . For the first direction, assume that there is a set of disjoint shortest paths between terminal pairs. Let be the set of indices such that the paths in connect and for each . Moreover, let be the index such that the shortest --path in is the th canonical path for for each . Now consider the set of vertices in . Clearly contains at most one vertex of each color and is of size as is of size . It remains to show that induces a clique in . To this end, consider any two vertices . We assume without loss of generality that . By assumption, the th canonical path for and the th canonical path for are disjoint. This implies that as the th canonical path for contains the former and the th canonical path for contains the latter. By construction, this means that . Since the two vertices were chosen arbitrarily, it follows that all vertices in are pairwise adjacent, that is, induces a multicolored clique of size .
For the other direction assume that there is a multicolored clique of size in . We will show that the th canonical path for is vertex-disjoint from the th canonical path for for all . Let be two arbitrary distinct indices in and let without loss of generality be . Note that the two mentioned paths can only overlap in vertices or and that the th canonical path for only contains vertices and and the th canonical path for only contains and . Moreover, since by assumption and are adjacent, it holds by construction that , and are four distinct vertices. Thus, we found vertex disjoint paths between distinct terminal pairs. This concludes the proof of correctness.
To finish the proof, observe that the constructed instance has maximum degree three, all terminal vertices have degree one, and the construction can be computed in polynomial time.
We mention in passing that in graphs of maximum degree three with terminal vertices of degree one, two paths are vertex disjoint if and only if they are edge disjoint. Hence, Theorem 1 also holds for Maximum Edge-Disjoint Shortest Paths, the edge-disjoint version of Maximum Vertex-Disjoint Shortest Paths.
Corollary 2.
Unless FPT W[1], Maximum Edge-Disjoint Shortest Paths cannot be -approximated in time, and assuming the gap-ETH, it cannot be -approximated in time. All of these results hold even for subcubic graphs with terminals of degree one.
We continue with an unparameterized lower bound by establishing that computing a -approximation is NP-hard. We mention that the reduction is quite similar to the reduction in the proof for Theorem 1.
Theorem 3.
Computing a -approximation for any for Maximum Vertex-Disjoint Shortest Paths is NP-hard.
Proof.
It is known that computing a -approximation for Clique is NP-hard [19, 30]. We present an approximation-preserving reduction from Clique to Maximum Vertex-Disjoint Shortest Paths based on Theorem 1. We use basically the same reduction as in Theorem 1 but we start from an instance of Clique and have a separate terminal pair for each vertex in the graph. Moreover, we do not require the binary trees pending from the terminal vertices and neither do we require long induced paths (red edges in Figure 1). These are instead paths with one internal vertex. An illustration of the modified reduction is given in Figure 2.
Left side: Example instance for Clique with a highlighted solution (by thick edges).
Right side: The constructed instance with the four shortest paths corresponding to the solution on the left side highlighted. Note that each shortest --path uses exactly two of the diagonal edges.
Note that the number of vertices and edges in the graph is at most , where is the number of vertices in the instance of Clique. Moreover, for each terminal pair , there is exactly one shortest --path (the path that moves horizontally in Figure 2 until it reaches the main diagonal, then uses exactly two edges on the diagonal, and finally moves vertically to ).
We next prove that for any , there is a one-to-one correspondence between a set of disjoint shortest paths between terminal pairs in the constructed graph and a clique of size in the input graph. For the first direction, assume that there is a set of disjoint shortest paths between terminal pairs. Let be the set of indices such that the paths in connect and for each . Now consider the set of vertices in . Clearly contains vertices. It remains to show that induces a clique in . To this end, consider any two vertices . We assume without loss of generality that . By assumption, the unique shortest --path and the unique shortest --path are vertex-disjoint. By the description of the shortest paths between terminal pairs and the fact that is higher than and is to the left of , it holds that the two considered paths both visit the region that is to the right of and above . This implies that two edges must be crossing at this position, that is, there are four vertices in the described region and not only two. By construction, this means that . Since the two vertices were chosen arbitrarily, it follows that all vertices in are pairwise adjacent, that is, induces a clique of size in the input graph.
For the other direction assume that there is a clique of size in the input graph. We will show that the unique shortest --path is vertex-disjoint from the unique shortest --path for all . Let be two arbitrary distinct indices in and let without loss of generality be . Note that the two mentioned paths can only overlap in the region that is to the right of and above . Moreover, since by assumption and are adjacent, it holds by construction that there are four distinct vertices in the described region and the two described paths are indeed vertex-disjoint. Thus, we found vertex disjoint paths between distinct terminal pairs.
We conclude by analyzing the approximation ratio. Note that we technically did not prove a strict reduction for the factor as the number of vertices in the original instance and the number of edges in the constructed instance are not identical. Still, the number of edges in the constructed instance is at most , where is the number of vertices in the original instance of Clique. Hence, any -approximation for Maximum Vertex-Disjoint Shortest Paths corresponds to a -approximation for Clique for some and therefore computing a -approximation for Maximum Vertex-Disjoint Shortest Paths is NP-hard.
Note that the maximum degree of the constructed instance is again three and all terminal vertices are of degree one. Thus, Theorem 3 also holds for the edge disjoint version of Maximum Vertex-Disjoint Shortest Paths. However in this case, a very similar result was already known before. Guruswami et al. [18] showed that computing a -approximation is NP-hard for a related problem called Length Bounded Edge-Disjoint Paths. Their reduction immediately implies the same hardness for Maximum Edge-Disjoint Shortest Paths. To the best of our knowledge, the best known unparameterized approximation lower bound for Maximum Vertex-Disjoint Shortest Paths was the lower bound due to Chitnis et al. [8] and we are not aware of any lower bound for Maximum Vertex-Disjoint Paths.
We next show that this result is tight, that is, we show how to compute a -approximation for Maximum Vertex-Disjoint Shortest Paths in polynomial time. We also show that the same algorithm achieves a -approximation. Note that we can always assume that as a set of vertex-disjoint paths is a forest and the number of edges in a forest is less than its number of vertices. We mention that this algorithm is basically identical to the best known (unparameterized) approximation algorithm for Maximum Disjoint Paths [23, 24].
Theorem 4.
There is a polynomial-time algorithm for Maximum Vertex-Disjoint Shortest Paths on directed and weighted graphs that achieves an approximation factor of .
Proof.
Let be a maximum subset of terminal pairs that can be connected by shortest pairwise vertex-disjoint paths and let be the index of a terminal pair such that a shortest -path contains a minimum number of arcs. We can compute the index as well as a shortest --path with a minimum number of arcs by running a folklore modification of Dijkstra’s algorithm from each terminal vertex .444The standard Dijkstra’s algorithm is modified by assigning to each vertex a pair of labels: the distance from the terminal and the number of arcs in the corresponding path; then the pairs of labels are compared lexicographically. Let be the number of arcs in the found path. Our algorithm iteratively picks the shortest --path using arcs, removes all involved vertices from the graph, recomputes the distance between all terminal pairs, removes all terminal pairs whose distance increased, updates the index , and recomputes . We distinguish whether or not.
While , note that we removed at most terminals pairs in . Hence, if holds at every stage, then we connected at least terminal pairs, that is, we found a -approximation.
So assume that at some point and let be the number of terminal pairs that we already connected by disjoint shortest paths. By the argument above, we have removed at most terminal pairs from thus far. We now make a case distinction whether or not . If , then we note that all remaining paths in contain at least vertices each and since the paths are vertex-disjoint, there can be at most paths left in . Hence, we can infer that . Consequently, even though we might remove all remaining terminal pairs in by connecting and , this is still a -approximation (and a -approximation as we assumed ).
If , then we note that all remaining paths in contain at least edges each. Moreover, since and are integers, each path contains at least edges each. Since all paths in contain by definition at most edges combined, the number of paths in is at most . Hence, we can infer in that case that . Again, even if we remove all remaining terminal pairs in by connecting and , this is still a -approximation (and a -approximation as we assumed ). This concludes the proof.
4 Exact Algorithms
In this section, we show that Maximum Vertex-Disjoint Shortest Paths is fixed-parameter tractable when parameterized by , but it does not admit a polynomial kernel. The proof for the first result uses the technique of color coding of Alon, Yuster, and Zwick [2]. Imagine we are searching for some structure of size in a graph. The idea of color coding is to color the vertices (or edges) of the input graph with a set of colors and then only search for colorful solutions, that is, structures in which all vertices have distinct colors. Of course, this might not yield an optimal solution, but by trying enough different random colorings, one can often get a constant error probability in time. Using the standard tool of -perfect hash families, these types of algorithms can be derandomized without significant overhead in the running time.
Theorem 5.
Maximum Vertex-Disjoint Shortest Paths on weighted and directed graphs can be solved in time.
Proof.
Let be an instance of Maximum Vertex-Disjoint Shortest Paths. First, we guess the value of by starting with and increasing the value of by one whenever we cannot find a solution with at least shortest paths and at most edges. We start with as any set of disjoint paths contains at least edges. Notice that the total number of vertices in a (potential) solution with paths is at most . We use the color-coding technique of Alon, Yuster, and Zwick [2]. We color the vertices of uniformly at random using colors (the set of colors is ) and observe that the probability that all the vertices in the paths in a solution have distinct colors is at least . We say that a solution to the considered instance is colorful if distinct paths in the solution have no vertices of the same color. Note that we do not require that the vertices within a path in the solution are colored by distinct/equal colors. The crucial observations are that any colorful solution is a solution and the probability of the existence of a colorful solution for a yes-instance of Maximum Vertex-Disjoint Shortest Paths is at least as any solution in which all vertices receive distinct colors is a colorful solution.
We use dynamic programming over subsets of colors to find a colorful solution. More precisely, we find the minimum number of arcs in a collection of pairwise vertex-disjoint paths for some satisfying the conditions: (i) for each , the path is a shortest path from to and (ii) there are no vertices of distinct paths of the same color.
For a subset of colors and a positive integer , we denote by the minimum total number of arcs in shortest paths connecting distinct terminal pairs such that the paths contains only vertices of colors in and there are no vertices of distinct paths of the same color. We set if such a collection of paths does not exist.
To compute , if , then let be the subset of vertices colored by the colors in . We use Dijkstra’s algorithm to find the set of all indices such that the lengths of the shortest --paths in and are the same. If , then we set . Assume that this is not the case. Then, we use the variant of Dijkstra’s algorithm mentioned in Theorem 4 to find the index and a shortest --path in with a minimum number of arcs. Finally, we set to be equal to the number of arcs in .
For , we compute for each using the recurrence relation
(2) |
The correctness of computing the values of follows from the description and the correctness of recurrence (2) follows from the condition that distinct paths should not have vertices of the same color.
We compute the values in order of increasing . Since computing for a given set of colors can be done in polynomial time, we can compute all values in overall time. Once all values are computed, we observe that a colorful solution exists if and only if .
If there is a colorful solution, then we conclude that is a yes-instance of Maximum Vertex-Disjoint Shortest Paths. Otherwise, we discard the considered coloring and try another random coloring and iterate. If we fail to find a solution after executing iterations, we obtain that the probability that is a yes-instance is at most . Thus, we return that is a no-instance with the error probability upper bounded by . Since the running time in each iteration is and , the total running time is in . Note that we do the color coding and dynamic programming for each value between and the actual value . However, this only adds an additional factor of which disappears in the .
The above algorithm can be derandomized using the results of Naor, Schulman, and Srinivasan [28] by replacing random colorings by prefect hash families. We refer to the textbook by Cygan et al. [12] for details on this common technique.
The FPT result of Theorem 5 immediately raises the question about the existence of a polynomial kernel. To show that a parameterized problem does presumably not admit a polynomial kernel, one can use the framework of cross-compositions. Given an NP-hard problem , a polynomial equivalence relation on the instances of is an equivalence relation such that (i) one can decide for any two instances in polynomial time whether they belong to the same equivalence class, and (ii) for any finite set of instances, partitions the set into at most equivalence classes. Given an NP-hard problem , a parameterized problem , and a polynomial equivalence relation on the instances of , an OR-cross-composition of into (with respect to ) is an algorithm that takes instances of belonging to the same equivalence class of and constructs in time an instance of such that (i) is polynomially upper-bounded by , and (ii) is a yes-instance of if and only if at least one of the instances is a yes-instance of . If a parameterized problem admits an OR-cross-composition, then it does not admit a polynomial kernel unless NP coNP/poly [5].
In order to exclude a polynomial kernel, we first show that a special case of Maximum Vertex-Disjoint Shortest Paths remains NP-hard. We call this special case Layered Vertex-Disjoint Shortest Paths and it is the special case of Vertex-Disjoint Shortest Paths where all edges have weight and the input graph is layered, that is, there is a partition of the vertices into (disjoint) sets such that all edges are between two consecutive layers, that is and or and for some . Moreover, each terminal pair satisfies that , , and each shortest path between the two terminals is monotone, that is, it contains exactly one vertex of each layer. Layered Vertex-Disjoint Shortest Paths is formally defined as follows.
It is quite straight-forward to prove that Layered Vertex-Disjoint Shortest Paths is NP-complete.
Proposition 6.
Layered Vertex-Disjoint Shortest Paths is NP-complete.
Proof.
We focus on the NP-hardness as Layered Vertex-Disjoint Shortest Paths is a special case of Vertex-Disjoint Shortest Paths and therefore clearly in NP. We reduce from 3-Sat. The main part of the reduction is a selection gadget. The gadget consists of a set of vertices and between each pair of consecutive vertices , there are two paths with internal vertices each. Let the set of vertices be and . The set of edges in the selection gadget is
The constructed instance will have terminal pairs and is depicted in Figure 3.
We set and and we will ensure that any shortest --path contains all vertices in and for each either all vertices in or all vertices in . These choices will correspond to setting the th variable to either true or false. Additionally, we have a terminal pair for each clause . There are (up to) three disjoint paths between and , each of which is of length . These paths correspond to which literal in the clause satisfies it. For each of these paths, let be the variable corresponding to the path. If appears positively in , then we identify the st vertex in the path with and if appears negatively, then we identify the vertex with . Note that the constructed instance is -layered and that once any monotone path starting in leaves the selection gadget, it cannot end in as any vertex outside the selection gadget has degree at most two and at the end of these paths are only terminals .
Since the construction runs in polynomial time, we focus on the proof of correctness. If the input formula is satisfiable, then we connect all terminal pairs as follows. Let be a satisfying assignment. The terminal pair is connected by a path containing all vertices in and for each , if assigns the th variable to true, then the path contains all vertices in and otherwise all vertices in . For each clause , let be variable in which uses to satisfy (if multiple such variables exist, we choose an arbitrary one). By construction, there is a path associated with that connects and and only uses one vertex in if appears positively in and a vertex in , otherwise. Since each vertex in and is only associated with at most one such path, we can connect all terminal pairs. For the other direction assume that all terminal pairs can be connected by disjoint shortest paths. As argued above, the --path stays in the selection gadget. We define a truth assignment by assigning the th variable to true if and only if the --path contains the vertices in . For each clause , we look at the neighbor of in the solution. This vertex belongs to a path of degree-two vertices that at some point joins the selection gadget. By construction, the vertex where this happens is not used by the --path, which guarantees that is satisfied by the corresponding variable. Since all clauses are satisfied by the same assignment, the formula is satisfiable and this concludes the proof.
With the NP-hardness of Layered Vertex-Disjoint Shortest Paths at hand, we can now show that it does not admit a polynomial kernel when parameterized by by providing an OR-cross-composition from its unparameterized version to the version parameterized by .
Theorem 7.
Layered Vertex-Disjoint Shortest Paths parameterized by does not admit a polynomial kernel unless NP coNP/poly.
Proof.
We present an OR-cross-composition from Layered Vertex-Disjoint Shortest Paths into Layered Vertex-Disjoint Shortest Paths parameterized by . To this end, assume we are given instances of Layered Vertex-Disjoint Shortest Paths all of which have the same number of layers and the same number of terminal pairs. Moreover, we assume that is some power of two. Note that we can pad the instance with at most trivial no-instances to reach an equivalent instance in which the number of instances is a power of two and the size of all instances combined has at most doubled.
The main ingredient for our proof is a construction to merge two instances into one. The construction is depicted in Figure 4. We first prove that the constructed instance is a yes-instance if and only if at least one of the original instances was a yes-instance. Afterwards, we will show how to use this construction to get an OR-cross-composition for all instances.
To show that the construction works correctly, first assume that one of the two original instances is a yes-instance. Since both cases are completely symmetrical, assume that there are shortest disjoint paths between all terminal pairs for all in . Then, we can connect all terminal pairs by using the unique shortest paths between and and between and for all together with the solution paths inside . Now assume that there is a solution in the constructed instance, that is, there are pairwise vertex-disjoint shortest paths between all terminal pairs for all . First assume that the --path passes through . Then, this path uses the unique shortest path from to . Note that this path blocks all paths between and vertices in for all . Thus, all paths have to pass through the graph . Note that the only possible way to route vertex-disjoint paths from all -terminals to all terminals and from all -terminals to all -terminals is to connect to and to for all . This implies that there is a solution that contains vertex-disjoint shortest paths between and in for all , that is, at least one of the two original instances is a yes-instance. The case where the --path passes through is analogous since the only monotone path from to a vertex in is the unique shortest --path and this path blocks all monotone paths from to vertices in for all .
Note that the constructed graph is layered and that the number of layers is . Moreover, the size of the new instance is in . To complete the reduction, we iteratively half the number of instances by partitioning all instances into arbitrary pairs and merge the two instances in a pair into one instance. After iterations, we are left with a single instance which is a yes-instance if and only if at least one of the original instances is a yes-instance. The size of the instance is in which is clearly polynomial in as each instance contains at least vertices. Moreover, the parameter in the constructed instance is , which is polynomial in for each graph as contains at least one vertex in each of the layers and at least terminal vertices. Thus, all requirements of an OR-cross-composition are met and this concludes the proof.
Note that since Layered Vertex-Disjoint Shortest Paths is a special case of Vertex-Disjoint Shortest Paths (and therefore of Maximum Vertex-Disjoint Shortest Paths), Theorem 7 also excludes polynomial kernels for these problems parameterized by .
Corollary 8.
Vertex-Disjoint Shortest Paths and Maximum Vertex-Disjoint Shortest Paths parameterized by do not admit polynomial kernels unless NP coNP/poly.
5 Conclusion
In this paper, we studied Maximum Vertex-Disjoint Shortest Paths. We show that there is no -approximation in polynomial time unless P NP. Moreover, if FPT W[1] or assuming the stronger gap-ETH, we show that there are no non-trivial approximations for Maximum Vertex-Disjoint Shortest Paths in time. When parameterized by , there is a simple -approximation in polynomial time that matches the lower bound as . Finally, we showed that Maximum Vertex-Disjoint Shortest Paths is fixed-parameter tractable when parameterized by , but it does not admit a polynomial kernel.
A way to combine approximation algorithms and the theory of (polynomial) kernels are lossy kernels [26]. Since the exact definition is quite technical and not relevant for this work, we only give an intuitive description. An -approximate kernel or lossy kernel for an optimization problem is a pair of algorithms that run in polynomial time which are called pre-processing algorithm and solution-lifting algorithm. The pre-processing algorithm takes as input an instance of a parameterized problem and outputs an instance of such that for some computable function . The solution-lifting algorithm takes any solution of and transforms it into a solution of such that if is a -approximation for for some , then is an -approximation for . If the size of the kernel is and if is constant or a polynomial, then we call it a constant-size or polynomial-size -approximate kernel, respectively. It is known that a (decidable) parameterized problem admits a constant-size approximate -kernel if and only if the unparameterized problem associated with can be -approximated (in polynomial time) [26]. Moreover, any (decidable) parameterized problem admits an -approximate kernel (of arbitrary size) if and only if the problem can be -approximated in time.
In terms of lossy kernelization, our results imply that there are no non-trivial lossy kernels for the parameter . For the parameter , Theorem 4 implies a constant-size lossy kernel for and Theorem 5 implies an -size lossy kernels for any . This leaves the following gap which we pose as an open problems.
Open Problem 1.
Are there any -size lossy kernels for Maximum Vertex-Disjoint Shortest Paths with (or even constant )?
References
- [1] Shyan Akmal, Virginia Vassilevska Williams, and Nicole Wein. Detecting disjoint shortest paths in linear time and more. In Proceedings of the 51st International Colloquium on Automata, Languages, and Programming, ICALP, pages 9:1–9:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.9.
- [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] Matthias Bentert, André Nichterlein, Malte Renken, and Philipp Zschoche. Using a geometric lens to find -disjoint shortest paths. SIAM Journal on Discrete Mathematics, 37(3):1674–1703, 2023.
- [4] Kristof Berczi and Yusuke Kobayashi. The directed disjoint shortest paths problem. In Proceedings of the 25th Annual European Symposium on Algorithms (ESA), pages 13:1–13:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/LIPIcs.ESA.2017.13.
- [5] Hans L. Bodlaender, Bart M. P. Jansen, and Stefan Kratsch. Kernelization lower bounds by cross-composition. SIAM Journal on Discrete Mathematics, 28(1):277–305, 2014. doi:10.1137/120880240.
- [6] Parinya Chalermsook, Marek Cygan, Guy Kortsarz, Bundit Laekhanukit, Pasin Manurangsi, Danupon Nanongkai, and Luca Trevisan. From gap-exponential time hypothesis to fixed parameter tractable inapproximability: Clique, dominating set, and more. SIAM Journal on Computing, 49(4):772–810, 2020. doi:10.1137/18M1166869.
- [7] Yijia Chen, Yi Feng, Bundit Laekhanukit, and Yanlin Liu. Simple combinatorial construction of the -lower bound for approximating the parameterized -clique. CoRR, abs/2304.07516, 2023. doi:10.48550/arXiv.2304.07516.
- [8] Rajesh Chitnis, Samuel Thomas, and Anthony Wirth. Lower bounds for approximate (& exact) -disjoint-shortest-paths. In Proceedings of the 22nd International Workshop on Approximation and Online Algorithms (WAOA), 2024. Accepted for Publication.
- [9] Julia Chuzhoy, David H. K. Kim, and Rachit Nimavat. Almost polynomial hardness of node-disjoint paths in grids. Theory of Computing, 17:1–57, 2021. doi:10.4086/TOC.2021.V017A006.
- [10] Julia Chuzhoy, David H. K. Kim, and Rachit Nimavat. New hardness results for routing on disjoint paths. SIAM Journal on Computing, 51(2):17–189, 2022. doi:10.1137/17M1146580.
- [11] Julia Chuzhoy and Shi Li. A polylogarithmic approximation algorithm for edge-disjoint paths with congestion 2. Journal of the ACM, 63(5):45:1–45:51, 2016. doi:10.1145/2893472.
- [12] 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.
- [13] Irit Dinur. Mildly exponential reduction from gap 3SAT to polynomial-gap label-cover. Electronic Colloquium on Computational Complexity, 2016.
- [14] Tali Eilam-Tzoreff. The disjoint shortest paths problem. Discrete Applied Mathematics, 85(2):113–138, 1998. doi:10.1016/S0166-218X(97)00121-2.
- [15] Fedor V. Fomin, Daniel Lokshtanov, Saket Saurabh, and Meirav Zehavi. Kernelization. Cambridge University Press, Cambridge, 2019.
- [16] Steven Fortune, John E. Hopcroft, and James Wyllie. The directed subgraph homeomorphism problem. Theoretical Computer Science, 10:111–121, 1980. doi:10.1016/0304-3975(80)90009-2.
- [17] M. R. Garey and David S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
- [18] Venkatesan Guruswami, Sanjeev Khanna, Rajmohan Rajaraman, F. Bruce Shepherd, and Mihalis Yannakakis. Near-optimal hardness results and approximation algorithms for edge-disjoint paths and related problems. Journal of Computer and System Sciences, 67(3):473–496, 2003. doi:10.1016/S0022-0000(03)00066-7.
- [19] Johan Håstad. Clique is hard to approximate within . In Proceedings of the 37th Annual Symposium on Foundations of Computer Science (FOCS), pages 627–636. IEEE Computer Society, 1996.
- [20] Russell Impagliazzo and Ramamohan Paturi. On the complexity of -sat. Journal on Computer and Syststem Sciences, 62(2):367–375, 2001. doi:10.1006/JCSS.2000.1727.
- [21] Richard M. Karp. On the computational complexity of combinatorial problems. Networks, 5(1):45–68, 1975. doi:10.1002/NET.1975.5.1.45.
- [22] Karthik C. S. and Subhash Khot. Almost polynomial factor inapproximability for parameterized -clique. In Proceedings of the 37th Computational Complexity Conference (CCC), pages 6:1–6:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/LIPICS.CCC.2022.6.
- [23] Jon M. Kleinberg. Approximation algorithms for disjoint paths problems. PhD thesis, Massachusetts Institute of Technology, 1996.
- [24] Stavros G. Kolliopoulos and Clifford Stein. Approximating disjoint-path problems using packing integer programs. Mathematical Programming, 99(1):63–87, 2004. doi:10.1007/S10107-002-0370-6.
- [25] William Lochet. A polynomial time algorithm for the -disjoint shortest paths problem. In Proceedings of the 32nd ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 169–178. SIAM, 2021. doi:10.1137/1.9781611976465.12.
- [26] Daniel Lokshtanov, Fahad Panolan, M. S. Ramanujan, and Saket Saurabh. Lossy kernelization. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 224–237. ACM, 2017. doi:10.1145/3055399.3055456.
- [27] Pasin Manurangsi and Prasad Raghavendra. A birthday repetition theorem and complexity of approximating dense CSPs. In Proceedings of the 44th International Colloquium on Automata, Languages, and Programming (ICALP), pages 78:1–78:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/LIPICS.ICALP.2017.78.
- [28] 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), pages 182–191. IEEE Computer Society, 1995. doi:10.1109/SFCS.1995.492475.
- [29] Neil Robertson and Paul D. Seymour. Graph minors. XIII: The disjoint paths problem. Journal of Combinatorial Theory. Series B, 63(1):65–110, 1995. doi:10.1006/JCTB.1995.1006.
- [30] David Zuckerman. Linear degree extractors and the inapproximability of max clique and chromatic number. Theory of Computing, 3(1):103–128, 2007. doi:10.4086/TOC.2007.V003A006.