An FPT Algorithm for Minimum Additive Spanner Problem
Yusuke Kobayashi

TL;DR
This paper introduces a fixed-parameter algorithm for the NP-hard Minimum Additive t-Spanner Problem, focusing on the number of edges removed as a parameter, and extends results to $(eta, eta)$-spanners.
Contribution
It provides the first fixed-parameter algorithm for the problem based on the number of edges removed, advancing the understanding of its parameterized complexity.
Findings
Developed a fixed-parameter algorithm for the problem.
Extended the algorithm to $(eta, eta)$-spanners.
Contributed to the parameterized complexity analysis of additive spanners.
Abstract
For a positive integer and a graph , an additive -spanner of is a spanning subgraph in which the distance between every pair of vertices is at most the original distance plus . Minimum Additive -Spanner Problem is to find an additive -spanner with the minimum number of edges in a given graph, which is known to be NP-hard. Since we need to care about global properties of graphs when we deal with additive -spanners, Minimum Additive -Spanner Problem is hard to handle, and hence only few results are known for it. In this paper, we study Minimum Additive -Spanner Problem from the viewpoint of parameterized complexity. We formulate a parameterized version of the problem in which the number of removed edges is regarded as a parameter, and give a fixed-parameter algorithm for it. We also extend our result to -spanners.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
An FPT Algorithm for Minimum Additive Spanner Problem
Yusuke Kobayashi Research Institute for Mathematical Sciences, Kyoto University, Japan. Supported by JST ACT-I Grant Number JPMJPR17UB, and JSPS KAKENHI Grant Numbers JP16K16010, 16H03118, and JP18H05291, Japan. Email: [email protected]
Abstract
For a positive integer and a graph , an additive -spanner of is a spanning subgraph in which the distance between every pair of vertices is at most the original distance plus . Minimum Additive -Spanner Problem is to find an additive -spanner with the minimum number of edges in a given graph, which is known to be NP-hard. Since we need to care about global properties of graphs when we deal with additive -spanners, Minimum Additive -Spanner Problem is hard to handle, and hence only few results are known for it. In this paper, we study Minimum Additive -Spanner Problem from the viewpoint of parameterized complexity. We formulate a parameterized version of the problem in which the number of removed edges is regarded as a parameter, and give a fixed-parameter algorithm for it. We also extend our result to -spanners.
1 Introduction
1.1 Spanners
A spanner of a graph is a spanning subgraph of that approximately preserves the distance between every pair of vertices in . Spanners were introduced in [4, 36, 37] in the context of synchronization in networks. Since then, spanners have been studied with applications to several areas such as space efficient routing tables [17, 38], computation of approximate shortest paths [15, 16, 22], distance oracles [6, 41], and so on.
A main topic on spanners is trade-offs between the sparsity (i.e., the number of edges) of a spanner and its quality of approximation of the distance, and there are several ways to measure the approximation quality. In the early studies, the approximation quality of spanners was measured by a multiplicative factor, i.e., the ratio between the distance in the spanner and the original distance. Formally, for a positive integer and a graph , a spanning subgraph of is said to be a multiplicative -spanner if holds for any pair of vertices and . Here, (resp. ) denotes the distance between and in (resp. in ). A well-known trade-off between the sparsity and the multiplicative factor is as follows: for any positive integer and any graph , there exists a -spanner with edges [3], where denotes the number of vertices in . This bound is conjectured to be tight based on the popular Girth Conjecture of Erdős [26].
Another natural measure of the approximation quality is the difference between the distance in the spanner and the original distance. For a positive integer and a graph , a spanning subgraph of is said to be an additive -spanner if holds for any pair of vertices and . Since an additive spanner was introduced in [32, 33], trade-offs between the sparsity and the additive term have been actively studied. It is shown in [2, 21] that every graph has an additive -spanner with edges. In addition, every graph has an additive -spanner with edges [13], and every graph has an additive -spanner with edges [7]. On the negative side, it is shown in [1] that these bounds cannot be improved to for any .
As a common generalization of these two concepts, -spanners have also been studied in the literature. For , , and a graph , a spanning subgraph of is said to be an -spanner if holds for any pair of vertices and . See [8, 23, 28, 39, 40, 42, 44, 45] for other results on trade-offs between the sparsity of a spanner and its approximation quality.
In this paper, we consider a classical but natural and important problem that finds a spanner of minimum size. In particular, we focus on additive -spanners and consider the following problem for a positive integer .
Minimum Additive -Spanner Problem
Instance.
A graph .
Question.
Find an additive -spanner of that minimizes .
Minimum Multiplicative -Spanner Problem and Minimum -Spanner Problem are defined in the same way. Such a problem is sometimes called Sparsest Spanner Problem.
Although additive -spanners have attracted attention as described above, there are only few results on Minimum Additive -Spanner Problem. For any positive integer , Minimum Additive -Spanner Problem is shown to be NP-hard in [33]. Every connected interval graph has an additive -spanner that is a spanning tree [31], which implies that Minimum Additive -Spanner Problem in interval graphs can be solved in polynomial time for . The same result holds for AT-free graphs [31]. It is shown in [14] that every chordal graph has an additive -spanner with at most edges, which implies that there exists a -approximation algorithm for Minimum Additive -Spanner Problem in chordal graphs. To the best of our knowledge, no other positive results (e.g., polynomial-time algorithms for special cases or approximation algorithms) exist for Minimum Additive -Spanner Problem, which is in contrast to the fact that Minimum Multiplicative -Spanner Problem has been actively studied from the viewpoints of graph classes and approximation algorithms (see Section 1.3).
We make a remark on a difference between multiplicative -spanners and additive -spanners. As in [12, 34, 29], multiplicative -spanners can be characterized as follows: a subgraph of is a multiplicative -spanner if and only if holds for any . This characterization means that we only need to care about local properties of graphs when we deal with multiplicative -spanners. In contrast, for additive -spanners, no such characterization exists, and hence we have to consider global properties of graphs. In this sense, handling Minimum Additive -Spanner Problem is much harder than Minimum Multiplicative -Spanner Problem, which is a reason why only few results exist for Minimum Additive -Spanner Problem.
1.2 Our Results
In this paper, we consider Minimum Additive -Spanner Problem from the viewpoint of fixed-parameter tractability and give a first fixed-parameter algorithm for it. A parameterized version of Minimum Multiplicative -Spanner Problem is studied in [29]. Since an additive (or multiplicative) -spanner of a connected graph contains edges, the number of edges of a minimum additive (or multiplicative) -spanner is not an appropriate parameter. Therefore, as in [29], a parameter is defined as the number of edges that are removed to obtain an additive (or multiplicative) -spanner. Note that the same parameterization is also adopted in [5] for another network design problem. Our problem is formulated as follows.
Parameterized** **Minimum Additive -Spanner Problem
Instance.
A graph .
Parameter.
A positive integer .
Question.
Find an edge set with such that is an additive -spanner of or conclude that such does not exist.
Note that if there exists a solution of size at least , then its subset of size is also a solution, which means that we can replace the condition with in the problem. In this paper, we show that there exists a fixed-parameter algorithm for this problem, where an algorithm is called a fixed-parameter algorithm (or an FPT algorithm) if its running time is bounded by for some function . See [18, 27, 35] for more detail. Formally, our result is stated as follows.
Theorem 1**.**
For a positive integer , there exists a fixed-parameter algorithm for Parameterized Minimum Additive -Spanner Problem that runs in time. In particular, the running time is if is fixed.
This result implies that there exists a fixed-parameter algorithm for the problem even when is the parameter. By using almost the same argument, we can show that a parameterized version of Minimum -Spanner Problem is also fixed-parameter tractable. We define Parameterized Minimum -Spanner Problem in the same way as Parameterized Minimum Additive -Spanner Problem.
Theorem 2**.**
For real numbers and , there exists a fixed-parameter algorithm for Parameterized Minimum -Spanner Problem that runs in time.
1.3 Related Work: Minimum Multiplicative Spanner Problem
As mentioned in Section 1.1, there are a lot of studies on Minimum Multiplicative -Spanner Problem, whereas only few results are known for Minimum Additive -Spanner Problem.
Minimum Multiplicative -Spanner Problem is NP-hard for any in general graphs [10, 36], and there are several results on the problem for some graph classes. It is NP-hard even when the input graph is restricted to be planar [9, 29]. Cai and Keil [12] showed that Minimum -Spanner Problem can be solved in linear time if the maximum degree of the input graph is at most , whereas this problem is NP-hard even if the maximum degree is at most . Venkatesan et al. [43] revealed the complexity of Minimum Multiplicative -Spanner Problem for several graph classes such as chordal graphs, convex bipartite graphs, and split graphs. For the weighted version of the problem in which each edge has a positive integer length, Cai and Corneil [11] showed the NP-hardness of Minimum Multiplicative -Spanner Problem for .
Another direction of research is to design approximation algorithms for Minimum Multiplicative -Spanner Problem. Kortsarz [30] gave an -approximation for and Elkin and Peleg [24] gave an -approximation algorithm for . On the negative side, for any , it is shown in [25] that no -approximation algorithm exists unless . Dragan et al. [19] gave an EPTAS for the problem in planar graphs. When the input graph is a -connected planar triangulation, a PTAS is proposed for Minimum Multiplicative -Spanner Problem in [20].
A parameterized version of Minimum Multiplicative -Spanner Problem is introduced in [29], and a fixed-parameter algorithm for it is presented in the same paper.
1.4 Organization
The remainder of this paper is organized as follows. In Section 2, we give some preliminaries. In Section 3, we give an FPT algorithm for Parameterized Minimum Additive -Spanner Problem and prove Theorem 1. In Section 4, we extend the argument in Section 3 to Parameterized Minimum -Spanner Problem and prove Theorem 2. Finally, in Section 5, we make a conclusion.
2 Preliminaries
In this paper, we deal with only undirected graphs with unit length edges. Since we can remove all the parallel edges and self-loops when we consider spanners, we assume that all the graphs in this paper are simple. Let be a graph. For , an edge connecting and is denoted by . For a subgraph of , the set of vertices and the set of edges in are denoted by and , respectively. For an edge , let denote the subgraph . We say that an edge set contains a path if . For a path and for two vertices , let denote the subpath of between and . For , let denote the distance of the shortest path between and in . Note that the length of a path is the number of edges in it. If is clear from the context, is simply denoted by . For a positive integer , a subgraph of is said to be an additive -spanner if or holds for any . For real numbers and , a subgraph of is said to be an -spanner if or holds for any . In what follows, we may assume that the input graph is connected and is finite for any , since we can deal with each connected component separately. For a positive integer , let .
3 Proof of Theorem 1
3.1 Outline
In this subsection, we show an outline of our proof of Theorem 1.
Define as the set of all edges contained in cycles of length at most . In other words, an edge is in if and only if contains a - path of length at most . By the definition, if is an additive -spanner of , then holds for each , which implies that . Thus, if is small, then we can solve Parameterized Minimum Additive -Spanner Problem by checking whether is an additive -spanner of or not for every subset of with .
If is sufficiently large, then there exist many cycles of length at most . In what follows, we show that if has many cycles of length at most , then there always exists with such that is an additive -spanner of . To this end, we prove the following statements in Sections 3.2–3.4, respectively.
- •
If there are many cycles of length at most , then we can find either many edge-disjoint cycles of length at most or a desired set (Section 3.2).
- •
If there are many edge-disjoint cycles of length at most , then we can construct a sequence of edge-disjoint cycles with a certain condition (Section 3.3).
- •
If we have a sequence of edge-disjoint cycles with a certain condition, then we can construct a desired set (Section 3.4).
Finally, in Section 3.5, we put them together and describe our entire algorithm.
3.2 Finding Edge-disjoint Cycles
The objective of this subsection is to show that if there are many cycles of length at most , then we can find either many edge-disjoint cycles of length at most or a desired set . We first show the following lemma.
Lemma 3**.**
For positive integers and , there exists an integer satisfying the following condition. For any pair of distinct vertices in a graph , if there exists a set of - paths of length at most with , then contains two distinct vertices and edge-disjoint - paths of length at most .
Proof.
We show that satisfies the condition by induction on . The claim is obvious when , because holds as is simple and . Thus, it suffices to consider the case of . Let be a set of - paths of length at most with . We consider the following two cases separately.
We first consider the case when holds for any . In this case, for any . This shows that we can take edge-disjoint - paths in by a greedy algorithm (i.e., repeatedly taking a - path in and removing all the paths sharing an edge with ). They form a desired set of paths in which and .
We next consider the case when there exists an edge such that . Without loss of generality, we may assume that . For , let be the set of all - paths of length and be the set of all - paths of length . Then, since each path containing can be divided into a - path and an - path, we obtain
[TABLE]
Since the number of pairs with is at most , there exist with such that
[TABLE]
This shows that either or holds. By induction hypothesis, if , then there exist and edge-disjoint - paths of length at most
[TABLE]
Thus, they form a desired set of paths. The same argument can be applied when . ∎
By using this lemma, we obtain the following proposition.
Proposition 4**.**
Let be a graph and be a set of cycles of length at most . Let be a positive integer and be a function as in Lemma 3. If , then we have one of the following.
- •
There exist edge-disjoint cycles in .
- •
There exists with such that is an additive -spanner of .
Proof.
For each edge , let . We first consider the case when holds for any . In this case, for any . This shows that we can take edge-disjoint cycles in by a greedy algorithm (i.e., repeatedly taking a cycle in and removing all the cycles sharing an edge with ), because .
We next consider the case when there exists an edge such that . Since consists of - paths of length at most , by Lemma 3, contains two vertices and a set of edge-disjoint - paths of length at most . Let and be a shortest - path and a shortest - path, respectively. Since , there exists with such that each path in does not contain edges in . Let denote the paths in . For , let be the middle edge of (see Fig. 1). Formally, we take so that contains edges and contains edges. Define and consider the graph .
We now show that is an additive -spanner of . Let and be distinct vertices in and let be a shortest - path in . If , then it is obvious that . If , then let be the unique minimal subpath of that contains all edges in , where , and appear in this order along . Since , we have by observing that
- •
for any ,
- •
for any , and
- •
for any .
Therefore,
[TABLE]
which shows that is an additive -spanner of . ∎
3.3 Finding a Good Sequence of Cycles
In this subsection, we construct a sequence of edge-disjoint cycles with a certain condition when we are given many edge-disjoint cycles.
Let be a set of edge-disjoint cycles of length at most . For a vertex and a cycle , let be a shortest path from to . By choosing an appropriate shortest path for each , we may assume that forms a forest for any cycle . The objective of this subsection is to find a sequence of distinct cycles satisfying the following condition:
()
For any with and for any vertex , it holds that .
Roughly speaking, this condition means that if , then removing edges in does not affect the distance between and .
Lemma 5**.**
For any positive integers and , there exists an integer satisfying the following condition. If is a set of edge-disjoint cycles of length at most , then there exists a sequence of distinct cycles satisfying the condition ().
Proof.
We show that satisfies the condition in the lemma. Let be a set of edge-disjoint cycles of length at most . We consider the following two cases separately.
Case 1. Suppose that there exist a vertex and a cycle such that . In this case, we can take edges in such that appear in this order along and the subpath of between and contains at least edges for (see Fig. 3). For , let be the cycle containing . Note that and are distinct if , since .
We now show that satisfies the condition (). Assume to the contrary that there exist indices with and a vertex such that . Let be the first vertex in when we traverse from to (see Fig. 3). Then, we have
[TABLE]
by using and , which is a contradiction. Therefore, satisfies the condition ().
Case 2. Suppose that holds for any vertex and for any cycle , which implies that . We define by
[TABLE]
Then, it holds that
[TABLE]
We note that satisfies the condition () if and only if holds for any with . That is, represents the set of forbidden orderings of three cycles. We define and by
[TABLE]
Then, we have
[TABLE]
In order to obtain satisfying the condition (), we construct a sequence of cycles satisfying additional conditions.
Claim 6**.**
For each , there exists a sequence of distinct cycles satisfying the following conditions:
- •
* for any ,*
- •
* for any with , and*
- •
* for any with .*
Proof of the claim.
We show the claim by induction on . When , we can choose arbitrarily. Suppose that we have satisfying the conditions in the claim, where . Then, we have that
[TABLE]
by the definitions of and . Since , there exists a cycle that is different from such that satisfies the conditions in the claim. This shows the claim by induction on . ∎
By this claim, there exists a sequence of distinct cycles such that for any with , which means that satisfies the condition (). ∎
3.4 Constructing an Additive -Spanner
In this subsection, we show that we can construct an additive -spanner of by using a sequence of edge-disjoint cycles satisfying the condition ().
Lemma 7**.**
For any positive integers and , there exists an integer satisfying the following condition. If there exists a sequence of edge-disjoint cycles of length at most satisfying the condition (), then there exists an edge set with such that is an additive -spanner of .
Proof.
We show that satisfies the condition. For each edge , define
[TABLE]
Since we assumed that forms a forest for each , for any cycle , there exists an edge such that . In other words, for any cycle . We prove the lemma by showing that Algorithm 1 always finds an edge set with such that is an additive -spanner of .
We first show that the algorithm returns a set of edges. For , since and , we have that . By combining this with , we see that for each by induction. In particular, holds, and hence the algorithm returns a set .
We next show that is an additive -spanner. Let and be distinct vertices in and let be a shortest - path in . If , then it is obvious that . If for some , then holds, because contains an - path.
Thus, it suffices to consider the case when . Let be the unique minimal subpath of that contains all edges in , where , and appear in this order along . Then, and are the endpoints of edges and in , respectively. We may assume that by changing the roles of and if necessarily. We now observe the following properties of .
- •
Since satisfies (), also satisfies (). This shows that does not contain edges in for any , because and . In particular, does not contain for any .
- •
Since by the algorithm, does not contain for any .
- •
It is obvious that does not contain by the definition of .
Hence, does not contain edges in , which means that is a path in (see Fig. 4). Since contains a path connecting an endpoint of and , we have that
[TABLE]
Therefore, is an additive -spanner of . ∎
3.5 The Entire Algorithm
In this subsection, we describe our entire algorithm for Parameterized Minimum Additive -Spanner Problem and prove Theorem 1 by using Proposition 4 and Lemmas 5 and 7. Define
[TABLE]
where , , and are as in Lemmas 3, 5, and 7, respectively. Then, and , and hence . Note that we can simply denote unless .
Our algorithm for Parameterized Minimum Additive -Spanner Problem is as follows. We first compute the set of all edges contained in cycles of length at most . Note that we can do it in time by applying the breadth first search from each vertex.
As described in Section 3.1, if is an additive -spanner of for , then holds. Thus, if , then we can solve Parameterized Minimum Additive -Spanner Problem in time by checking whether is an additive -spanner of or not for every subset of with .
Otherwise, we have . Since there exist at least cycles of length at most by the definition of , we can take a set of cycles of length at most . By Proposition 4 and Lemmas 5 and 7, there always exists a set with such that is an additive -spanner of . Furthermore, such can be found in time by checking all the edge sets of size in . Note that it will be possible to improve the running time of this part by following the proofs of Proposition 4 and Lemmas 5 and 7. However, we do not do it in this paper, because it does not improve the total running time.
Overall, we conclude that our algorithm solves Parameterized Minimum Additive -Spanner Problem in time, and hence we obtain Theorem 1. The entire algorithm is shown in Algorithm 2.
4 Extension to -Spanners
In this section, we extend the argument in the previous section to -spanners and give a proof of Theorem 2.
Let . We compute the set of all edges contained in cycles of length at most . If is an -spanner of for , then for each . By integrality, for each , which shows that holds. This implies that the problem is trivial if . Thus, we consider the case when and define as in Section 3.5. If , then we can solve Parameterized Minimum -Spanner Problem in time by checking whether is an -spanner of or not for every subset of with .
Otherwise, by the argument in Section 3.5, in time, we can find an edge set with such that is an additive -spanner. Then, is also an -spanner, because
[TABLE]
for every pair of vertices and . Therefore, it suffices to return the obtained set . This completes the proof of Theorem 2.
5 Conclusion
In this paper, we studied Minimum Additive -Spanner Problem from the viewpoint of fixed-parameter tractability. We formulated a parameterized version of Minimum Additive -Spanner Problem in which the number of removed edges is regarded as a parameter, and gave a fixed-parameter algorithm for it. We also extended our result to Minimum -Spanner Problem.
As described in the last paragraph in Section 1.1, handling Minimum Additive -Spanner Problem is much harder than Minimum Multiplicative -Spanner Problem, because we have to care about global properties of graphs. Since only few results were previously known for Minimum Additive -Spanner Problem, this work may be a starting point for further research on the problem.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Abboud and G. Bodwin. The 4/3 additive spanner exponent is tight. J. ACM , 64(4):28:1–28:20, 2017.
- 2[2] D. Aingworth, C. Chekuri, P. Indyk, and R. Motwani. Fast estimation of diameter and shortest paths (without matrix multiplication). SIAM Journal on Computing , 28(4):1167–1181, 1999.
- 3[3] I. Althöfer, G. Das, D. Dobkin, D. Joseph, and J. Soares. On sparse spanners of weighted graphs. Discrete & Computational Geometry , 9:81–100, 1993.
- 4[4] B. Awerbuch. Complexity of network synchronization. J. ACM , 32(4):804–823, 1985.
- 5[5] J. Bang-Jensen, M. Basavaraju, K. V. Klinkby, P. Misra, M. S. Ramanujan, S. Saurabh, and M. Zehavi. Parameterized algorithms for survivable network design with uniform demands. In Proceedings of SODA’18 , pages 2838–2850, 2018.
- 6[6] S. Baswana and T. Kavitha. Faster algorithms for approximate distance oracles and all-pairs small stretch paths. In Proceedings of FOCS’06 , pages 591–602, 2006.
- 7[7] S. Baswana, T. Kavitha, K. Mehlhorn, and S. Pettie. Additive spanners and ( α 𝛼 \alpha , β 𝛽 \beta )-spanners. ACM Trans. Algorithms , 7(1):5:1–5:26, 2010.
- 8[8] B. Bollobás, D. Coppersmith, and M. Elkin. Sparse distance preservers and additive spanners. SIAM J. Discret. Math. , 19(4):1029–1055, 2005.
