Simpler and Improved Replacement Path Coverings
Abstract
An important tool in the design of fault-tolerant graph data structures are -replacement path coverings (RPCs). An RPC is a family of subgraphs of a given graph such that, for every set of at most edges, there is a subfamily with the following properties.
-
1.
No subgraph in contains an edge of .
-
2.
For each pair of vertices that have a shortest path in with at most edges,
one such path also exists in some subgraph in .
The covering value of the RPC is the total number of subgraphs. The query time is the time needed to compute the subfamily given the set .
Weimann and Yuster [TALG’13] devised a randomized RPC with covering value and query time . This was derandomized by Karthik and Parter [TALG’24], who also reduced the query time to . Their approach uses some heavy algebraic machinery involving error-correcting codes and an increased covering value of for some constant . We instead devise a much simpler derandomization via conditional expectations that lowers the covering value back to and decreases the query time to , assuming .
We also investigate the optimal covering value of any -replacement path covering (deterministic or randomized) for different parameter ranges. We provide a new randomized construction as well as improving a known lower bound, also by Karthik and Parter. For example, for , we give an RPC with subgraphs and show that this is tight up to the term.
Keywords and phrases:
derandomization, fault tolerance, replacement path coverings, sensitivity data structuresCategory:
Track A: Algorithms, Complexity and GamesFunding:
Shiri Chechik: This project received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 Research and Innovation program, grant agreement No. 803118 “The Power of Randomization in Uncertain Environments”.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Data structures design and analysis ; Theory of computation Pseudorandomness and derandomization ; Mathematics of computing Graph algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Graphs are powerful models in computer science representing various types of relationships between entities encountered in different applications. While a wide range of algorithms and data structures has been developed for static graphs, where edges and vertices remain unchanged over the whole lifetime of the application, real-world networks are often subject to failures. Many traditional graph algorithms need to recompute their solutions entirely when some component of the input changes, even if it is only a small number edges. In many practical cases, there is an a priori upper bound on the number of simultaneous failures. Moreover, while it may be unpredictable where the faults occur, they are often transient due to an inherent repair mechanism in the network. This motivates the fault-tolerant or sensitivity setting in data structure research. There, a preprocessing algorithm is given the underlying graph without failures and a sensitivity parameter . Queries to the data structure then specify up to edges and the task is to quickly report the properties of the graph in which the specified edges failed. Over the last two decades, substantial advancements have been made in developing such sensitivity oracles for fundamental graph problems like connectivity [21, 22, 23, 34], shortest paths [3, 4, 11, 12, 14, 17, 18, 21, 24, 26], diameter and excentricity [5, 8, 27], and routing [13]. Recently, similar ideas have also been applied to NP-hard problems, such as vertex cover, -path [1, 7], or -clique [6].
We are concerned with -edge fault-tolerant distance sensitivity oracles (-DSOs), which are sensitivity oracles for pairwise graph distances. In more detail, an -DSO for a graph is queried with triplets consisting of two vertices and a set of at most edges. The output of the oracle is the length of the shortest path from to in the modified graph . This value is called the replacement distance and any shortest --path in is a replacement path. Weimann and Yuster, in their seminal work [35], presented a non-trivial -DSO supporting multiple edge failures. It has separate logic and data structures for so-called hop-short and hop-long replacement paths. Here, a replacement path is hop-short if it has at most edges, where is some positive integer parameter. For such paths, Weimann and Yuster gave an insightful construction that is now known as an -replacement path covering (RPC).111The name was introduced later by Karthik and Parter in (the conference version of) [29]. They defined a collection of random subgraphs222We use for the number of vertices of the input graph , and for the number of its edges. For a positive function , we let stand for . of that with high probability333With high probability (w.h.p.) means with probability at least for some constant . has the following property. Whenever two vertices and a set of at most edges are such that and indeed have a hop-short replacement path in , then there exists a subgraph such that contains no edge of and at least one such replacement path is retained in .
The usefulness of RPCs for distance sensitivity oracles stems from the following observation. Suppose we are given a query set . Scanning through and filtering for those subgraphs that have no edge of gives a subfamily . For vertices and , let be the minimum --distance among all graphs in . guarantees that is equal to the true replacement distance whenever and have a replacement path with at most edges. Even if and only have hop-long paths, we still have . The computed value never underestimates the replacement distance since any shortest path that contributed to only uses edges from . A caveat of the construction in [35] is that, in order to find , all graphs of the family need to be scanned, taking time .
Several applications of replacement path coverings have since been explored in the context of DSOs [2, 3, 11, 25, 29], -path sensitivity oracles [6], fault-tolerant spanners [9, 19, 20], and fault-tolerant strong-connectivity preservers [10]. Additionally, the concept has also been utilized in distributed computing [15, 28, 31, 32, 33]. In light of these applications, we adopt the following definition that is equivalent to the one by Weimann and Yuster [35] but focuses on the subfamily instead of the individual subgraph . The idea is that provides good estimates for all pairs simultaneously. We have to formulate the definition carefully so that it also applies to settings in which there are several shortest --paths in , some of which may have more than edges.
Definition 1 (replacement path coverings, covering value, query time).
Let and be positive integers and a graph. An -replacement path covering for is a family of spanning subgraphs of that has a subfamily for every set of edges such that the following two properties hold.
-
1.
No subgraph in contains an edge of .
-
2.
For all such that there exists a shortest path from to in with at most edges, at least one subgraph in also has such a path.
The covering value of the -replacement path covering is the number of subgraphs in . Its query time is the time required to compute from .
Another interesting parameter of RPCs is the number of subgraphs relevant for a given query set . In down-stream applications, this translates to the number of instances that need to be processed in the hop-short case to find replacement distance .
Alon, Chechik, and Cohen [2] derandomized several distance sensitivity oracles and asked whether also -replacement path coverings in general can be derandomized. This would provide a new deterministic tool for the design of sensitivity data structures also for other applications beyond shortest paths. Karthik and Parter [29] answered this question affirmatively using algebraic error-correcting codes. Their RPC has a covering value of for some constant . We abbreviate this to (the exponent outside of the parentheses is intentional). This is more than the original number of subgraphs [35]. In [29, Section 1.3], the authors explain that the increase is a direct consequence of the determinism of their construction. However, the fact that their preprocessing is reproducable is also the reason for their much better query time. Very recently, Bilò, Choudhary, Cohen, Friedrich, and Schirneck [6] presented a new RPC for the parameter range simultaneously reducing the covering value and query time (more details below). Their construction is randomized, which raises the question, whether randomness is required to achieve this improved performance.
Our first result rejects this hypothesis. We completely derandomize the result by Bilò et al. [6] without any loss in the parameters. We thereby obtain a deterministic -replacement path covering whose covering value is only slightly larger than the construction by Weimann and Yuster [35], but achieves a query time that is sub-polynomial in . A summary of the related work and our own result can be found in Table 1.
Randomized results hold with high probability.
| Covering Value | Query Time | Size of | Randomization | Reference |
|---|---|---|---|---|
| randomized | [35] | |||
| deterministic | [29] | |||
| randomized | [6] | |||
| deterministic | Theorem 2 | |||
| randomized | Theorem 5 | |||
Theorem 2.
Let be a graph (possibly directed and positively edge-weighted) with vertices. Let and be two positive integers, which may depend on , such that . There exists a deterministic -replacement path covering for with covering value and query time . The size of the computed subfamily is .
For sensitivities up to , the covering value becomes and the query time as well as the size of increase to .
The derandomization by Karthik and Parter [29] of the original RPC requires setting up the error-correcting codes and deriving from the so-called hit-and-miss hash functions. We provide a much simpler algorithm to obtain a deterministic construction. Conceptually, we show that RPCs are amenable to the method of conditional expectations, avoiding heavy algebraic machinery. This hopefully makes our approach more applicable also to other tools for building fault-tolerant data structures. A disadvantage of our technique is that it requires small sensitivity. On the one hand, the best covering value and query time are achieved for . On the other hand, the derandomization itself requires access to the pre-computed answers to all queries. (See Section 2 for more details.)
Besides the derandomization, another contribution of the work by Karthik and Parter [29] is a lower bound on the covering value of any -replacement path covering. They showed that whenever , there exists an -vertex graph for which the family must contain subgraphs. This leaves an gap to the covering value in [35]. We aim at narrowing this gap, starting with a new lower bound.
Theorem 3.
For all positive integers , with , there is an -vertex graph s.t. any -replacement path covering for has covering value at least .
Since the sum of binomial coefficients can be a bit unwieldy, we provide closed forms for certain ranges of and .
Corollary 4.
Let the notation be the same as in Theorem 3.
-
1.
If there exists a constant such that , then any -replacement
path covering must have covering value . -
2.
If , any -replacement path covering must have covering value .
Compared to the lower bound in [29], the one in Corollary 4 (i) trades a factor for , which is asymptotically larger whenever . To also tackle the gap for , we improve the upper bound instead. Recall that in this range the covering value by Weimann and Yuster [35] is still the best known. We decrease this by a factor by giving a tighter analysis of the construction algorithm of the (randomized) sampling trees by Bilò et al. [6] which also underpinned our derandomization.
Theorem 5.
Let be a graph (possibly directed and positively edge-weighted) with vertices. Let and be two positive integers, which may depend on , such that . There exists a randomized -replacement path covering for that with high probability has covering value and query time . The size of the computed subfamily is . The -replacement path covering also supports vertex failures.
For sensitivities up to , the covering value becomes , the query time and size of is .
Table 2 summarizes the new and known upper and lower bounds. In the range , we shrink the gap between the bounds to . For , that gap is now also smaller than before, but currently remains at . In the general literature on distance sensitivity oracles for non-constant values of , the sensitivity is expressed in terms of (while is only an internal parameter). A common setting is , see e.g. [4, 12, 35]. Theorems 2 and 5 also apply to the larger range of . There, we get a gap of . If additionally , then this becomes , showing that our construction is near-optimal.
We conjecture that the true covering value is of order , whenever this is not larger than . To show this, new constructions are needed for both the upper and lower bound. As a possibly more accessible open question, we ask whether one can achieve a deterministic -replacement path covering with the same parameters as in Theorem 5.
Outline.
The remainder of the paper is structured as follows. In Section 2, we provide an overview of the sampling tree construction and our derandomization, which is then carried out in Section 3. In Section 4, we present our new randomized RPC. We prove the lower bound on the covering value in Section 5.
| Covering Value | Parameter Range | Reference |
| Theorem 5 | ||
| Theorem 5 | ||
| [29] | ||
| [35] | ||
| Corollary 4.1 | ||
| Corollary 4.2 | ||
2 Overview
Our -replacement path covering and the associated query data structure leverage a hierarchical sampling strategy by Bilò et al. [6], which in turn generalized earlier work by Weimann and Yuster [35]. We briefly review the randomized construction before discussing the challenges of its derandomization and how we overcome them. Throughout this overview, unless stated otherwise, we assume to simplify the exposition.
The sampling tree framework.
The randomized RPC consists of a forest of sampling trees that are constructed in levels. Each tree has height and branching factor . Its nodes represent subgraphs of starting with the edge-less graph in the root. A child node inherits all edges from its parent and re-inserts additional edges from independently with probability . After levels, in each subgraph that is stored in a leaf, any edge of is present with probability , matching the original model [35]. However, the critical difference is that the leaves are not independent. Any two leaves share at least all edges of their lowest common ancestor.
This locality is essential for query efficiency. The query algorithm performs a depth-first search starting from the root and, in each step, is traversing to the first child that contains no edge of the given query set . This runs in time , which is dramatically faster than examining all subgraphs as in [35]. However, the straight-forward search may fail to reach a suitable leaf in any given tree with probability for some constant . By repeating this search in independent trees, the RPC achieves high success probability over all queries .
Challenges of the derandomization.
At first glance, derandomizing this construction via the method of conditional expectations appears straightforward: replace each random decision to include an edge in any of the subgraphs with a greedy choice that maximizes conditional expectations. Unfortunately, this approach fundamentally breaks the query structure. The randomized construction succeeds because of the following two reasons.
-
1.
The failures are independent across trees, allowing boosting via repetition.
-
2.
The probability for the search to fail in a fixed tree depends only on the height .
The greedy derandomization, basing decisions only on local information, runs the danger of correlating failures across trees. Even worse, the search looks for any child whose subgraph has no edge of . This means that if we bias the tree structure to make some children succeed more often, we may cause the failures to concentrate in other parts of the tree, ruining the balance needed for the query algorithm.
Consider the collection of pairs where is a set of at most failing edges and are the edges of a shortest path in with hop-length not larger than . The set may contain a pair for each possible query. Ideally, the derandomization procedure should maximize the number of such pairs that will eventually be covered by the leaves of any of the trees. This is not the same as maximizing the likelihood that the depth-first search finds some suitable leaf for a given pair. The local greedy optimization and the global query structure are misaligned.
Our derandomization technique.
We resolve this through a novel derandomization framework that carefully balances the competing objectives. Let be a node in one of the trees and those edges that are missing in the subgraph associated to . If is a leaf, it covers a pair if and only if and . As mentioned above, maximizing those pairs for which all failing edges are removed () might inadvertently increase the number of pairs for which is too large. This is reflected in our definition of well-separated and poorly-separated pairs.
-
Well-separated pairs are those for which the failing edges are already removed at node , but the replacement path remains largely intact meaning that is small.
-
Poorly-separated pairs are those for which the removal has already gone too far, damaging the replacement path beyond recovery at the current depth of .
Let be the parent of the current node . We have to decide which edges to re-insert in the associated subgraph in addition to the ones inherited from . That means, we construct the set as a subset of . We can restrict our attention to those pairs that have and for which holds for all siblings of that are processed before by the deterministic query algorithm. Let this be the set . It contains much fewer pairs than the full collection . Let further be the indicator variable whether the pair is well separated w.r.t. and define analogously for poorly-separated pairs. The latter pairs cannot be handled by the current tree and must be deferred to a later one. However, we do not want to increase the total number of trees beyond our budget . So rather than greedily maximizing well-separated pairs alone, exacerbating the imbalance, we optimize the expectation of
The expectation is taken over the original random sampling process conditioned on all previous decisions taken by the derandomization. The coefficient in the sum serves as a tie breaker. Even if the number of well and poorly-separated pairs were equal, we have for the expectation. Thus, we do not lose significant ground for the well-separated pairs.
We prove that this weighted objective maintains the properties that are critical for the query algorithm. The worst-case failure behavior across trees remains approximately independent, even in the now fully deterministic construction. Also, by carefully choosing the depth-dependent threshold of what counts as “small”444The precise meaning of small turns out to be , where is the depth of in the tree and is such that for the branching factor . for , we retain the same success guarantee for an individual tree as in the randomized case.
Improving the covering value.
As a secondary contribution beyond the derandomization, we also lower the upper bound on number of subgraphs. We observe that the prior randomized construction in [6] was not optimized with respect to the specific structure of the query algorithm. The fixed-order search through the children of the current node gets stuck only when all children contain some edge of . This observation allows us to use lower branching factors and smaller height , resulting in fewer leaves per tree.
However, these changes also affect the success probability in other ways. For example, fewer child nodes being available in each transition increase the failure probability. We provide a sharper analysis of the hierarchical sampling process of the trees to prove that the reduction of and can be counter-acted by a lower re-insertion probability and a slightly larger number of trees , while still maintaining the properties of an RPC with high probability. This improves the covering value of the sampling tree framework by a factor from to .
A new lower bound.
Another contribution is an improved lower bound on the covering value of any -replacement path covering (deterministic or randomized). Prior to our work, the only lower bound was by Karthik and Parter [29]. It already shows that our construction for is near-optimal. However, the bound leaves a gap for larger sensitivities. We improve it significantly by constructing a family of weighted directed acyclic graphs that demonstrates that subgraphs are necessary.
At a high level, it consists of a directed binary tree (not related to the sampling trees). It is constructed from what we call inner trees. These are comb-like structures consisting of a rooted path in which each node has an attached leaf. The edge weights are set up in such a way that traveling along the back of the comb is for free while the leaf that is farthest from the root in hop-distance is actually the closest in weighted distance. The inner trees are iteratively combined to form the binary tree by replacing the leaves of an inner tree with new appropriately scaled-down inner trees. The scaling is such that after rounds, all leaves of the whole tree have the same hop-distance from its root. The leaves of are all connected to a single sink node .
For each such leaf , we define a failure set of at most edges so that removing those edges makes the leaf that is closest to the root in weighted distance. In other words, the unique shortest replacement path in from the root to the sink goes through . This creates a barrier for small -replacement path coverings since any RPC for must contain a different subgraph for every leaf. A combinatorial argument then shows that there are at least such leaves.
3 Deterministic Replacement Path Coverings
Let be a collection of pairs of disjoint sets of edges, satisfying and . Here, corresponds to a shortest path between a source-target pair in . Our goal is to cover each pair , meaning, in at least one tree we construct, there is a leaf such that the associated subgraph contains no edge of but all edges of . Moreover, the query algorithm that starts in the root of that tree and always recurses into the first child that does not have an edge of reaches . The remaining notation follows [6]. We remark, however, that we slightly adjust the parameters to our needs. (They thus also differ from the values reported in the first part of the overview in Section 2.) Nevertheless, this will lead to the same asymptotic covering value and query time.
3.1 Preliminaries
For a positive integer , we use to denote the set . Our data structure consists of disjoint rooted trees , whose nodes all represent a spanning subgraph of . Each sampling tree has height and any internal node has exactly children. The parameters , , and will be optimized later. A single tree has leaves and nodes in total. We associate with each node in a tree a set . Namely, represents the graph . The sets is computed deterministically. However, let us first consider the following random construction. If is a root, we simply set . Now let be a child of , its set is obtained by selecting each edge in independently with probability . For our derandomization, it will also be important to adjust the parameters such that holds. The random construction is iterated until height . All random choices are made independently. The total number of stored subgraphs is and the RPC is given by the family of all subgraphs that are stored in the leaves of all the sampling trees. The following lemma summarizes the structural properties of the randomized construction.
Lemma 6 (Lemma 6 in [6]).
Let and be a node of the tree at depth . For any edge , the probability of it being included in is . For any other edge , , the events and are independent.
Given a failure set with , Algorithm 1 computes the subfamily . Recall that the set contains those edges that are removed from the subgraph of the node . The trees are searched individually, starting in the respective roots. In each step, the algorithm always chooses the first child node of the current node that satisfies . If no such child exists, the next tree is searched. If eventually a leaf is reached, the subgraph stored there is added to . Observe that no graph in contains a failing edge from since it is explicitly checked before recursing to . Up to subgraphs are collected in time .
3.2 Well-Separated Pairs
We classify the pairs with respect to their relevance to a given node in a tree. Recall that we want that the graph associated with contains no edge of . If so, the pair is active for . Additionally, the number of edges of the path that are missing in should be “small”, where the exact amount depends on the depth of in the tree. If so, the pair is well separated. If a pair is active for , but still too many path edges are missing from , then the pair is poorly separated.
Definition 7 (well-separated, poorly-separated, active, and passive pairs).
Let and be a node of the tree at depth . Let further be a failure set-path pair.
-
1.
is well separated with respect to if and .
-
2.
is poorly separated with respect to if and .
-
3.
is passive with respect to if ; otherwise, it is active w.r.t. .
We also say that the node is active for , if the pair is active w.r.t. .
We use the different categories of pairs as follows. Let be a pair, where the path has endpoints . Algorithm 1 traverses a path from the root to a leaf in the tree by always selecting, at each node , the first child of with , that is, the first child node that is active for . We claim that, in order for this traversal to succeed for the query in , it is enough to maintain the following property.
If is the first child node of that is active for ,
then is also well separated with respect to .
To see this, recall that the probability parameter satisfies . Along the path traced by Algorithm 1, the fraction of edges of contained in the associated sets geometrically decreases. In the leaf at depth , we have both as well as and thus . In other words, contains no edge of but all of .
To track the well and poorly-separated pairs, we define the following binary variables. Let be a node in some tree and let be a pair that is active w.r.t. .
Let denote the respective roots (at depth ) of . At least for the , we do not have to worry about separation, namely, . The follows immediately from the definition of well-separated pairs and the roots representing empty graphs. This sets up a starting point both for the derandomization of the tree and later for the query algorithm.
Observation 8.
For , all pairs in are well separated with respect to the root of .
During the derandomization, we have to keep track of the pairs in that are covered by the trees we have already processed.
Definition 9 (handled pairs).
For any index , a pair is handled by the tree if is well separated with respect to every node in the root-to-leaf path in that is traced by Algorithm 1 with query set .
Definition 10 (the set ).
Let and be a node of the tree . The set contains those pairs that satisfy the following properties.
-
1.
is not handled by any of the trees .
-
2.
The path in the tree that 1 traces on input leads from the root to .
-
3.
is a well-separated pair with respect to each node in on the path from to .
3.3 Derandomization Algorithm
Algorithm 2 outlines the recursive derandomization procedure for the trees . The recursive procedure Derandomize-Subtree considers a node in the tree . It goes through the children in the same (arbitrary) order in which they are processed at query time by Algorithm 1. Suppose that the current child node is , meaning that as well as are already derandomized. It has access to the deterministic edge sets and needs to compute . Let be the set of pairs described in Definition 10 and consider the following subset.
Intuitively, the pairs in are those for which the query algorithm starting in has not only reached node , but will also not recurse in any of its child nodes before checking .
We aim to maximize the number of pairs in that are well separated with respect to , while at the same time, we do not want too many pairs from to become poorly separated with respect to . It is crucial to strike a balance here, as the poorly-separated pairs may not be handled by and may thus unduly increase the number of trees required. For each edge , we decide one by one whether to include it in . To make this decision, we compare the respective expected values of
conditional on the event and on . The expectation is taken over the random process that just removes any edge for which we have not made a decision yet independently with probability . Finally, we set to be those pairs in that are now well separated with respect to . Note that this indeed satisfies Definition 10 for node .
3.4 Correctness and Analysis
In order to prove that our approach indeed yields a deterministic -replacement path covering, we need to assign values to the parameters. We leave the total number of trees open until the end of this section, and instead start by fixing the branching factor to as well as the the sampling probability to . Both parameters depend on the height , which will also be set later. For now, it is enough to observe that the definitions ensure both as well as .
Let be a non-leaf node in any of the trees and let be one of its child nodes. Recall the random construction in which the edge set is obtained from by sampling any edge independently with probability . (See Subsection 3.1 for more details.) The following lemma describes how this random construction behaves with respect to the passive, well-separated, and poorly-separated pairs.
Lemma 11.
Let be an index, a non-leaf node in the tree , a well-separated pair w.r.t. , and a child node of , Let , , and .
-
1.
;
-
2.
;
-
3.
.
Proof.
Let be the depth of the child node . Since is well separated w.r.t. , we have and . Each element of lies in with probability , so the probability of being passive at is .
We now calculate the probability of being a well-separated pair w.r.t. , meaning that both and hold. Note that the two conditions are independent (see Lemma 6) and we have . So we only need to estimate . Observe that follows the binomial distribution and thus has median . Therefore, we get
This gives . The estimate for follows immediately from .
Finally, we can use the randomized construction to prove properties of its derandomization.
Lemma 12.
Let and a non-leaf node in the tree with children . The sets computed by Derandomize-Subtree satisfy .
Proof.
Fix a child . Let . We process the derandomization of so that the value of is at least its expectation. Fix a pair . Due to this pair is well-separated w.r.t. the node , so we can apply Lemma 11. Let , , and be defined as above for the child node . We then have as well as . This implies that the (expected and thus deterministic) value of that sum is at least
| (1) |
For simplicity, assume an idealized scenario where no pair in ever becomes poorly separated with respect to , for any . On the one hand, this means and thus the estimate in (1) states that at least pairs become well separated in one iteration. On the other hand, the only way to remain passive w.r.t. is to not become well separated. Line 3 and 5 of the Derandomize-Subtree procedure then ensure that holds in the -th iteration. Since the are pairwise disjoint, this yields . Summing over all iterations gives
which is solved by .
Now let be the pairs that become poorly separated w.r.t. . They do not contribute to and also do not get included into at the beginning of the next iteration. This worsens the lower bound for the individual terms to . However, the estimate (1) being non-negative implies that for any two pairs that become poorly separated with respect to , at least one more pair must have become well separated, i.e., . The same argument as above gives .
As a direct corollary of the lemma, we get that the fraction of pairs not yet handled by the trees that get handled by is at least . Slightly abusing notation, let . The number of pairs handled by the trees is at least
Since is integral, choosing large enough so that the lower bound is strictly larger than is sufficient for the sum to exhaust all pairs. This condition simplifies to and is satisfied, e.g., by since
We can now calculate the covering value and query time depending on , , , and .
-
The size of family is .
-
The query time to compute is .
-
For any set , the size of family is at most .
We finally choose . For , this ensures as well as . Finally, we obtain the parameters stated in Theorem 2.
-
The covering value is .
-
The query time is .
-
The size of is .
For higher sensitivities up to the terms turn to since .
4 Randomized Replacement Path Coverings
We now improve the upper bound on the covering value of (randomized) -replacement path coverings for the parameter range . We build on the sampling trees by Bilò et al. [6], reviewed in Subsection 3.1. Like before, each of the trees has height and any internal node has exactly children. We also reuse Algorithm 1 to process queries. The main difference is that we give a tighter analysis of the parameters of the construction which allows us to derive better bounds. In the following, we let denote a replacement path from to , that is, a shortest --path in . If there are multiple such paths, we take one with the minimum number of edges. Recall that for any node in a sampling tree, we use for the spanning subgraph associated with .
Lemma 13 (Lemma 7 in [6]).
The total number of nodes is and the query algorithm selects leaf nodes in time . The probability to reach a leaf of a tree is exponentially small in (Lemma 13.1). However, once a leaf is reached, the probability of the stored graph holding the relevant path grows with , depending on . As before, we need to cover (with high probability) all pairs of vertices for which has at most edges. Let be a sufficiently large constant. Diverging from [6], we choose the parameters
Lemma 6 states that in any leaf , at depth , the probability for any edge to be removed (event ) is . We verify next that the query algorithm indeed computes a suitable collection of graphs. The lemma also implies that the graphs stored in the leaves of the trees form an -replacement path covering with high probability.
Lemma 14.
W.h.p. over all sets with and with , upon termination of Algorithm 1, there exists a graph that retains .
Proof.
By Lemma 13, the probability to reach a leaf in some tree whose corresponding graph contains the replacement path is at least . We insert the parameters into the first factor and apply a lower bound of the form for and . It can, for example, be found in the textbook by Motwani and Raghavan [30, p. 435]. Recall that we assume ; for now, it will be sufficient that . Regarding the second factor, we have Further, observe that . Let abbreviate . We have thus shown that the probability is at least .
Repeating the query in independent trees reduces the failure probability for any triple to . There are at most relevant triples , which shows that choosing large enough and taking a union bound over all triples ensures a high success probability.
Note that . The last estimate uses that also gives . Similarly, we have
Our choice of parameters thus shows that the whole data structure stores
graphs and has a query time of .
The size of the subfamily is in the worst case. However, with high probability the number of subgraphs relevant to a query is smaller. In Lemma 14, we showed that in any tree the probability of finding a leaf node satisfying is . Thus, the expected size of is . Further recall that each adds a graph to independently of other trees. Applying a standard Chernoff bound shows that also with high probability contains graphs.
5 Lower Bound
We now establish the lower bound on the covering value. Slightly abusing notation, we show that there exists families of graphs for which any -replacement path covering must contain at least subgraphs to fulfill the requirements of Definition 1. That means, we set denote the cut-off parameter as (instead of ) to ease the notation below. Our construction is assembled from building blocks which we call inner trees. These are comb-like structures which are connected by iteratively replacing the leafs of one inner tree with new, smaller inner trees. The sizes are arranged in such a way that in the emerging binary tree all leaves have the same distance from the root.
5.1 Inner Trees
We fix a sensitivity and cutoff-value for the rest of this subsection. For a positive integer , an -inner tree is constructed from a directed path with edges. The path is rooted at node . For each , we add a directed edge from to a new leaf node . The weight of the edge is set to . The edges in all have weight zero. See Figure 1 for an illustration.
We construct a binary tree in rounds, numbered from to . In the -th round, we initialize as an -inner tree. Its root serves as the root of the whole tree . In each subsequent round , we replace each leaf in at hop-distance from the root with an -inner tree. Note that at the end of round , every root-to-leaf path in the resulting tree has edges. See Figure 2.
For any , let denote the number of leaf nodes in the tree at level . Let further be the number of -tuples of positive integers that sum to exactly . Then, it holds that . Observe that . This is because each distinct tuple maps to a unique leaf of tree at level . The mapping is obtained by traversing hops in the first inner tree, -hop-length in the second inner tree, and so on. Therefore, . This shows that the total number of leaf nodes in tree is lower bounded from below by .
Let denote the root of and the set of leaves. We extend to a digraph by taking a new sink and adding an edge from each leaf node in to of weight . We demonstrate that for any -replacement path covering for the size of the family is at least .
Fix some , we define a set of at most edges as follows. Let be the inner trees that are traversed by the path from to in the tree . For each , let be the ancestor of that lies in and is furthest from . The set is then formed by taking those out-edges of the nodes that do not lie on the unique path from to in . Let denote this path. Clearly, we have . Moreover, the edge weights are so that traveling inside one level is free. It is always preferred to descend to the next level as far from the root of the current inner tree as possible. Therefore, after the failures, is the cheapest way to reach a leaf of , whence the concatenation is the unique shortest path from to in the graph . The path has edges.
For each leaf of , let be a graph that avoids the edges in but still contains the replacement path . For any two distinct , we assert that . This is due to the fact that if and were the same, both would include the out-edges of the lowest common ancestor . However, this is a contradiction since at least one of the out-edges of is included in or . From this, we get our lower bound on the covering value , proving Theorem 3.
5.2 Proof of Corollary 4
When adjusting the cut-off value back to (from ) and parameterizing the binomial coefficient in terms of instead of , we get the sum . We give a closed form for it below to prove Corollary 4.
Corollary 4. [Restated, see original statement.]
Let the notation be the same as in Theorem 3.
-
1.
If there exists a constant such that , then any -replacement
path covering must have covering value . -
2.
If , any -replacement path covering must have covering value .
The second clause is immediate from the observation that (that is, ) implies that summing the first binomial coefficients gives at least half the value of the sum over all terms.
In the rest of the section, we prove the first clause. If is bounded away from , meaning for some positive constant , the binomial coefficient is the largest term of the sum. We bound that term using Stirling’s approximation. The following lemma can, for example, be found in the textbook by Cover and Thomas [16].
Lemma 15 (Stirling’s approximation).
Let be a positive integer and a rational number such that is integral. Then, it holds that
We apply Lemma 15 with and , where we use that and thus . We lower bound the three factors on the right-hand side separately.
It holds that .
For the last estimate, we use that is increasing
in and that due to .
This proves .
Next, observe that for , we have , which can be derived from the arguably more common inequality . Since , we get . Therefore, it holds that . Finally, we have .
Combining the three estimates results in
References
- [1] Josh Alman and Dean Hirsch. Parameterized Sensitivity Oracles and Dynamic Algorithms Using Exterior Algebras. In Proceedings of the 49th International Colloquium on Automata, Languages, and Programming (ICALP), pages 9:1–9:19, 2022. doi:10.4230/LIPIcs.ICALP.2022.9.
- [2] Noga Alon, Shiri Chechik, and Sarel Cohen. Deterministic Combinatorial Replacement Paths and Distance Sensitivity Oracles. In Proceedings of the 46th International Colloquium on Automata, Languages, and Programming, (ICALP), pages 12:1–12:14, 2019. doi:10.4230/LIPIcs.ICALP.2019.12.
- [3] Davide Bilò, Shiri Chechik, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, Simon Krogmann, and Martin Schirneck. Approximate Distance Sensitivity Oracles in Subquadratic Space. TheoretiCS, 3:15:1–15:47, 2024. doi:10.46298/theoretics.24.15.
- [4] Davide Bilò, Shiri Chechik, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, and Martin Schirneck. Improved Distance (Sensitivity) Oracles with Subquadratic Space. In Proceedings of the 65th Symposium on Foundations of Computer Science (FOCS), pages 1550–1558, 2024. doi:10.1109/FOCS61266.2024.00097.
- [5] Davide Bilò, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, Simon Krogmann, and Martin Schirneck. Fault-Tolerant ST-Diameter Oracles. In Proceedings of the 50th International Colloquium on Automata, Languages, and Programming (ICALP), pages 24:1–24:20, 2023. doi:10.4230/LIPIcs.ICALP.2023.24.
- [6] Davide Bilò, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, and Martin Schirneck. Efficient Fault-Tolerant Search by Fast Indexing of Sub-Networks. In Proceedings of the 39th AAAI Conference on Artificial Intelligence (AAAI), pages 26463–26471, 2025. doi:10.1609/AAAI.V39I25.34846.
- [7] Davide Bilò, Katrin Casel, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, J.A. Gregor Lagodzinski, Martin Schirneck, and Simon Wietheger. Fixed-Parameter Sensitivity Oracles. In Proceedings of the 13th Innovations in Theoretical Computer Science Conference (ITCS), pages 23:1–23:18, 2022. doi:10.4230/LIPIcs.ITCS.2022.23.
- [8] Davide Bilò, Keerti Choudhary, Sarel Cohen, Tobias Friedrich, and Martin Schirneck. Deterministic Sensitivity Oracles for Diameter, Eccentricities and All Pairs Distances. In Proceedings of the 49th International Colloquium on Automata, Languages, and Programming (ICALP), pages 22:1–22:19, 2022. doi:10.4230/LIPIcs.ICALP.2022.22.
- [9] Gilad Braunschvig, Shiri Chechik, David Peleg, and Adam Sealfon. Fault Tolerant Additive and (, )-Spanners. Theoretical Computer Science, 580:94–100, 2015. doi:10.1016/J.TCS.2015.02.036.
- [10] Diptarka Chakraborty and Keerti Choudhary. New Extremal Bounds for Reachability and Strong-Connectivity Preservers Under Failures. In Proceedings of the 47th International Colloquium on Automata, Languages, and Programming (ICALP), pages 25:1–25:20, 2020. doi:10.4230/LIPIcs.ICALP.2020.25.
- [11] Shiri Chechik and Sarel Cohen. Distance Sensitivity Oracles with Subcubic Preprocessing Time and Fast Query Time. In Proceedings of the 52nd Symposium on Theory of Computing (STOC), pages 1375–1388, 2020. doi:10.1145/3357713.3384253.
- [12] Shiri Chechik, Sarel Cohen, Amos Fiat, and Haim Kaplan. ()-Approximate -Sensitive Distance Oracles. In Proceedings of the 28th Symposium on Discrete Algorithms (SODA), pages 1479–1496, 2017. doi:10.1137/1.9781611974782.96.
- [13] Shiri Chechik, Michael Langberg, David Peleg, and Liam Roditty. -Sensitivity Distance Oracles and Routing Schemes. Algorithmica, 63:861–882, 2012. doi:10.1007/s00453-011-9543-0.
- [14] Kyungjin Cho, Jihun Shin, and Eunjin Oh. Approximate Distance Oracle for Fault-Tolerant Geometric Spanners. In Proceedings of the 38th AAAI Conference on Artificial Intelligence (AAAI), pages 20087–20095, 2024. doi:10.1609/aaai.v38i18.29987.
- [15] Julia Chuzhoy, Merav Parter, and Zihan Tan. On Packing Low-Diameter Spanning Trees. In Proceedings of the 47th International Colloquium on Automata, Languages, and Programming (ICALP), pages 33:1–33:18, 2020. doi:10.4230/LIPIcs.ICALP.2020.33.
- [16] Thomas M. Cover and Joy A. Thomas. Elements of Information Theory. Wiley Series in Telecommunications and Signal Processing. Wiley-Interscience, New York City, NY, USA, 2nd edition, 2006. doi:10.1002/047174882X.
- [17] Camil Demetrescu, Mikkel Thorup, Rezaul A. Chowdhury, and Vijaya Ramachandran. Oracles for Distances Avoiding a Failed Node or Link. SIAM Journal on Computing, 37:1299–1318, 2008. doi:10.1137/S0097539705429847.
- [18] Dipan Dey and Manoj Gupta. Nearly Optimal Fault Tolerant Distance Oracle. In Proceedings of the 56th Symposium on Theory of Computing (STOC), pages 944–955, 2024. doi:10.1145/3618260.3649697.
- [19] Michael Dinitz and Robert Krauthgamer. Fault-Tolerant Spanners: Better and Simpler. In Proceedings of the 30th Symposium on Principles of Distributed Computing (PODC), pages 169–178, 2011. doi:10.1145/1993806.1993830.
- [20] Michael Dinitz and Caleb Robelle. Efficient and Simple Algorithms for Fault-Tolerant Spanners. In Proceedings of the 39th Symposium on Principles of Distributed Computing (PODC), pages 493–500, 2020. doi:10.1145/3382734.3405735.
- [21] Ran Duan and Seth Pettie. Dual-Failure Distance and Connectivity Oracles. In Proceedings of the 20th Symposium on Discrete Algorithms (SODA), pages 506–515, 2009. doi:10.1137/1.9781611973068.56.
- [22] Ran Duan and Seth Pettie. Connectivity Oracles for Failure Prone Graphs. In Proceedings of the 42nd Symposium on Theory of Computing (STOC), pages 465–474, 2010. doi:10.1145/1806689.1806754.
- [23] Ran Duan and Seth Pettie. Connectivity Oracles for Graphs Subject to Vertex Failures. In Proceedings of the 28th Symposium on Discrete Algorithms (SODA), pages 490–509, 2017. doi:10.1137/17M1146610.
- [24] Ran Duan and Hanlin Ren. Maintaining Exact Distances under Multiple Edge Failures. In Proceedings of the 54th Symposium on Theory of Computing (STOC), pages 1093–1101, 2022. doi:10.1145/3519935.3520002.
- [25] Fabrizio Grandoni and Virginia Vassilevska Williams. Faster Replacement Paths and Distance Sensitivity Oracles. ACM Transaction on Algorithms, 16:15:1–15:25, 2020. doi:10.1145/3365835.
- [26] Yong Gu and Hanlin Ren. Constructing a Distance Sensitivity Oracle in Time. In Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP), pages 76:1–76:20, 2021. doi:10.4230/LIPIcs.ICALP.2021.76.
- [27] Monika Henzinger, Andrea Lincoln, Stefan Neumann, and Virginia Vassilevska Williams. Conditional Hardness for Sensitivity Problems. In Proceedings of the 8th Conference on Innovations in Theoretical Computer Science (ITCS), pages 26:1–26:31, 2017. doi:10.4230/LIPIcs.ITCS.2017.26.
- [28] Yael Hitron and Merav Parter. Broadcast CONGEST Algorithms against Adversarial Edges. In Proceedings of the 35th Symposium on Distributed Computing (DISC), pages 23:1–23:19, 2021. doi:10.4230/LIPIcs.DISC.2021.23.
- [29] Karthik C. S. and Merav Parter. Deterministic Replacement Path Covering. ACM Transactions on Algorithms, 20:34:1–34:35, 2024. doi:10.1145/3673760.
- [30] Rajeev Motwani and Prabhakar Raghavan. Randomized Algorithms. Cambridge University Press, Cambridge, NY, USA, 1995. doi:10.1017/CBO9780511814075.
- [31] Merav Parter. Small Cuts and Connectivity Certificates: A Fault Tolerant Approach. In Proceedings of the 33rd Symposium on Distributed Computing (DISC), pages 30:1–30:16, 2019. doi:10.4230/LIPIcs.DISC.2019.30.
- [32] Merav Parter and Eylon Yogev. Low Congestion Cycle Covers and Their Applications. In Proceedings of the 30th Symposium on Discrete Algorithms (SODA), pages 1673–1692, 2019. doi:10.1137/1.9781611975482.101.
- [33] Merav Parter and Eylon Yogev. Secure Distributed Computing Made (Nearly) Optimal. In Proceedings of the 38th Symposium on Principles of Distributed Computing (PODC), pages 107–116, 2019. doi:10.1145/3293611.3331620.
- [34] Mihai Patrascu and Mikkel Thorup. Planning for Fast Connectivity Updates. In Proceedings of the 48th Symposium on Foundations of Computer Science (FOCS), pages 263–271, 2007. doi:10.1109/FOCS.2007.59.
- [35] Oren Weimann and Raphael Yuster. Replacement Paths and Distance Sensitivity Oracles via Fast Matrix Multiplication. ACM Transactions on Algorithms, 9:14:1–14:13, 2013. doi:10.1145/2438645.2438646.
