Introduction
Fault-tolerant oracles are data structures that support efficient queries for fundamental graph properties, such as connectivity and distances, in the presence of a small batch of edge or vertex failures of size at most f f f . Since the pioneering work of Pătraşcu and Thorup [PT07], extensive work has investigated fault-tolerant oracles for problems including pairwise connectivity [20 , 33 , 25 , 21 , 37 , 34 , 38 ] , global connectivity [32 , 35 ] , distances [14 , 12 , 3 HLRS26] , and diameter [4 ] .
When designing fault-tolerant oracles for undirected graphs, a central goal is to achieve oracles that are both space-efficient, ideally with nearly linear space, and support fast queries. Remarkably, for pairwise connectivity, nearly-linear-space oracles have been achieved under both edge [33 , 25 , 21 ] and vertex failures [37 , 38 ] , and these results are in fact conditionally almost-optimal.
In contrast, for pairwise distances, nearly linear space is unattainable even in the non-fault-tolerant setting if approximation is not allowed: the classic result of Thorup and Zwick [TZ05] gives a distance oracle with approximation 2 k − 1 2k-1 2 k − 1 , space O ( k n 1 + 1 / k ) O(kn^{1+1/k}) O ( k n 1 + 1/ k ) , and query time O ( k ) O(k) O ( k ) for any k ≥ 1 k \ge1 k ≥ 1 , and this tradeoff between approximation and space is tight under the Erdős girth conjecture.
Edge-Failure Distance Oracles. Therefore, there has been substantial work on edge-failure distance oracles with different approximation-space tradeoffs. For example, some results [12 , 23 , 17 ] provide exact or ( 1 + ε ) (1+\varepsilon) ( 1 + ε ) -approximate answers, but require at least quadratic space and depend exponentially on f f f . Some other results [3 BCC+24] achieve mildly subquadratic space and small constant approximations such as 3 + ε 3+\varepsilon 3 + ε . In particular, there are two edge-failure distance oracles in the spirit of the Thorup-Zwick oracle that achieve analogous approximation-space tradeoffs while supporting fast queries. The first, due to Chechik, Langberg, Peleg, and Roditty [14 ] , attains approximation ( 8 k − 2 ) ( f + 1 ) (8k-2)(f+1) ( 8 k − 2 ) ( f + 1 ) , space O ~ ( f k n 1 + 1 / k ) \widetilde{O}(fkn^{1+1/k}) O ( f k n 1 + 1/ k ) ,2 and query time O ~ ( f ) \widetilde{O}(f) O ( f ) . The second, due to Haeupler, Long, Roeyskoe, and Saranurak [HLRS26], attains approximation O ( k 4 ) O(k^4) O ( k 4 ) , space O ~ ( f 4 n 1 + 1 / k ) \widetilde{O}(f^4n^{1+1/k}) O ( f 4 n 1 + 1/ k ) , and query time O ~ ( f 5 n 1 / k ) \widetilde{O}(f^5n^{1/k}) O ( f 5 n 1/ k ) .
Vertex-Failure Distance Oracles. Nevertheless, for vertex failures, despite substantial effort, most existing results only handle a single vertex failure [9 , 7 , 8 , 11 , 24 Ren22] . The only known distance oracles for multiple vertex failures are due to Duan, Gu, and Ren [23 ] . For any constants c ≥ 1 c \ge1 c ≥ 1 and ε > 0 \varepsilon> 0 ε > 0 , they give one oracle with approximation O ( f c + 2 log 6 n ) O(f^{c+2}\log^6 n) O ( f c + 2 log 6 n ) , space O ~ ( n 2 + 1 / c f 3 ) \widetilde{O}(n^{2+1/c}f^3) O ( n 2 + 1/ c f 3 ) , and query time O ~ ( f 2 c + 9 ) \widetilde{O}(f^{2c+9}) O ( f 2 c + 9 ) , and another with approximation 1 + ε 1+\varepsilon 1 + ε , space n 2 + 1 / c / ( log n / ε ) O ( f ) n^{2+1/c}/(\log n/\varepsilon)^{O(f)} n 2 + 1/ c / ( log n / ε ) O ( f ) , and query time O ~ ( f 2 c + 6 / ε ) \widetilde{O}(f^{2c+6}/\varepsilon) O ( f 2 c + 6 / ε ) . In particular, both oracles require superquadratic space. Moreover, the first oracle, whose space does not depend exponentially on f f f , cannot achieve a constant approximation even when f f f is a constant. However, a line of work on vertex-fault-tolerant spanners [13 , 19 , 6 , 10 ] shows that, without requiring fast queries, one can simultaneously achieve approximation 2 k − 1 2k-1 2 k − 1 and size O ( n 1 + 1 / k f 1 − 1 / k ) O(n^{1+1/k}f^{1-1/k}) O ( n 1 + 1/ k f 1 − 1/ k ) . This raises the following open problem.
Is there a vertex-failure distance oracle with approximation poly ( k ) \operatorname{poly}(k) poly ( k ) , space O ~ ( n 1 + 1 / k ) ⋅ poly ( f ) \widetilde{O}(n^{1+1/k})\cdot\operatorname{poly}(f) O ( n 1 + 1/ k ) ⋅ poly ( f ) , and query time O ~ ( n 1 / k ) ⋅ poly ( f ) \widetilde{O}(n^{1/k})\cdot\operatorname{poly}(f) O ( n 1/ k ) ⋅ poly ( f ) ?
Our Results
We answer the above open problem affirmatively with the following Theorem 1.1 .
Theorem 1.1. Given an undirected graph G G G with non-negative, integral and polynomially bounded vertex and edge lengths, and given parameters f ≥ 1 f \ge1 f ≥ 1 and k ≥ 1 k \ge1 k ≥ 1 , there is a randomized3 vertex-failure distance oracle with approximation O ( k 6 ) O(k^6) O ( k 6 ) , space O ~ ( f 2 ⋅ n 1 + 1 / k ) \widetilde{O}(f^2 \cdot n^{1+1/k}) O ( f 2 ⋅ n 1 + 1/ k ) , update time O ~ ( f 5 ⋅ n 1 / k ) \widetilde{O}(f^5 \cdot n^{1/k}) O ( f 5 ⋅ n 1/ k ) , query time O ~ ( f ) \widetilde{O}(f) O ( f ) , and polynomial construction time.
Similar to some previous work [21 HLRS26] , our oracle supports separate update and query phases: after a polynomial-time construction, in the update phase it processes a given failure set F F F in extra O ~ ( f 5 ⋅ n 1 / k ) \widetilde{O}(f^5 \cdot n^{1/k}) O ( f 5 ⋅ n 1/ k ) time, and then in the query phase it answers the approximate distance under F F F between any given pair of vertices x x x and y y y in faster O ~ ( f ) \widetilde{O}(f) O ( f ) time.
Compared with the large-approximation oracle of [18 ] , our oracle achieves significant improvements in nearly every aspect, while incurring only an additional factor of n 1 / k n^{1/k} n 1/ k in the update time. Furthermore, when k = Ω ( log n ) k = \Omega(\log n) k = Ω ( log n ) , our oracle achieves poly log ( n ) \log(n) log ( n ) approximation, O ~ ( f 2 n ) \widetilde{O}(f^2n) O ( f 2 n ) space, O ~ ( f 5 ) \widetilde{O}(f^5) O ( f 5 ) update time, and O ~ ( f ) \widetilde{O}(f) O ( f ) query time. By the lower bounds for connectivity oracles, the space bound is within a factor of f f f of the Ω ( min { m , f n } ) \Omega(\min\{m,fn\}) Ω ( min { m , f n }) lower bound [21 ] , and the query time is nearly optimal [27 ] . See Theorem 4.1 for a detailed version of Theorem 1.1 .
Fault-Tolerant Labeling Schemes. We also obtain new results for the harder model of fault-tolerant labeling schemes , the distributed analogue of centralized oracles. Formally, a fault-tolerant labeling scheme assigns short labels to vertices and edges such that, for any query specified by vertices x x x , y y y and a failure set F F F , the desired graph property between x x x and y y y under failures, such as connectivity or distance, can be decoded solely from the labels of x x x , y y y , and the elements of F F F . In other words, unlike a centralized oracle, a labeling scheme has no random access to a global data structure and must instead evenly distribute information among vertices and edges. The main complexity measure is the (maximum) label size.
Since the introduction of this model in [15 ] , there has been a recent line of work on connectivity labeling schemes under edge failures [22 , 31 , 36 ] or vertex failures [PP22, PPP24, LPS25], as well as on distance labeling schemes under edge failures [22 HLRS26] . In particular, the labeling scheme in [HLRS26] is deterministic and achieves approximation O ( k 4 ) O(k^4) O ( k 4 ) and label size O ~ ( f 4 n 1 / k ) \widetilde{O}(f^4n^{1/k}) O ( f 4 n 1/ k ) . Nevertheless, to the best of our knowledge, no nontrivial vertex-failure distance labeling scheme is known. A natural open problem, therefore, is to design such a scheme. Ideally, one would like to achieve tradeoffs analogous to those of the near-optimal non-fault-tolerant distance labeling scheme, which attains approximation 2 k − 1 2k-1 2 k − 1 with label size O ~ ( n 1 / k ) \widetilde{O}(n^{1/k}) O ( n 1/ k ) [TZ05].
We present the first vertex-failure distance labeling schemes in Theorem 1.2 below.
Theorem 1.2. Given an undirected graph G G G with non-negative, integral and polynomially bounded vertex and edge lengths, and given parameters f ≥ 1 f \ge1 f ≥ 1 and k ≥ 1 k \ge1 k ≥ 1 , there is a randomized vertex-failure distance labeling scheme with approximation O ( k 6 ) O(k^6) O ( k 6 ) and label size f 3 ⋅ n 1 / k ⋅ log O ( k ) n f^3 \cdot n^{1/k} \cdot\log^{O(k)} n f 3 ⋅ n 1/ k ⋅ log O ( k ) n . The labels can be computed in polynomial time.
In particular, when k k k is a constant, our label size is O ~ ( f 3 n 1 / k ) \widetilde{O}(f^3n^{1/k}) O ( f 3 n 1/ k ) . Although this improves on the O ~ ( f 4 n 1 / k ) \widetilde{O}(f^4n^{1/k}) O ( f 4 n 1/ k ) label size of the edge-failure distance labeling scheme in [HLRS26], we note that their scheme is deterministic, and may save a factor of f f f if randomization is allowed. Moreover, when choosing ω ( 1 ) < k < o ( log n / log log n ) \omega(1)<k<o(\log n/\log\log n) ω ( 1 ) < k < o ( log n / log log n ) , the label size is f 3 n o ( 1 ) f^3n^{o(1)} f 3 n o ( 1 ) with overhead only subpolynomial in n n n . See Theorem 5.1 for a detailed version of Theorem 1.2 .
Our approach also leads to a new result for vertex-failure connectivity labeling schemes, as shown in Theorem 1.3 .
Theorem 1.3. Given an undirected graph G G G and a parameter f f f , there is a deterministic vertex-failure connectivity labeling scheme with label size O ~ ( f 2 ) \widetilde{O}(f^2) O ( f 2 ) . The labels can be computed in polynomial time.
Our result improves the previous state-of-the-art existential bound of O ~ ( f 3 ) \widetilde{O}(f^3) O ( f 3 ) [PPP24, LPS25], which requires exponential construction time, as well as the previous deterministic bound of O ~ ( f 4 ) \widetilde{O}(f^4) O ( f 4 ) [36 ] .
We note that obtaining Theorem 1.3 from the approach behind Theorem 1.2 requires some straightforward white-box adaptation. In particular, the resulting labeling scheme is deterministic, since the relevant tools for connectivity are deterministic. See Theorem 5.2 for a detailed version of Theorem 1.3 .
Our Techniques
We briefly introduce our techniques here. A more detailed overview together with further discussion is given in § 2 . Our distance oracle and labeling scheme build on recent developments of length-constrained vertex expanders [HLSW25], and we also introduce new expander-based shortcut sparsification techniques.
Length-Constrained Vertex Expanders. The theory of length-constrained (L C LC L C ) expanders [30 ] has found numerous applications across several areas, while the recently developed L C LC L C vertex expander variant [HLSW25] remains relatively unexplored. As one of the earliest applications of this variant, our work brings L C LC L C vertex expanders to the study of fault-tolerant algorithms.
In particular, L C LC L C vertex expanders allow us to extend the low-degree hierarchy of [21 ] , a widely used framework for vertex-failure connectivity problems [37 PPP24, 36 ] , to the distance setting. At a high level, after constructing an L C LC L C -vertex-expander hierarchy, we show that the expanding graph at each level admits a sparse neighborhood cover together with low-diameter, low-degree Steiner trees spanning the terminals of each cluster. Moreover, these trees have small overlap, in the sense that each vertex belongs to only a small number of them.
We believe this structure is likely to find further applications to distance-related problems under vertex updates.
New Expander-Based Shortcut Sparsification. Many previous works on vertex-fault-tolerant algorithms are based on the idea of adding shortcuts [20 , 21 , 37 , 34 PPP24, 36 ] , but differ in the sparsification techniques they employ. We provide new expander-based sparsification based on a simple but generic principle of propagating heaviness/denseness , which allows us to exploit the expanding property more broadly in an inter-cluster manner. This general principle captures a previous expander-based sparsification from [36 ] , and also enables us to refine their existing notions of denseness and introduce new ones. These refinements and new notions are in fact crucial, especially for the labeling scheme setting, as they are needed for handle distances, and also lead to simpler and improved connectivity labeling schemes. For example, they allow us to bypass the coloring step in [PPP24, LPS25] and avoid a local sparsification step in [36 ] using connectivity certificates [39 ] .
Overview
In this section, we give an overview of our vertex-failure approximate distance oracles and labeling schemes. We begin with the oracle setting. As a warm-up, we first consider the case where the input graph is a length-constrained (LC) vertex expander . We then describe a conceptually simple distance oracle for general graphs that already achieves poly ( f ) ⋅ n 1 + 1 / k ⋅ log O ( k ) n \operatorname{poly}(f) \cdot n^{1+1/k} \cdot\log^{O(k)} n poly ( f ) ⋅ n 1 + 1/ k ⋅ log O ( k ) n space, but with slightly worse poly ( k ) \operatorname{poly}(k) poly ( k ) approximation and undesirable log O ( k ) n \log^{O(k)} n log O ( k ) n overheads. Next, we introduce our new shortcut sparsification technique, which improves the approximation, removes these unnatural overheads, and still preserves poly ( f ) ⋅ n 1 + 1 / k \operatorname{poly}(f) \cdot n^{1+1/k} poly ( f ) ⋅ n 1 + 1/ k space. This sparsification is also crucial for the design of our labeling schemes. Finally, we briefly explain how to obtain labeling schemes by combining it with further shortcut sparsification techniques.
Warm-Up: The Expander Case
We first assume the input graph G = ( V , E ) G = (V, E) G = ( V , E ) is an LC vertex expander. In fact, when assuming the input graph is some kind of expander, all previous expander-based fault-tolerant connectivity or distance algorithms [PT07, LPS25, HLRS26] share a similar starting point. Namely, they all exploit the robustness of expanders under edge or vertex deletions. We state this property in the following lemma informally, phrased in the setting of LC vertex expanders.
Lemma 2.1 (LC-Expansion Property). Let G G G be a weighted graph with terminals A ⊆ V A \subseteq V A ⊆ V . Suppose A A A is h e d h_{\mathrm{ed}} h ed -length expanding in G G G . Then for any two terminal sets R 1 , R 2 ⊆ A R_1, R_2 \subseteq A R 1 , R 2 ⊆ A , if
∣ R 1 ∣ , ∣ R 2 ∣ ≥ ρ h e a v y : = O ~ ( f ⋅ n 1 / k ) |R_1|, |R_2| \ge\rho_{\mathrm{heavy}} := \widetilde{O}(f \cdot n^{1/k}) ∣ R 1 ∣ , ∣ R 2 ∣ ≥ ρ heavy := O ( f ⋅ n 1/ k ) , and
dist G ( u , v ) ≤ h e d \operatorname{dist}_G(u, v) \le h_{\mathrm{ed}} dist G ( u , v ) ≤ h ed for all pairs ( u , v ) (u, v) ( u , v ) of u ∈ R 1 u \in R_1 u ∈ R 1 and v ∈ R 2 v \in R_2 v ∈ R 2 ,
then for any failed vertex set F F F of size at most f f f , the distance between u u u and v v v under failures F F F is at most h e d ⋅ k h_{\mathrm{ed}} \cdot k h ed ⋅ k , i.e., dist G ∖ F ( u , v ) ≤ h e d ⋅ k \operatorname{dist}_{G\setminus F}(u, v) \le h_{\mathrm{ed}} \cdot k dist G ∖ F ( u , v ) ≤ h ed ⋅ k .
Since we mainly exploit the above LC-expansion property, the precise definition of “A A A is h e d h_{\mathrm{ed}} h ed -length expanding in G G G ” is not important. Moreover, in this case, the terminal set A A A is simply the whole set V V V .
In addition, we need two more building blocks: sparse neighborhood covers , augmented with associated low-diameter low-degree Steiner trees .
Sparse neighborhood covers are commonly used in distance-related problems. Suppose we only want a non-fault-tolerant distance oracle, and only need to answer a decision query asking whether dist G ( x , y ) > h \operatorname{dist}_G(x, y) > h dist G ( x , y ) > h or dist G ( x , y ) ≤ h k \operatorname{dist}_G(x, y) \le hk dist G ( x , y ) ≤ hk . Then storing a sparse neighborhood cover with covering radius h c o v = h h_{\mathrm{cov}} = h h cov = h , diameter h d i a m = h k h_{\mathrm{diam}} = hk h diam = hk and width ω = O ~ ( n 1 / k ) \omega= \widetilde{O}(n^{1/k}) ω = O ( n 1/ k ) suffices. Recall that a neighborhood cover is a collection of vertex sets, called clusters , such that every close (distance ≤ h c o v \le h_{\mathrm{cov}} ≤ h cov ) vertex pair is covered by a cluster, every cluster has (strong) diameter h d i a m h_{\mathrm{diam}} h diam , and every vertex appears in at most ω \omega ω clusters. However, when dealing with vertex failures, we cannot just answer the query by checking whether there exists a cluster S S S covering both x x x and y y y , simply because S S S can contain failed vertices (thus S S S is affected ) and no longer certifies the x x x -y y y distance. Therefore, we need additional structure to recover distances for affected clusters. This is where low-diameter low-degree Steiner trees come in.
Lemma 2.2. Set h e d = h d i a m h_{\mathrm{ed}} = h_{\mathrm{diam}} h ed = h diam . When A A A is h e d h_{\mathrm{ed}} h ed -length expanding in G G G , there exists a collection of Steiner trees { T S ∣ clusters S } \{T_S \mid\text{clusters } S\} { T S ∣ clusters S } one-to-one corresponding to clusters such that T S T_S T S spans all terminals A ∩ S A \cap S A ∩ S . Moreover, each T S T_S T S has diameter h t r e e = h e d ⋅ k 2 h_{\mathrm{tree}} = h_{\mathrm{ed}} \cdot k^2 h tree = h ed ⋅ k 2 and maximum degree Δ = n O ( 1 / k ) \Delta= n^{O(1/k)} Δ = n O ( 1/ k ) , and each vertex appears in at most γ = n O ( 1 / k ) \gamma= n^{O(1/k)} γ = n O ( 1/ k ) trees.
Note that the idea of using a low-degree Steiner tree as the backbone of a cluster was first introduced by [21 ] on connectivity oracles. Later, [37 ] shows that a (non-LC) vertex expander always admits a low-degree spanning tree. We generalize this argument to the distance setting by showing that in an LC vertex expander, we can augment the neighborhood cover with the above low-diameter low-degree Steiner tree, at the cost of an extra factor of k k k in the length slack (i.e., from k k k in Lemma 2.1 to k 2 k^2 k 2 in Lemma 2.2 ).
Now, with the Steiner tree T S T_S T S , observe that f f f failed vertices can only break T S T_S T S into at most Δ ⋅ f \Delta\cdot f Δ ⋅ f residual subtrees . However, using a vertex-failure connectivity oracle to reconnect these residual subtrees would yield a Δ ⋅ poly ( k ) \Delta\cdot\operatorname{poly}(k) Δ ⋅ poly ( k ) approximation, since each subtree contributes an additive h t r e e h_{\mathrm{tree}} h tree loss (this is the approach in [14 ] which attains O ( k f ) O(kf) O ( k f ) approximation for edge failures). Fortunately, as observed in [HLRS26], combining the backbone tree with the LC-expansion property gives a more fine-grained argument as follows.
Consider a cluster S S S (or equivalently, the subgraph G [ S ] G[S] G [ S ] ) that covers the x x x -y y y shortest path after the failures. For each residual subtree of S S S , we call it heavy if it contains more than ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy terminals; otherwise it is light . Now for each heavy residual subtree τ \tau τ , we contract all terminals of S S S (equivalently all vertices of S S S since A = V A = V A = V ) spanned by τ \tau τ into a single node τ n d \tau_{\mathrm{nd}} τ nd called a subtree node . We assign node length h t r e e h_{\mathrm{tree}} h tree to τ n d \tau_{\mathrm{nd}} τ nd , meaning that when we go through τ n d \tau_{\mathrm{nd}} τ nd , we are willing to pay an additive loss of h t r e e h_{\mathrm{tree}} h tree , the diameter of the subtree. However, notice that each pair of (terminal sets of) heavy subtrees satisfies the conditions in Lemma 2.1 , so it is feasible to add a star on all subtree nodes, and set the node length of the center of the star (called a cluster node ) to be h e d ⋅ k h_{\mathrm{ed}} \cdot k h ed ⋅ k , meaning that we are using the LC-expansion property to jump from one heavy subtree to another. Finally, observe that the modified graph (called the query graph ) has roughly f 2 ⋅ n O ( 1 / k ) f^2 \cdot n^{O(1/k)} f 2 ⋅ n O ( 1/ k ) vertices, since there are not too many vertices on light residual subtrees. The distance between x x x and y y y in the query graph only loses 2 h t r e e + h e d ⋅ k 2h_{\mathrm{tree}} + h_{\mathrm{ed}} \cdot k 2 h tree + h ed ⋅ k additively, which implies an O ( k 3 ) O(k^3) O ( k 3 ) approximation.
A Simple Oracle for General Graphs
Although the underlying ideas are similar when the input graph is assumed to have some form of robustness, such as expansion or the existence of a low-degree spanning tree, previous work [PT07, DP10, DP20, LS22, PPP24, LPS25, HLRS26] has proceeded quite differently in extending these ideas to general graphs. The overall idea is again to construct some sort of small query graph Q Q Q (explicitly or implicitly), which captures the connectivity or approximate distance between x x x and y y y after failures. But the question is how to construct the query graph Q Q Q .
In particular, the edge-failure distance oracle in [HLRS26] builds on a nested LC-expander hierarchy . We find, however, that nestedness is not useful in the vertex-failure setting, and in fact we can bypass it using a generic idea of adding shortcuts that appears in many vertex-failure connectivity algorithms [20 , 21 , 37 , 34 PPP24, 36 ] . The next challenge is then to sparsify the shortcut set, since the number of shortcuts directly affects the space of the oracle. There are many and different sparsification techniques in previous work. In this subsection, we will see that combining a simple sparsification in [21 ] with a tree-structured hierarchy of neighborhood covers already gives a reasonably good vertex-failure distance oracle. However, if we want to replace the tree-structured hierarchy (which incurs the log O ( k ) n \log^{O(k)} n log O ( k ) n overheads and worse approximation), or proceed to the labeling scheme setting, we need new sparsification techniques.
The LC-Vertex-Expander Hierarchy. We start by defining the LC-vertex-expander hierarchy . Since we remove the nestedness requirement, our hierarchy can be computed in a straightforward bottom-up manner, so it is conceptually simpler. It only guarantees weak expansion , but this is sufficient for our purposes. We directly define the hierarchy without mentioning its construction.
The hierarchy is a partition { A 0 , A 1 , … , A i max } \{A_0, A_1, \ldots, A_{i_{\max}}\} { A 0 , A 1 , … , A i m a x } of V V V such that i max = O ( k ) i_{\max}=O(k) i m a x = O ( k ) and for each level i ∈ [ 0 , i max ] i \in[0,i_{\max}] i ∈ [ 0 , i m a x ] , A i A_i A i is weakly all-length expanding w.r.t. G i : = G ∖ A > i G_i := G \setminus A_{>i} G i := G ∖ A > i and G G G . By “weakly all-length expanding” we mean the following property Lemma 2.3 . The key difference is that now the second condition requires u , v u,v u , v to be close in G i G_i G i , but only guarantees that u , v u,v u , v are close in G ∖ F G \setminus F G ∖ F (i.e. the input graph after failures). Moreover, now the property holds for any h e d h_{\mathrm{ed}} h ed .
Lemma 2.3. Suppose A i A_i A i is *weakly all-length expanding w.r.t. G i G_i G i and G G G . Then for any h e d ≥ 1 h_{\mathrm{ed}} \ge1 h ed ≥ 1 and each R 1 , R 2 ⊆ A i R_1, R_2 \subseteq A_i R 1 , R 2 ⊆ A i , if
∣ R 1 ∣ , ∣ R 2 ∣ ≥ ρ h e a v y : = O ~ ( f ⋅ n 1 / k ) |R_1|, |R_2| \ge\rho_{\mathrm{heavy}} := \widetilde{O}(f \cdot n^{1/k}) ∣ R 1 ∣ , ∣ R 2 ∣ ≥ ρ heavy := O ( f ⋅ n 1/ k ) , and
dist G i ( u , v ) ≤ h e d \operatorname{dist}_{G_i}(u,v) \le h_{\mathrm{ed}} dist G i ( u , v ) ≤ h ed for all pairs ( u , v ) (u,v) ( u , v ) of u ∈ R 1 u \in R_1 u ∈ R 1 and v ∈ R 2 v \in R_2 v ∈ R 2 ,
then for any failed vertex set F F F of size at most f f f , dist G ∖ F ( u , v ) ≤ h e d ⋅ k \operatorname{dist}_{G \setminus F}(u,v) \le h_{\mathrm{ed}} \cdot k dist G ∖ F ( u , v ) ≤ h ed ⋅ k .
We note that the above definition of the expander hierarchy is very informal, and it is more technical in the main body. In particular, when working with LC vertex expanders, the cuts C i C_i C i are fractional. We will use standard sampling techniques to turn it into an integral terminal set, and this is the only randomized part in our algorithm. Moreover, this also leads to multiple expanding graphs G i , α G_{i,\alpha} G i , α at one level, one for each length scale.
The Tree-Structured Hierarchy of Neighborhood Covers. Given the above expander hierarchy, a natural next step is to compute sparse neighborhood covers at different levels and for different length scales { h α : = 2 α ∣ α ∈ [ 1 , α max ] } \{h_\alpha:= 2^\alpha\mid\alpha\in[1,\alpha_{\max}]\} { h α := 2 α ∣ α ∈ [ 1 , α m a x ]} where α max = O ( log n ) \alpha_{\max}=O(\log n) α m a x = O ( log n ) . However, this will incur some fundamental issues as we will discuss in the next subsection. Here, we proceed slightly differently.
For each level i i i from i max i_{\max} i m a x down to 0, for each level-( i + 1 ) (i+1) ( i + 1 ) cluster S ^ \hat{S} S ^ (with corresponding scale α ^ \hat{\alpha} α ^ ) and each scale α ≤ α ^ \alpha\le\hat{\alpha} α ≤ α ^ , construct a neighborhood cover N i , α , S ^ \mathcal{N}_{i,\alpha,\hat{S}} N i , α , S ^ in the subgraph G i [ S ^ ] G_i[\hat{S}] G i [ S ^ ] with covering radius h c o v , α = h α h_{\mathrm{cov},\alpha}=h_\alpha h cov , α = h α , strong diameter h d i a m , α = h c o v , α ⋅ k 2 h_{\mathrm{diam},\alpha}=h_{\mathrm{cov},\alpha}\cdot k^2 h diam , α = h cov , α ⋅ k 2 , and width ω = O ~ ( n 1 / k 2 ) \omega=\widetilde{O}(n^{1/k^2}) ω = O ( n 1/ k 2 ) . In particular, for the top level i : = i max i:=i_{\max} i := i m a x , we choose S ^ = V \hat{S}=V S ^ = V and α ^ = α max \hat{\alpha}=\alpha_{\max} α ^ = α m a x . Note that one vertex can appear in at most n O ( 1 / k ) ⋅ log O ( k ) n n^{O(1/k)}\cdot\log^{O(k)} n n O ( 1/ k ) ⋅ log O ( k ) n clusters in total.
For each cluster S ∈ N i , α , S ^ S \in\mathcal{N}_{i,\alpha,\hat{S}} S ∈ N i , α , S ^ , its terminals are V t m n ( S ) : = S ∩ A i V_{\mathrm{tmn}}(S):=S\cap A_i V tmn ( S ) := S ∩ A i , and its level and length scale are level ( S ) : = i \operatorname{level}(S):=i level ( S ) := i and scale ( S ) : = α \operatorname{scale}(S):=\alpha scale ( S ) := α . Lastly, we also compute the low-diameter low-degree Steiner trees for clusters using the LC-expansion property. The tree T S T_S T S for a cluster S S S has diameter h t r e e , α = h d i a m , α ⋅ k 2 = h α ⋅ k 4 h_{\mathrm{tree},\alpha}=h_{\mathrm{diam},\alpha}\cdot k^2=h_\alpha\cdot k^4 h tree , α = h diam , α ⋅ k 2 = h α ⋅ k 4 , where the k 2 k^2 k 2 factor is from Lemma 2.2 .
A major benefit of this approach is that the resulting hierarchy forms a tree structure among clusters, which is well suited to our analysis, in particular when performing the [21 ] -sparsification, as we will see. For convenience, write S ^ ≻ S \widehat{S}\succ S S ≻ S if S ^ \widehat{S} S is a strict ancestor of S S S .
Witness Path Decomposition. Fix a query ( x , y , F ) (x,y,F) ( x , y , F ) , and an x x x -y y y shortest path P P P in G ∖ F G\setminus F G ∖ F called the witness path. We first define affected clusters , which are clusters hit by any vertex in { x , y } ∪ F \{x,y\}\cup F { x , y } ∪ F . Intuitively, as discussed above, vertices in affected clusters will appear in the query graph (possibly as part of a contracted subtree node). We will talk about the query graph later, and let us first see where shortcuts are needed.
Assume x , y ∈ A i max x,y\in A_{i_{\max}} x , y ∈ A i m a x for simplicity, and consider the following recursive decomposition of P P P into leaf segments . At the beginning, we have an initial segment σ \sigma σ which is the whole path P P P . For each segment σ \sigma σ , its length scale α σ \alpha_\sigma α σ is such that h α σ ≈ leng ( σ ) h_{\alpha_\sigma}\approx\operatorname{leng}(\sigma) h α σ ≈ leng ( σ ) , and its interior σ ∘ \sigma^\circ σ ∘ is the subpath obtained by deleting two endpoints of σ \sigma σ .
Starting from the initial segment σ \sigma σ , we assign to it level i σ : = i max i_\sigma:=i_{\max} i σ := i m a x and cluster S σ S_\sigma S σ which is an arbitrary cluster in N i max , α σ , V \mathcal{N}_{i_{\max},\alpha_\sigma,V} N i m a x , α σ , V that covers the whole σ \sigma σ . Suppose S σ S_\sigma S σ is affected; otherwise we are done. Next, we break σ \sigma σ at the A i max A_{i_{\max}} A i m a x -vertices (which include x x x and y y y by our assumption) on it. This produces several child segments σ ~ \widetilde{\sigma} σ whose endpoints lie in A i max A_{i_{\max}} A i m a x , while their interiors are disjoint from A i max A_{i_{\max}} A i m a x . For each σ ~ \widetilde{\sigma} σ , we assign to it level i σ ~ : = i max − 1 i_{\widetilde{\sigma}}:=i_{\max}-1 i σ := i m a x − 1 and cluster S σ ~ S_{\widetilde{\sigma}} S σ from N i σ ~ , α σ ~ , S σ \mathcal{N}_{i_{\widetilde{\sigma}},\alpha_{\widetilde{\sigma}},S_\sigma} N i σ , α σ , S σ that covers its whole interior σ ~ ∘ \widetilde{\sigma}^{\circ} σ ∘ .
In general, every segment σ \sigma σ other than the initial segment has interior σ ∘ \sigma^\circ σ ∘ disjoint from A > i σ A_{>i_\sigma} A > i σ and fully contained in its cluster S σ S_\sigma S σ . The endpoints of σ \sigma σ are terminals of ancestor clusters of S σ S_\sigma S σ . If S σ S_\sigma S σ is affected, we recursively decompose σ \sigma σ ; otherwise, we declare it to be a leaf segment.
At the end, P P P is decomposed into a collection of leaf segments σ \sigma σ . Let S u p : = { S ∣ S ≻ S σ for some leaf segment σ } S_{\mathrm{up}}:=\{S\mid S\succ S_\sigma\text{ for some leaf segment }\sigma\} S up := { S ∣ S ≻ S σ for some leaf segment σ } collect all strict ancestors of clusters of leaf segments. Observe that clusters in S u p S_{\mathrm{up}} S up are all affected, and that each endpoint of a leaf segment are terminals in some S ∈ S u p S\in S_{\mathrm{up}} S ∈ S up . More importantly, S u p S_{\mathrm{up}} S up are clusters of the non-leaf segments in the decomposition. Let cost ( S u p ) \operatorname{cost}(S_{\mathrm{up}}) cost ( S up ) denote the sum of h α h_\alpha h α for α : = scale ( S ) \alpha:=\operatorname{scale}(S) α := scale ( S ) over all clusters in S u p S_{\mathrm{up}} S up . Then cost ( S u p ) \operatorname{cost}(S_{\mathrm{up}}) cost ( S up ) can be upper bounded by O ( i max ⋅ leng ( P ) ) O(i_{\max}\cdot\operatorname{leng}(P)) O ( i m a x ⋅ leng ( P )) , which is important for our later analysis.
Adding Shortcuts. Since each leaf segment σ \sigma σ has its interior contained in the unaffected cluster S σ S_\sigma S σ , while each of its endpoints is a terminal of some affected cluster S ^ ≻ S σ \widehat{S}\succ S_\sigma S ≻ S σ . We naturally want to add shortcuts between “neighbors” of an unaffected cluster.
Formally, for each cluster S S S , we create a copy v p t : = point ( v , S ) v_{\mathrm{pt}}:=\operatorname{point}(v,S) v pt := point ( v , S ) for each v ∈ V t m n ( S ) v\in V_{\mathrm{tmn}}(S) v ∈ V tmn ( S ) , called points . We say v p t v_{\mathrm{pt}} v pt has level ( v p t ) \operatorname{level}(v_{\mathrm{pt}}) level ( v pt ) and scale ( v p t ) \operatorname{scale}(v_{\mathrm{pt}}) scale ( v pt ) the same as those of its cluster cl ( v p t ) : = S \operatorname{cl}(v_{\mathrm{pt}}):=S cl ( v pt ) := S . Let core ( S ) \operatorname{core}(S) core ( S ) denote the set of all points of S S S . Then the “neighbors” of an unaffected cluster S S S , denoted by Λ ( S ) \Lambda(S) Λ ( S ) and called the surrounding set of S S S , are those points of clusters S ^ ≻ S \widehat{S}\succ S S ≻ S which are connected to S S S by a short edge of length ≤ h α \le h_\alpha ≤ h α . We simply add a clique on Λ ( S ) \Lambda(S) Λ ( S ) to shortcut S S S , and each shortcut of this clique should have length h d i a m , α + 2 h α h_{\mathrm{diam},\alpha}+2h_\alpha h diam , α + 2 h α for α = scale ( S ) \alpha=\operatorname{scale}(S) α = scale ( S ) , so that we do not underestimate the real distance.
Let H H H be the shortcut graph whose vertices are all the points and edges are all the shortcuts (we also transform original edges into shortcuts in a similar way). It is clear that the subgraph of H H H induced by affected points , denoted by K : = ∣ ⨆ affected S core ( S ) ∣ K:=\left|\bigsqcup_{\text{affected }S}\operatorname{core}(S)\right| K := ∣ ⨆ affected S core ( S ) ∣ , can approximate dist G ∖ F ( x , y ) \operatorname{dist}_{G\setminus F}(x,y) dist G ∖ F ( x , y ) , as H [ K ] H[K] H [ K ] preserves the shortcut version of P P P , denoted by P H P_H P H , up to a factor-k k k approximation incurred by the neighborhood covers.
Exploit LC-Expansion Property. Lastly, we construct the query graph Q Q Q from the shortcut graph H H H . Recall that to further reduce the number of points, we have to contract points in the same heavy residual subtree τ \tau τ into a subtree node τ n d \tau_{\mathrm{nd}} τ nd , and this subtree node has vertex length h t r e e , α h_{\mathrm{tree},\alpha} h tree , α . If we only perform the contraction, the length of P H P_H P H in Q Q Q may become unbounded since it can pass through many subtree nodes. But recall that we have another step exploiting the LC-expansion property, which adds a star on subtree nodes belonging to the same affected cluster. Recall our discussion on leaf segments, which implies that P H P_H P H will only pass through subtree nodes belonging to clusters in S u p S_{\mathrm{up}} S up . Using the stars, in fact we can simply modify P H P_H P H , to make sure that it pass through at most two subtree nodes of the same cluster in S u p S_{\mathrm{up}} S up . Therefore, we can upper bound the extra cost incurred by the subtree nodes by
k 4 ⋅ cost ( S u p ) = O ( k 4 ⋅ i max ⋅ leng ( P ) ) = O ( k 5 ) ⋅ leng ( P ) , k^4 \cdot\operatorname{cost}(S_{\mathrm{up}}) = O(k^4 \cdot i_{\max} \cdot\operatorname{leng}(P)) = O(k^5) \cdot\operatorname{leng}(P), k 4 ⋅ cost ( S up ) = O ( k 4 ⋅ i m a x ⋅ leng ( P )) = O ( k 5 ) ⋅ leng ( P ) ,
where k 4 k^4 k 4 is the ratio between h t r e e , α h_{\mathrm{tree},\alpha} h tree , α and h α h_\alpha h α .
This completes the definition of Q Q Q and the analysis of one direction of the approximation guarantee. We do not discuss the construction of Q Q Q or the underlying data structures here, as these are standard from [21 ] . The oracle size will be proportional to the size of the shortcut graph H H H , which is now roughly n 2 + O ( 1 / k ) ⋅ log O ( k ) n n^{2+O(1/k)} \cdot\log^{O(k)} n n 2 + O ( 1/ k ) ⋅ log O ( k ) n , since H H H has at most n 1 + O ( 1 / k ) ⋅ log O ( k ) n n^{1+O(1/k)} \cdot\log^{O(k)} n n 1 + O ( 1/ k ) ⋅ log O ( k ) n points.
Perform Shortcut Sparsification in [21 ] . This sparsification simply replaces each clique on Λ ( S ) \Lambda(S) Λ ( S ) (suppose ∣ Λ ( S ) ∣ ≥ f + 1 |\Lambda(S)| \ge f+1 ∣Λ ( S ) ∣ ≥ f + 1 ) with a biclique between Λ ( S ) \Lambda(S) Λ ( S ) and arbitrary f + 1 f+1 f + 1 points B ( S ) ⊆ Λ ( S ) B(S) \subseteq\Lambda(S) B ( S ) ⊆ Λ ( S ) . Note that there will be at least one non-failed point w p t w_{\mathrm{pt}} w pt in B ( S ) B(S) B ( S ) under any failures F F F , since the points in Λ ( S ) \Lambda(S) Λ ( S ) correspond to distinct vertices. Therefore, any old clique shortcut connecting u p t , v p t ∈ Λ ( S ) u_{\mathrm{pt}}, v_{\mathrm{pt}} \in\Lambda(S) u pt , v pt ∈ Λ ( S ) can be simulated by a two-hop path P ~ H : = ( u p t , w p t ) ∘ ( w p t , v p t ) \widetilde{P}_H := (u_{\mathrm{pt}}, w_{\mathrm{pt}}) \circ(w_{\mathrm{pt}}, v_{\mathrm{pt}}) P H := ( u pt , w pt ) ∘ ( w pt , v pt ) using two new biclique shortcuts. We want to use the old shortcut ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) only when there is a corresponding leaf segment σ \sigma σ , whose S σ = S S_\sigma= S S σ = S . In this scenario, w p t w_{\mathrm{pt}} w pt belongs to an affected cluster and must appear in the query graph Q Q Q (either individually or inside a subtree node).
When w p t w_{\mathrm{pt}} w pt belongs to a subtree node, passing through it needs to pay a large node length. This is precisely where the tree-structured hierarchy becomes useful. Now, if w p t w_{\mathrm{pt}} w pt is contained in a subtree node τ n d \tau_{\mathrm{nd}} τ nd , then τ \tau τ must belong to some cluster S ^ ⊃ S \widehat{S} \supset S S ⊃ S , which means S ^ ∈ S u p \widehat{S} \in S_{\mathrm{up}} S ∈ S up . Recall that our earlier argument shows that we can pass through subtree nodes of clusters in S u p S_{\mathrm{up}} S up arbitrarily many times “effectively for free”.
After the sparsification, the number of shortcuts is
O ( f ⋅ ∑ S ∣ Λ ( S ) ∣ ) ≤ f ⋅ m ⋅ n O ( 1 / k ) ⋅ log O ( k ) n . O\left(f \cdot\sum_{S} |\Lambda(S)|\right) \le f \cdot m \cdot n^{O(1/k)} \cdot\log^{O(k)} n. O ( f ⋅ S ∑ ∣Λ ( S ) ∣ ) ≤ f ⋅ m ⋅ n O ( 1/ k ) ⋅ log O ( k ) n .
To eliminate the dependence on m m m , we can replace the input graph with a vertex-fault-tolerant spanner with m = O ( f 1 − 1 / k ⋅ n 1 + 1 / k ) m = O(f^{1-1/k} \cdot n^{1+1/k}) m = O ( f 1 − 1/ k ⋅ n 1 + 1/ k ) in the very beginning, incurring only an extra factor of k k k in the approximation. Finally, to obtain polynomial construction time, we in fact need to pay one additional factor of k k k in the length slack of the LC-expansion property. Therefore, this simpler approach gives approximation O ( k 6 ) O(k^6) O ( k 6 ) for exponential-time construction and O ( k 7 ) O(k^7) O ( k 7 ) for polynomial-time construction.
An Improved Oracle
In this subsection, we discuss how to replace the tree-structured hierarchy of neighborhood covers with a natural collection of neighborhood covers built independently on each expanding graph G i G_i G i . This requires a new shortcut sparsification technique that exploits the LC-expansion property in an inter-cluster manner, rather than solely within individual clusters. Furthermore, this new shortcut sparsification turns out to be crucial for labeling schemes.
First, we formally define the new neighborhood covers. For each level i ∈ [ 0 , i max ] i \in[0, i_{\max}] i ∈ [ 0 , i m a x ] and each scale α ∈ [ 1 , α max ] \alpha\in[1, \alpha_{\max}] α ∈ [ 1 , α m a x ] , we construct a neighborhood cover N i , α \mathcal{N}_{i,\alpha} N i , α with covering radius h c o v , α = h α h_{\mathrm{cov},\alpha}=h_\alpha h cov , α = h α , diameter h d i a m , α = h α ⋅ k h_{\mathrm{diam},\alpha}=h_\alpha\cdot k h diam , α = h α ⋅ k , and width ω = O ~ ( n 1 / k ) \omega= \widetilde{O}(n^{1/k}) ω = O ( n 1/ k ) . Naturally, we still define affected clusters to be those hit by F ∪ { x , y } F \cup\{x,y\} F ∪ { x , y } .
The earlier argument for decomposing the witness path P P P still applies. Consequently, if we add a clique of shortcuts on each Λ ( S ) \Lambda(S) Λ ( S ) , we still obtain an oracle with O ~ ( n 2 + 1 / k ) \widetilde{O}(n^{2+1/k}) O ( n 2 + 1/ k ) space. The difficulty arises when one attempts to apply the shortcut sparsification technique of [21 ] . First, without the tree-structured hierarchy, when S S S serves as S σ S_\sigma S σ of a leaf segment, points in Λ ( S ) \Lambda(S) Λ ( S ) may still belong to unaffected clusters. This means that choosing f + 1 f+1 f + 1 points as B ( S ) B(S) B ( S ) may not hit any non-failed point that appears in the query graph. Even if we are lucky enough to hit such a point w p t w_{\mathrm{pt}} w pt , there is no guarantee that w p t w_{\mathrm{pt}} w pt must belong to a cluster in S u p S_{\mathrm{up}} S up , and thus the case where w p t w_{\mathrm{pt}} w pt is inside a subtree node will be problematic (since now passing through w p t w_{\mathrm{pt}} w pt is no longer “effectively for free”).
Propagate Heaviness to Denseness. To motivate our techniques, we first discuss a more flexible way of applying Lemma 2.3 . The standard application considers two sets R 1 R_1 R 1 and R 2 R_2 R 2 that are close in G i G_i G i and are each A i A_i A i -heavy (i.e. containing many A i A_i A i -vertices). We use the following extension: if two sets Z 1 Z_1 Z 1 and Z 2 Z_2 Z 2 are close in G i G_i G i (but could be A i A_i A i -light), and each Z k Z_k Z k is close to R k R_k R k in G i ∖ F G_i \setminus F G i ∖ F , then we can still conclude that Z 1 Z_1 Z 1 and Z 2 Z_2 Z 2 are close in G ∖ F G \setminus F G ∖ F . In other words, the heaviness of R k R_k R k can propagate to Z k Z_k Z k through “G i ∖ F G_i \setminus F G i ∖ F -closeness”. To distinguish this extended setting from the standard one, we say that Z k Z_k Z k is A i A_i A i -dense. Moreover, we point out that A i A_i A i -heaviness/denseness can also be propagated using G i ^ ∖ F G_{\hat{i}} \setminus F G i ^ ∖ F -closeness for any i ^ ≤ i \hat{i} \leq i i ^ ≤ i , since G i ^ ∖ F G_{\hat{i}} \setminus F G i ^ ∖ F -closeness implies G i ∖ F G_i \setminus F G i ∖ F -closeness.
Nearby Denseness of Clusters. We use the above idea to define the nearby denseness of clusters. Consider a cluster S S S with level i i i and scale α \alpha α . We use Λ ( S ) \Lambda(S) Λ ( S ) to denote “neighbor” points and vertices simultaneously, depending on the context, i.e., it now includes all (points of) A i ′ A_{i'} A i ′ -vertices for all i ′ > i i' > i i ′ > i that connect to S S S via a short edge of length ≤ h α \leq h_\alpha ≤ h α . Let Λ i ′ ( S ) = Λ ( S ) ∩ A i ′ \Lambda_{i'}(S)=\Lambda(S)\cap A_{i'} Λ i ′ ( S ) = Λ ( S ) ∩ A i ′ . We say S S S is nearby A i ′ A_{i'} A i ′ -dense if ∣ Λ i ′ ( S ) ∣ ≥ ρ h e a v y |\Lambda_{i'}(S)| \geq\rho_{\mathrm{heavy}} ∣ Λ i ′ ( S ) ∣ ≥ ρ heavy , meaning that when S S S is unaffected, the whole cluster obtains A i ′ A_{i'} A i ′ -denseness from the A i ′ A_{i'} A i ′ -heavy set Λ i ′ ( S ) \Lambda_{i'}(S) Λ i ′ ( S ) .
Adjacent-Cluster Denseness of Points. Next, we define adjacent-cluster denseness for points. For a point v p t v_{\mathrm{pt}} v pt of a cluster S S S with level i i i and scale α \alpha α , we say v p t v_{\mathrm{pt}} v pt is adjacent-cluster dense if there exists an unaffected cluster S ~ \widetilde{S} S with level i ~ < i \widetilde{i}<i i < i and scale α ~ ≤ α \widetilde{\alpha}\leq\alpha α ≤ α such that v p t ∈ Λ ( S ~ ) v_{\mathrm{pt}}\in\Lambda(\widetilde{S}) v pt ∈ Λ ( S ) and S ~ \widetilde{S} S is nearby A i A_i A i -dense.
Shortcut Sparsification. Consider a cluster S S S at level i i i and scale α \alpha α . There are three cases.
Case 1. First, for two levels i 1 , i 2 > i i_1,i_2>i i 1 , i 2 > i , suppose S S S is both nearby A i 1 A_{i_1} A i 1 - and A i 2 A_{i_2} A i 2 -sparse. We simply add a biclique between points in Λ i 1 ( S ) \Lambda_{i_1}(S) Λ i 1 ( S ) and Λ i 2 ( S ) \Lambda_{i_2}(S) Λ i 2 ( S ) . This introduces only a small number of shortcuts.
Case 2. For two levels i 1 ≥ i 2 > i i_1 \ge i_2 > i i 1 ≥ i 2 > i , suppose S S S is A i 1 A_{i_1} A i 1 -dense. In this case, we need one more observation: if a shortcut ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) with u p t ∈ Λ i 1 ( S ) u_{\mathrm{pt}} \in\Lambda_{i_1}(S) u pt ∈ Λ i 1 ( S ) and v p t ∈ Λ i 2 ( S ) v_{\mathrm{pt}} \in\Lambda_{i_2}(S) v pt ∈ Λ i 2 ( S ) is used by some leaf segment, let S 1 S_1 S 1 and S 2 S_2 S 2 be the clusters of u p t u_{\mathrm{pt}} u pt and v p t v_{\mathrm{pt}} v pt , then we must have α 1 : = scale ( S 1 ) ≥ α 2 : = scale ( S 2 ) \alpha_1 := \operatorname{scale}(S_1) \ge\alpha_2 := \operatorname{scale}(S_2) α 1 := scale ( S 1 ) ≥ α 2 := scale ( S 2 ) . Namely, the larger-smaller relations of ( i 1 , i 2 ) (i_1, i_2) ( i 1 , i 2 ) and ( α 1 , α 2 ) (\alpha_1, \alpha_2) ( α 1 , α 2 ) are consistent. Furthermore, S 1 S_1 S 1 must intersect S 2 S_2 S 2 .
Therefore, from the v p t v_{\mathrm{pt}} v pt side, when v p t v_{\mathrm{pt}} v pt is adjacent-cluster A i 1 A_{i_1} A i 1 -dense, we add an expansion-based link from v p t v_{\mathrm{pt}} v pt to the cluster node of S 1 S_1 S 1 (i.e. the center of the S 1 S_1 S 1 -star) for all S 1 ′ S'_1 S 1 ′ at level i 1 i_1 i 1 intersecting S 2 S_2 S 2 . By doing so, one can observe that, when we want to use the missing shortcut ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) , there is a replacement path ( v p t , S 1 , n d ) ∘ ( S 1 , n d , u p t ) (v_{\mathrm{pt}}, S_{1,\mathrm{nd}}) \circ(S_{1,\mathrm{nd}}, u_{\mathrm{pt}}) ( v pt , S 1 , nd ) ∘ ( S 1 , nd , u pt ) , and importantly S 1 ∈ S u p S_1 \in S_{\mathrm{up}} S 1 ∈ S up (and thus we can use S 1 , n d S_{1,\mathrm{nd}} S 1 , nd freely).
Case 3. For two levels i 1 ≥ i 2 > i i_1 \ge i_2 > i i 1 ≥ i 2 > i , suppose S S S is A i 1 A_{i_1} A i 1 -sparse but A i 2 A_{i_2} A i 2 -dense. In fact, this third case is more subtle because a low-level point can only obtain denseness at a high level, and not conversely. Therefore, we need new ideas involving satellite neighborhood covers and satellite clusters , which we will not explain here.
Overall, since we only add bicliques between sparse levels of the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) , now each cluster creates only O ~ ( ρ h e a v y 2 ) = O ~ ( f 2 ) ⋅ n O ( 1 / k ) \tilde{O}(\rho_{\mathrm{heavy}}^2) = \tilde{O}(f^2) \cdot n^{O(1/k)} O ~ ( ρ heavy 2 ) = O ~ ( f 2 ) ⋅ n O ( 1/ k ) shortcuts. The total number of shortcuts is then O ~ ( f 2 ) ⋅ n 1 + O ( 1 / k ) \tilde{O}(f^2) \cdot n^{1+O(1/k)} O ~ ( f 2 ) ⋅ n 1 + O ( 1/ k ) , which is also the space complexity of our oracle. We note that the data structures used to add expansion-based links are separate from those used for shortcuts, and the former require even less space.
For approximation, this approach removes one k k k factor from the previous tree-structured hierarchy of neighborhood covers. Unexpectedly, however, there remain O ~ ( m ) ⋅ n O ( 1 / k ) \tilde{O}(m) \cdot n^{O(1/k)} O ~ ( m ) ⋅ n O ( 1/ k ) “trivial” shortcuts from original edges, so the initial sparsification via a vertex-fault-tolerant spanner is still needed. Thus, this factor of k k k cannot yet be avoided. We believe that our further sparsification techniques for labeling schemes may remove it, since our labeling schemes do not use vertex-fault-tolerant spanners.
In summary, the final approximation is O ( k 5 ) O(k^5) O ( k 5 ) for exponential-time construction and O ( k 6 ) O(k^6) O ( k 6 ) for polynomial-time construction. We point out that, for exponential-time construction, the remaining k 4 k^4 k 4 factor seems inherent to our approach. It comes from four different sources: sparse neighborhood covers, LC vertex-expander decompositions, low-degree low-diameter Steiner trees, and the number of levels in the hierarchy. Removing any of them would be an interesting open problem.
The Labeling Schemes
Lastly, we briefly discuss our approach to vertex-failure labeling schemes. Recall that a labeling scheme should distribute the data structure evenly across vertices. In our oracle, the main source of unevenness lies in the data structures used to store shortcuts.
Our new sparsification attains some kind of evenness, in the sense that each cluster creates only about f 2 f^2 f 2 shortcuts. Therefore, it is affordable to store at each vertex the shortcuts created by clusters containing it, and in the query phase, we can obtain the full list of shortcuts created by affected clusters from the labels of F ∪ { x , y } F \cup\{x,y\} F ∪ { x , y } . This is particularly useful since we need to remove these invalid shortcuts in the query phase. Previous connectivity labeling schemes [PPP24, LPS25] achieved a similar goal using a different coloring technique, but at the cost of an additional factor of f f f in the label size.
Therefore, to reduce the number of shortcuts incident to each vertex, we introduce the notions of upward denseness and downward denseness . While both notions are implicit in [36 ] , we give a new definition of downward denseness here, together with a new method for detecting it. In both works, checking downward denseness is the most technically challenging part. As we explain below, the approach of [36 ] does not extend to the distance setting. Our new approach is entirely expander-based and does not rely on connectivity certificates or fault-tolerant spanners. Thus it is simpler, more flexible, and even saves a factor of f f f in the connectivity setting.
Upward Denseness of Points. For technical reasons, in the labeling scheme we go back to the tree-structured hierarchy of neighborhood covers, which is easier to deal with. The overall idea is, if a point v p t v_{\mathrm{pt}} v pt at a low level i i i connects to many points at a higher level i ′ ≥ i i' \ge i i ′ ≥ i via unaffected shortcuts (i.e. shortcuts created by unaffected clusters or original edges). Then v p t v_{\mathrm{pt}} v pt will obtain A i ′ A_{i'} A i ′ -denseness from this upward neighbors set. Naturally, if v p t v_{\mathrm{pt}} v pt is upward A i ′ A_{i'} A i ′ -sparse, then its upward shortcuts are stored in its label. If, on the other hand, v p t v_{\mathrm{pt}} v pt is upward A i ′ A_{i'} A i ′ -dense, then we add an expansion-based link from v p t v_{\mathrm{pt}} v pt to the cluster node corresponding to its level-i ′ i' i ′ ancestor cluster. Again, the idea is to simulate the unstored shortcuts using a two-hop path of expansion-based links.
Downward Denseness of Points. However, the above argument has an issue. Consider an unaffected shortcut ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) where u p t u_{\mathrm{pt}} u pt is the higher endpoint at level i ′ i' i ′ and v p t v_{\mathrm{pt}} v pt is the lower endpoint at level i i i . Let S ′ S' S ′ and S S S be the clusters of u p t u_{\mathrm{pt}} u pt and v p t v_{\mathrm{pt}} v pt respectively. If this shortcut is missed because v p t v_{\mathrm{pt}} v pt is upward A i ′ A_{i'} A i ′ -dense, we have connected v p t v_{\mathrm{pt}} v pt to S n d ′ S'_{\mathrm{nd}} S nd ′ . But then how do we identify u p t u_{\mathrm{pt}} u pt , so that we can also connect u p t u_{\mathrm{pt}} u pt to S n d ′ S'_{\mathrm{nd}} S nd ′ ? Here comes the downward denseness. Very informally, we say u p t u_{\mathrm{pt}} u pt is downward A i ′ A_{i'} A i ′ -dense if u p t u_{\mathrm{pt}} u pt is connected to some upward A i ′ A_{i'} A i ′ -dense lower-level points via unaffected shortcuts. Now, if any such shortcut ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) is missed, it means u p t u_{\mathrm{pt}} u pt is downward A i ′ A_{i'} A i ′ -dense, and we will connect u p t u_{\mathrm{pt}} u pt to S n d ′ S'_{\mathrm{nd}} S nd ′ .
However, checking downward denseness is the most challenging part. [36 ] uses a counting strategy, which requires some sort of low-arboricity property of the original shortcuts before the second-stage sparsification using upward and downward denseness. To obtain the low-arboricity property, they perform local sparsification by invoking a connectivity certificate [39 ] . However, this approach does not work in the distance setting if we simply replace the connectivity certificate with a vertex-fault-tolerant spanner. Roughly speaking, the reason is that this sparsification simulates some shortcut with an unknown path in the spanner, and it will be problematic if this path goes into a cluster not in S u p S_{\mathrm{up}} S up . We are not going to explain our approach here, and we refer to § 6.1 for more details.
In summary, the deterministic vertex-failure labeling scheme in [36 ] has label size O ~ ( f 4 ) \widetilde{O}(f^4) O ( f 4 ) . Our sparsification based on adjacent-cluster denseness removes an f f f factor. In the distance setting, we use a new definition and approach for downward denseness, which leads to the final bound of f 3 ⋅ n O ( 1 / k ) ⋅ log O ( k ) n f^3 \cdot n^{O(1/k)} \cdot\log^{O(k)} n f 3 ⋅ n O ( 1/ k ) ⋅ log O ( k ) n . In the connectivity setting, the new approach can even shave one more f f f factor, achieving a deterministic bound of O ~ ( f 2 ) \widetilde{O}(f^2) O ( f 2 ) .
Preliminaries
Throughout the paper, we use the standard graph theoretic notation. All graphs in this paper are undirected. For any graph, we use V ( ⋅ ) V(\cdot) V ( ⋅ ) and E ( ⋅ ) E(\cdot) E ( ⋅ ) to denote its vertex set and edge set, respectively. In particular, when G G G is the input graph, we write V V V and E E E for its vertex and edge sets, and let n : = ∣ V ∣ n := |V| n := ∣ V ∣ and m : = ∣ E ∣ m := |E| m := ∣ E ∣ .
Given a graph G = ( V ( G ) , E ( G ) ) G=(V(G),E(G)) G = ( V ( G ) , E ( G )) , for any S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) , we let G [ S ] G[S] G [ S ] denote the subgraph of G G G induced by vertices in S S S . Also, for any S ⊆ V ( G ) S\subseteq V(G) S ⊆ V ( G ) , we use G ∖ S G\setminus S G ∖ S to denote the graph after removing vertices in S S S and edges incident to them. Similarly, for any F ⊆ E ( G ) F\subseteq E(G) F ⊆ E ( G ) , G ∖ F G\setminus F G ∖ F denotes the graph after removing edges in F F F .
Lengths. A graph G G G in this paper is generally weighted, meaning that it has both vertex lengths and edge lengths. We use ℓ G : V ( G ) ∪ E ( G ) → R ≥ 0 \ell_G:V(G)\cup E(G)\to\mathbb{R}_{\ge0} ℓ G : V ( G ) ∪ E ( G ) → R ≥ 0 to denote its length function on vertices and edges. When G G G is clear from the context, we usually omit the subscript G G G .
We require that the input graph has non-negative and integral lengths which are upper bounded by W = poly ( n ) W=\operatorname{poly}(n) W = poly ( n ) . In fact, the assumption W = poly ( n ) W=\operatorname{poly}(n) W = poly ( n ) is essentially without loss of generality. Indeed, by paying an additional log ( W ) \log(W) log ( W ) factor in the space, update time, and query time, standard scaling techniques allow us to reduce to the case W = O ( n 3 ) W=O(n^3) W = O ( n 3 ) , since we allow a constant approximation.
The following Assumption 3.1 about the input graph is also without loss of generality.
Assumption 3.1. we assume the following about vertex and edge lengths on the input graph G G G without loss of generality.
G G G has only edge lengths, meaning that every vertex in G G G has length 0.
The edge lengths in G G G are all positive integers.
There are at most O ( log n ) O(\log n) O ( log n ) distinct edge lengths in $G.
Distances and Diameters. Let G G G be a graph with length function ℓ \ell ℓ . This quantity includes the lengths of both endpoints, and when P P P is not simple, counts each occurrence of a vertex or edge on P P P with multiplicity.
For each pair of vertices u , v u,v u , v in V ( G ) V(G) V ( G ) , the distance between them, denoted by dist G ( u , v ) \operatorname{dist}_G(u,v) dist G ( u , v ) , is the length of the shortest u u u -v v v path. Note that dist G ( u , u ) = ℓ ( u ) \operatorname{dist}_G(u,u)=\ell(u) dist G ( u , u ) = ℓ ( u ) . More generally, for two vertex sets S , T ⊆ V ( G ) S,T\subseteq V(G) S , T ⊆ V ( G ) , dist G ( S , T ) = min u ∈ S , v ∈ T dist G ( s , t ) \operatorname{dist}_G(S,T)=\min_{u\in S,v\in T}\operatorname{dist}_G(s,t) dist G ( S , T ) = min u ∈ S , v ∈ T dist G ( s , t ) . The weak diameter between S S S and T T T , denoted by diam G ( S , T ) \operatorname{diam}_G(S,T) diam G ( S , T ) , is max u ∈ S , v ∈ T dist G ( s , t ) \max_{u\in S,v\in T}\operatorname{dist}_G(s,t) max u ∈ S , v ∈ T dist G ( s , t ) . For simplicity, we write diam G ( S ) \operatorname{diam}_G(S) diam G ( S ) for diam G ( S ) \operatorname{diam}_G(S) diam G ( S ) . The strong diameter of S S S is diam G [ S ] ( S ) \operatorname{diam}_{G[S]}(S) diam G [ S ] ( S ) , i.e. the diameter of the induced subgraph.
Length-Constrained Objects
Throughout this section, we consider a graph G G G with length function ℓ \ell ℓ .
Moving Cuts. A (vertex) moving cut C : E ( G ) ∪ V ( G ) → [ 0 , 1 ] C:E(G)\cup V(G)\to[0,1] C : E ( G ) ∪ V ( G ) → [ 0 , 1 ] assigns to each edge and vertex a non-negative real number between 0 and 1. A moving cut C C C is h h h -length if each value is further a multiple of 1 h \frac{1}{h} h 1 . The size of C C C is defined as ∣ C ∣ : = ∑ e C ( e ) + ∑ v C ( v ) |C|:=\sum_e C(e)+\sum_v C(v) ∣ C ∣ := ∑ e C ( e ) + ∑ v C ( v ) .
Given a length parameter h ≥ 1 h\ge1 h ≥ 1 , we denote by G − h ⋅ C G-h\cdot C G − h ⋅ C the graph G G G with lengths ℓ G + h ⋅ C \ell_G+h\cdot C ℓ G + h ⋅ C , where h ⋅ C h\cdot C h ⋅ C is C C C scaled up by h h h . This notation can be used even when C C C is not h h h -length.
Remark 3.2. In literature involving length-constrained expanders, for an h h h -length moving cut, usually G − C G-C G − C is used to denote the graph G G G with lengths ℓ G + h ⋅ C \ell_G+h\cdot C ℓ G + h ⋅ C . We use a slightly different notation since we will use it even when C C C is not h h h -length.
Node Weightings. A node weighting A : V ( G ) → R ≥ 0 A : V(G) \to\mathbb{R}_{\ge0} A : V ( G ) → R ≥ 0 assigns each vertex a non-negative real number. The size of A A A is ∣ A ∣ = ∑ v A ( v ) |A| = \sum_v A(v) ∣ A ∣ = ∑ v A ( v ) . A node weighting is pure if A ( v ) A(v) A ( v ) at each vertex v v v is either 0 or 1. Equivalently, a pure node weighting A A A represents a vertex set { v ∣ A ( v ) = 1 } \{v \mid A(v) = 1\} { v ∣ A ( v ) = 1 } , so when A A A is pure, we will use A A A to denote this set instead.
Demands. A demand D : V × V → R ≥ 0 D : V \times V \to\mathbb{R}_{\ge0} D : V × V → R ≥ 0 assigns a non-negative real number to each ordered pair of vertices u , v ∈ V u, v \in V u , v ∈ V . The size ∣ D ∣ |D| ∣ D ∣ of a demand is defined as ∣ D ∣ : = ∑ u , v ∈ V D ( u , v ) |D| := \sum_{u,v\in V} D(u,v) ∣ D ∣ := ∑ u , v ∈ V D ( u , v ) . A demand D D D is called A A A -respecting for a node weighting A A A if for each vertex u u u , ∑ v D ( u , v ) ≤ A ( u ) \sum_v D(u,v) \le A(u) ∑ v D ( u , v ) ≤ A ( u ) . A demand D D D is called h h h -length-constrained (or h h h -length for short) if it assigns positive demand values only to pairs of vertices that are within distance at most h h h , i.e. for all ( u , v ) ∈ supp ( D ) (u,v) \in\operatorname{supp}(D) ( u , v ) ∈ supp ( D ) , dist G ( u , v ) ≤ h \operatorname{dist}_G(u,v) \le h dist G ( u , v ) ≤ h .
Length-Constrained Vertex Expanders
h h h -Length Separation. Let C C C be an h h h -length moving cut. We say a pair of vertices u , v ∈ V u,v \in V u , v ∈ V are h h h -length separated by C C C if their distance in G − h ⋅ C G-h \cdot C G − h ⋅ C is strictly larger than h h h , i.e. dist G − h ⋅ C ( u , v ) > h \operatorname{dist}_{G-h\cdot C}(u,v) > h dist G − h ⋅ C ( u , v ) > h . For an h h h -length demand D D D , the h h h -length separated demand value sep h ( C , D ) \operatorname{sep}_h(C,D) sep h ( C , D ) of C C C and D D D is the total demand value between pairs of vertices the cut h h h -separates, i.e.
sep h ( C , D ) : = ∑ u , v ∈ V dist G − h ⋅ C ( u , v ) > h D ( u , v ) . \operatorname{sep}_h(C,D) := \sum_{\substack{u,v\in V\\ \operatorname{dist}_{G-h\cdot C}(u,v)>h}} D(u,v). sep h ( C , D ) := u , v ∈ V dist G − h ⋅ C ( u , v ) > h ∑ D ( u , v ) .
h h h -Length Sparsity. The h h h -length sparsity of an h h h -length moving cut C C C with respect to a demand D D D is the ratio of C C C ’s size to the h h h -length separated demand value of C C C and D D D , i.e.
spar h ( C , D ) : = ∣ C ∣ / sep h ( C , D ) . \operatorname{spar}_h(C,D) := |C|/\operatorname{sep}_h(C,D). spar h ( C , D ) := ∣ C ∣/ sep h ( C , D ) .
For a length slack s ≥ 1 s \ge1 s ≥ 1 , the ( h , s ) (h,s) ( h , s ) -length sparsity of a h s hs h s -length moving cut C C C with respect to a node weighting A A A is defined as the minimum ( h s ) (hs) ( h s ) -length sparsity of C C C with respect to any h h h -length A A A -respecting demand D D D , i.e.
spar h , s ( C , A ) : = min A -respecting , h -length D spar h s ( C , D ) . \operatorname{spar}_{h,s}(C,A) := \min_{\substack{A\text{-respecting},\ h\text{-length }D}} \operatorname{spar}_{hs}(C,D). spar h , s ( C , A ) := A -respecting , h -length D min spar h s ( C , D ) .
We say a moving cut C C C is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -sparse with respect to A A A if spar h , s ( C , A ) ≤ ϕ \operatorname{spar}_{h,s}(C,A) \le\phi spar h , s ( C , A ) ≤ ϕ .
Length-Constrained Expansion. For a length h h h , a length slack s ≥ 1 s \ge1 s ≥ 1 and a sparsity ϕ \phi ϕ , a graph G G G is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -expanding for a node weighting A A A if there exists no ( h s ) (hs) ( h s ) -length cut C C C that has ( h , s ) (h,s) ( h , s ) -length sparsity with respect to A A A strictly less than ϕ \phi ϕ , i.e. the following is satisfied:
ϕ ≤ min ( h s -length cut C spar h , s ( C , A ) . \phi\le\min_{\text{(}hs\text{-length cut }C} \operatorname{spar}_{h,s}(C,A). ϕ ≤ ( h s -length cut C min spar h , s ( C , A ) .
In this case, we equivalently say A A A is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G G G , or G G G is an ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex expander w.r.t. A A A .
Length-Constrained Flows. A multicommodity flow F F F in G G G is a function that assigns a flow value F ( P ) ≥ 0 F(P) \ge0 F ( P ) ≥ 0 to each simple path P P P in G G G . A path P P P is a flow path of F F F if F ( P ) > 0 F(P) > 0 F ( P ) > 0 , i.e. P ∈ supp ( F ) P \in\operatorname{supp}(F) P ∈ supp ( F ) . The value ∣ F ∣ |F| ∣ F ∣ of the flow is the total flow across all paths, i.e. ∣ F ∣ = ∑ P F ( P ) |F| = \sum_{P} F(P) ∣ F ∣ = ∑ P F ( P ) .
The vertex congestion cong F ( e ) \operatorname{cong}_{F}(e) cong F ( e ) of a vertex is the ratio of total flow of paths using v v v , i.e. cong F ( e ) : = ∑ v ∈ P F ( P ) \operatorname{cong}_{F}(e) := \sum_{v \in P} F(P) cong F ( e ) := ∑ v ∈ P F ( P ) , and the vertex congestion of the flow is the maximum congestion of any vertex. The length of the flow is the maximum length leng G ( P ) \operatorname{leng}_{G}(P) leng G ( P ) of a flow path P ∈ supp ( F ) P \in\operatorname{supp}(F) P ∈ supp ( F ) of F F F . A flow may be referred to as congestion-η \eta η and length-h h h even if it has congestion at most η \eta η and length at most h h h .
The demand routed by the flow D F D_{F} D F is the demand where D F ( u , v ) = ∑ P a ( u , v ) -path F ( P ) D_{F}(u,v) = \sum_{P\text{ a }(u,v)\text{-path}} F(P) D F ( u , v ) = ∑ P a ( u , v ) -path F ( P ) , i.e. the ( u , v ) (u,v) ( u , v ) -demand is the total flow from u u u to v v v . A demand D D D is said to be routable with congestion η \eta η and length h h h if there exists a congestion-η \eta η , length-h h h flow F F F routing D D D (i.e. D = D F D = D_{F} D = D F ).
Routing Characterization of Length-Constrained Vertex Expanders.
Theorem 3.3 (Theorem 4.2 in [HLSW25]). For any graph G G G , node weighting A A A , length h ≥ 1 h \ge1 h ≥ 1 , length slack s ≥ 1 s \ge1 s ≥ 1 and sparsity ϕ < 1 \phi< 1 ϕ < 1 , the following hold:
If A A A is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G G G , then any h h h -length A A A -respecting demand on G G G can be routed with vertex congestion O ( log ( n ) / ϕ ) O(\log(n)/\phi) O ( log ( n ) / ϕ ) and length h s hs h s .
If A A A is not ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G G G , then there exists a h h h -length A A A -respecting demand on G G G that cannot be routed with congestion 1 / ( 6 ϕ ) 1/(6\phi) 1/ ( 6 ϕ ) and length ( h s ) / 2 (hs)/2 ( h s ) /2 .
Length-Constrained (LC) Vertex-Expander Decompositions.
Definition 3.4 (LC Vertex-Expander Decomposition). Given a graph G G G with length function ℓ \ell ℓ , a node weighting A A A , a length parameter h ≥ 1 h \ge1 h ≥ 1 , and a sparsity parameter 0 < ϕ < 1 0 < \phi< 1 0 < ϕ < 1 , an ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expander decomposition w.r.t. A A A with length slack s s s and cut slack κ \kappa κ is an ( h s ) (hs) ( h s ) -length moving cut C C C of size at most κ ⋅ ϕ ∣ A ∣ \kappa\cdot\phi|A| κ ⋅ ϕ ∣ A ∣ such that A A A is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G − ( h s ) ⋅ C G - (hs) \cdot C G − ( h s ) ⋅ C .
Theorem 3.5 (Existence of LC Vertex-Expander Decompositions, Theorem 4.1 in [HLSW25]). Let G G G be a graph with node-weighting A A A . Given a length parameter h ≥ 1 h \ge1 h ≥ 1 , a length slack s s s and a sparsity parameter 0 < ϕ < 1 0 < \phi< 1 0 < ϕ < 1 , there exists an ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex expander decomposition C C C of A A A in G G G with cut slack
κ = n O ( 1 / s ) ⋅ log n . \kappa= n^{O(1/s)} \cdot\log n. κ = n O ( 1/ s ) ⋅ log n .
Theorem 3.6 (Polynomial-Time Construction). Let G G G be a graph with node-weighting A A A . Given a length parameter h ≥ 1 h \ge1 h ≥ 1 , a length slack s s s which is at least some constant and a sparsity parameter 0 < ϕ < 1 0 < \phi< 1 0 < ϕ < 1 , there exists an algorithm that computes an ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex expander decomposition C C C of A A A in G G G with cut slack
κ = n O ( 1 / s ) ⋅ O ~ ( 1 ) . \kappa= n^{O(1/\sqrt{s})} \cdot\widetilde{O}(1). κ = n O ( 1/ s ) ⋅ O ( 1 ) . The algorithm runs in $\operatorname{poly}(n,h) time and it is deterministic.
The above Theorem 3.6 states that an LC vertex-expander decomposition can be computed in polynomial time, but with slightly worse cut slack compared to the existential result. Although this constructive result does not appear explicitly in the literature, it follows by a straightforward generalization of the polynomial-time construction for LC edge-expander decompositions. We refer to [HLRS26] for a proof of the latter. We sketch the proof of Theorem 3.6, highlighting the modifications needed relative to the proof in [HLRS26] in Appendix A rather than giving a complete argument.
Weakly LC Vertex-Expanding.
Definition 3.7 (Weakly LC-Vertex Expanding). Consider two graphs G ′ G' G ′ and G G G that differ only in their length functions ℓ ′ \ell' ℓ ′ and ℓ \ell ℓ . A node weighting A A A is weakly ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -expanding w.r.t. G ′ G' G ′ and G G G if any h h h -length A A A -respecting demand on G ′ G' G ′ can be routed in G G G with vertex congestion O ( log n / ϕ ) O(\log n/\phi) O ( log n / ϕ ) and length h s hs h s .
In fact, in the following sections, we only use this definition with G G G as the input graph. In other words, when we say A A A is weakly ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -expanding in G ′ G' G ′ , it means A A A is weakly expanding w.r.t. G ′ G' G ′ and G G G .
We note that, in contrast to saying that A A A is (strongly) ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G ′ G' G ′ (according to the routing characterization Theorem 3.3 ), the weak variant here considers h h h -length A A A -respecting demands on G ′ G' G ′ , but only requires routability in G G G (rather than in G ′ G' G ′ as in the strong variant). In other words, A A A remains weakly expanding under arbitrary length increases to G ′ G' G ′ . This property generally does not hold for the strong variant.
Length-Constrained Vertex-Expander Routing
Lemma 3.8 (Expander Routing). Let G G G be a graph with length function ℓ \ell ℓ , and a node weighting A A A that is (strongly) ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -vertex-expanding in G G G . Given parameters h h h , ϕ \phi ϕ and an h h h -length A A A -respecting demand D D D , there is an algorithm that computes an integral flow F F F that routes D D D in G G G with length h s hs h s and vertex congestion γ = O ~ ( 1 / ϕ ) \gamma= \widetilde{O}(1/\phi) γ = O ( 1/ ϕ ) . The algorithm runs in poly ( n , h ) \operatorname{poly}(n,h) poly ( n , h ) time and it is deterministic.
The above lemma on LC vertex-expander routing, although not stated explicitly in the literature, is a straightforward corollary of the multi-commodity length-constrained cutmatches in [26 ] . We includes a proof of Lemma 3.8 in Appendix § 8 for completeness.
We note that the above integral flow F F F is outputted in its path representation , which includes each flow path P P P explicitly and its flow value F ( P ) F(P) F ( P ) .
Sparse Neighborhood Covers
Definition 3.9 (Sparse Neighborhood Covers). Let G G G be a graph with length function ℓ \ell ℓ . A cluster S S S is a subset of vertices. A (sparse) neighborhood cover N \mathcal{N} N is a collection of clusters. A neighborhood cover N \mathcal{N} N has covering radius h c o v h_{\mathrm{cov}} h cov , (strong) diameter h d i a m h_{\mathrm{diam}} h diam , width/load ω \omega ω , if it satisfies the following.
For each vertex v v v , its h c o v h_{\mathrm{cov}} h cov -neighborhood, i.e. the set { u ∣ dist G ( u , v ) ≤ h c o v } \{u \mid\operatorname{dist}_G(u,v) \le h_{\mathrm{cov}}\} { u ∣ dist G ( u , v ) ≤ h cov } , is fully contained in some cluster in N \mathcal{N} N . We use N ( v ) \mathcal{N}(v) N ( v ) to denote this cluster.
Each cluster S ∈ N S \in\mathcal{N} S ∈ N has strong diameter at most h d i a m h_{\mathrm{diam}} h diam , i.e. diam G [ S ] ( S ) ≤ h d i a m \operatorname{diam}_{G[S]}(S) \le h_{\mathrm{diam}} diam G [ S ] ( S ) ≤ h diam .
Each vertex v v v is inside at most ω \omega ω clusters.
Theorem 3.10 (Constructive Sparse Neighborhood Covers [2 ] ). Let G G G be a graph with length function ℓ \ell ℓ . Given a length parameter h ≥ 1 h \ge1 h ≥ 1 and a length slack s ≥ 1 s \ge1 s ≥ 1 , there is an algorithm that
The algorithm runs in poly ( n ) \operatorname{poly}(n) poly ( n ) time and it is deterministic.
We note that in fact the sparse neighborhood cover algorithm in [2 ] runs in nearly linear time.
Vertex-Failure Approximate Distance Oracles
In this section, we present our vertex-failure approximate distance oracles result, as stated below.
Theorem 4.1. Let G G G be an undirected graph with integral, nonnegative, polynomially bounded edge and vertex lengths ℓ \ell ℓ . Given parameters f ≥ 1 f \ge1 f ≥ 1 and k ≥ 1 k \ge1 k ≥ 1 , there is a data structure that supports the following operations.
(Update) Set the set of failed vertices to some given F ⊆ V F \subseteq V F ⊆ V of size at most f f f .
(Query) Given two vertices x , y x,y x , y , outputs their approximate distance under the current failed set F F F , i.e., a value d d d such that
dist G ∖ F ( x , y ) ≤ d ≤ s ⋅ dist G ∖ F ( x , y ) . \operatorname{dist}_{G \setminus F}(x,y) \le d \le s \cdot\operatorname{dist}_{G \setminus F}(x,y). dist G ∖ F ( x , y ) ≤ d ≤ s ⋅ dist G ∖ F ( x , y ) . The approximation is s = O ( k 6 ) s = O(k^6) s = O ( k 6 ) for a polynomial-time construction, and s = O ( k 5 ) s = O(k^5) s = O ( k 5 ) for an exponential-time construction. The data structure takes O ~ ( f 2 ⋅ n 1 + 1 / k ) \widetilde{O}(f^2 \cdot n^{1+1/k}) O ( f 2 ⋅ n 1 + 1/ k ) space, O ~ ( f 5 ⋅ n 1 / k ) \widetilde{O}(f^5 \cdot n^{1/k}) O ( f 5 ⋅ n 1/ k ) update time, and O ~ ( f ) \widetilde{O}(f) O ( f ) query time. Moreover, the data structure is randomized which can answer each query correctly with probability 1 − n − 10 1 - n^{-10} 1 − n − 10 .
At the very beginning, we first replace the input graph G G G by an f f f -vertex-fault-tolerant spanner. In [Par22], there is an randomized algorithm that computes w.h.p. an f f f -vertex-fault-tolerant spanner with stretch 2 k − 1 2k - 1 2 k − 1 and size O ~ ( f 1 − 1 / k ⋅ n 1 + 1 / k ) \widetilde{O}(f^{1-1/k} \cdot n^{1+1/k}) O ( f 1 − 1/ k ⋅ n 1 + 1/ k ) in time O ~ ( m ) \widetilde{O}(m) O ( m ) . This step will increase the approximation by a multiplicative factor of 2 k − 1 2k - 1 2 k − 1 , and the construction time by an additive factor of O ~ ( m ) \widetilde{O}(m) O ( m ) . Throughout this section, we assume the input graph G G G is this spanner.
We first introduce some building blocks in § 4.1 . In § 4.3 , we will define the query graph Q Q Q . In § 4.5 , we will show how to answer queries assuming the query graph and its all-pair distances are given. Lastly, in § 4.7 , we construct the oracle and discuss the update algorithm for computing Q Q Q and its all-pair distances. We give a proof of Theorem 4.1 in Section 4.5, which includes pointer to each individual lemmas.
Building Blocks
We first define some parameters as follows.
Basic Parameters. Define based length scales
{ h α = 2 α ∣ 1 ≤ α ≤ α max } , \{h_\alpha= 2^\alpha\mid1 \le\alpha\le\alpha_{\max}\}, { h α = 2 α ∣ 1 ≤ α ≤ α m a x } ,
where α max = ⌈ log ( n W ) ⌉ = O ( log n ) \alpha_{\max} = \lceil\log(nW) \rceil= O(\log n) α m a x = ⌈ log ( nW )⌉ = O ( log n ) . Recall that W = poly ( n ) W = \operatorname{poly}(n) W = poly ( n ) upper bounds the lengths in G G G .
We also define
ρ h e a v y = f ⋅ O ( log n / ϕ ) + 1 ≤ O ~ ( f ) ⋅ n O ( 1 / k ) \rho_{\mathrm{heavy}} = f \cdot O(\log n/\phi) + 1 \le\widetilde{O}(f) \cdot n^{O(1/k)} ρ heavy = f ⋅ O ( log n / ϕ ) + 1 ≤ O ( f ) ⋅ n O ( 1/ k )
for some ϕ − 1 = O ~ ( n O ( 1 / k ) ) \phi^{-1} = \widetilde{O}(n^{O(1/k)}) ϕ − 1 = O ( n O ( 1/ k ) ) defined in § 4.2 , and the constant factor behind O ( log n / ϕ ) O(\log n/\phi) O ( log n / ϕ ) is determined by the first item of Theorem 3.3 . This parameter ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy will be used in all concepts about heaviness or denseness .
The level function level ( ⋅ ) \operatorname{level}(\cdot) level ( ⋅ ) and scale function scale ( ⋅ ) \operatorname{scale}(\cdot) scale ( ⋅ ) . For any object (e.g., vertices, clusters, or Steiner trees, as introduced later) that is naturally associated with a level (we will define level in the following § 4.2 ), we use level ( ⋅ ) \operatorname{level}(\cdot) level ( ⋅ ) denote to its level. Similarly, we use scale ( ⋅ ) \operatorname{scale}(\cdot) scale ( ⋅ ) to denote its corresponding length scale (between 1 1 1 and α max \alpha_{\max} α m a x ).
LC Vertex Expander Hierarchy
Parameters for Expander Hierarchy. The parameters we define here rely on some other parameters
s n c = k , h d i a m , α = Θ ( s n c ⋅ h α ) , h ^ d i a m , α = Θ ( s n c 2 ⋅ h α ) . s_{\mathrm{nc}} = k,\qquad h_{\mathrm{diam},\alpha} = \Theta(s_{\mathrm{nc}} \cdot h_\alpha),\qquad\widehat{h}_{\mathrm{diam},\alpha} = \Theta(s_{\mathrm{nc}}^2 \cdot h_\alpha). s nc = k , h diam , α = Θ ( s nc ⋅ h α ) , h diam , α = Θ ( s nc 2 ⋅ h α ) .
which will be define in § 4.2.2 . Define length parameters { h e d , α ∣ 1 ≤ α ≤ α max } \{h_{\mathrm{ed},\alpha} \mid1 \le\alpha\le\alpha_{\max}\} { h ed , α ∣ 1 ≤ α ≤ α m a x } , length slack s e d s_{\mathrm{ed}} s ed and expansion ϕ \phi ϕ , where
h e d , α : = 5 h d i a m , α + 8 h α = Θ ( s n c ⋅ h α ) = Θ ( k ⋅ h α ) , h_{\mathrm{ed},\alpha} := 5h_{\mathrm{diam},\alpha} + 8h_\alpha= \Theta(s_{\mathrm{nc}} \cdot h_\alpha) = \Theta(k \cdot h_\alpha), h ed , α := 5 h diam , α + 8 h α = Θ ( s nc ⋅ h α ) = Θ ( k ⋅ h α ) ,
h ^ e d , α : = h ^ d i a m , α + 4 h d i a m , α + 8 h α = Θ ( s n c 2 ⋅ h α ) = Θ ( k 2 ⋅ h α ) \widehat{h}_{\mathrm{ed},\alpha} := \widehat{h}_{\mathrm{diam},\alpha} + 4h_{\mathrm{diam},\alpha} + 8h_\alpha= \Theta(s_{\mathrm{nc}}^2 \cdot h_\alpha) = \Theta(k^2 \cdot h_\alpha) h ed , α := h diam , α + 4 h diam , α + 8 h α = Θ ( s nc 2 ⋅ h α ) = Θ ( k 2 ⋅ h α )
s e d : = { k , for existence k 2 , for polynomial-time construction s_{\mathrm{ed}} :=
\begin{cases}
k, & \text{for existence}\\
k^2, & \text{for polynomial-time construction}
\end{cases} s ed := { k , k 2 , for existence for polynomial-time construction
ϕ : = 1 n 1 / k ⋅ κ e d ⋅ 3000 k ⋅ log n ⋅ s n c 2 ⋅ s e d ⋅ α max = ( O ~ ( 1 ) ⋅ n O ( 1 / k ) ) − 1 , \phi:= \frac{1}{n^{1/k} \cdot\kappa_{\mathrm{ed}} \cdot3000k \cdot\log n \cdot s_{\mathrm{nc}}^2 \cdot s_{\mathrm{ed}} \cdot\alpha_{\max}} = \left(\widetilde{O}(1) \cdot n^{O(1/k)}\right)^{-1}, ϕ := n 1/ k ⋅ κ ed ⋅ 3000 k ⋅ log n ⋅ s nc 2 ⋅ s ed ⋅ α m a x 1 = ( O ( 1 ) ⋅ n O ( 1/ k ) ) − 1 ,
where κ e d = O ~ ( 1 ) ⋅ n O ( 1 / k ) \kappa_{\mathrm{ed}} = \widetilde{O}(1) \cdot n^{O(1/k)} κ ed = O ( 1 ) ⋅ n O ( 1/ k ) by Theorem 3.5 or Theorem 3.6 and our choice of s e d s_{\mathrm{ed}} s ed . For better understanding, the reader may assume s e d = k s_{\mathrm{ed}} = k s ed = k throughout this section.
Construction. We construct an expander hierarchy H \mathcal{H} H with expansion ϕ \phi ϕ and maximum level i max i_{\max} i m a x , where i max i_{\max} i m a x will be bounded by Lemma 4.2 later. The hierarchy H \mathcal{H} H consists of pure node-weightings { A i ′ ∣ 0 ≤ i ≤ i max } \{A'_i \mid0 \le i \le i_{\max}\} { A i ′ ∣ 0 ≤ i ≤ i m a x } and vertex moving cuts { C i , α ∣ 1 ≤ i ≤ i max , 1 ≤ α ≤ α max } \{C_{i,\alpha} \mid1 \le i \le i_{\max}, 1 \le\alpha\le\alpha_{\max}\} { C i , α ∣ 1 ≤ i ≤ i m a x , 1 ≤ α ≤ α m a x } .
The construction of the hierarchy is standard. Roughly speaking, starting with the entire vertex set as the node-weighting, at each level, we perform expander decompositions on the current node-weighting, and let the new cuts be the next-level node-weighting. The only nonstandard aspect is that, at each level, we perform expander decompositions with two types of length parameters h e d , α h_{\mathrm{ed},\alpha} h ed , α and h ^ e d , α \widehat{h}_{\mathrm{ed},\alpha} h ed , α . This corresponds to the two types of neighborhood covers N i , α \mathcal{N}_{i,\alpha} N i , α and N ^ i , α \widehat{\mathcal{N}}_{i,\alpha} N i , α introduced later in § 4.2.2 . The formal construction algorithm of the hierarchy H \mathcal{H} H is as follows.
Initialization. Initialize the bottom node-weighting A 0 ′ A'_0 A 0 ′ to be V ( G ) V(G) V ( G ) .
Loop. For each level i = 1 , 2 , 3 , … i = 1, 2, 3, \ldots i = 1 , 2 , 3 , … ,
for each length scale α \alpha α , let C i , α ′ C'_{i,\alpha} C i , α ′ be an ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex expander decomposition of A i − 1 ′ A'_{i-1} A i − 1 ′ in G G G , and let C ^ i , α ′ \widehat{C}'_{i,\alpha} C i , α ′ be an ( h ^ e d , α , s e d ) (\widehat{h}_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex expander decomposition of A i − 1 ′ A'_{i-1} A i − 1 ′ in G G G . Both C i , α ′ C'_{i,\alpha} C i , α ′ and C ^ i , α ′ \widehat{C}'_{i,\alpha} C i , α ′ can be computed by Theorem 3.6 .
Modified C i , α ′ \mathit{C}'_{i,\alpha} C i , α ′ into C i , α \mathit{C}_{i,\alpha} C i , α as follows.
C i , α ( v or e ) = { C i , α ′ ( v ) + ∑ e incident to v C i , α ′ ( e ) / 2 , for vertex v , 0 , for edge e . C_{i,\alpha}(v\mathbin{\text{ or }}e)=
\begin{cases}
C'_{i,\alpha}(v)+\sum_{e\text{ incident to }v} C'_{i,\alpha}(e)/2, & \text{for vertex }v,\\
0, & \text{for edge }e.
\end{cases} C i , α ( v or e ) = { C i , α ′ ( v ) + ∑ e incident to v C i , α ′ ( e ) /2 , 0 , for vertex v , for edge e .
Obtain C ^ i , α \widehat{C}_{i,\alpha} C i , α from C ^ i , α ′ \widehat{C}'_{i,\alpha} C i , α ′ in a similar way.
Let A i ′ A'_i A i ′ be a pure node-weighting obtained by sampling each vertex v ∈ V ( G ) v\in V(G) v ∈ V ( G ) independently with probability
1500 k ⋅ log n ⋅ s n c 2 ⋅ s e d ⋅ ∑ 1 ≤ α ≤ α max ( C i , α ( v ) + C ^ i , α ( v ) ) . 1500k\cdot\log n\cdot s_{\mathrm{nc}}^2\cdot s_{\mathrm{ed}}\cdot\sum_{1\leq\alpha\leq\alpha_{\max}}\left(C_{i,\alpha}(v)+\widehat{C}_{i,\alpha}(v)\right). 1500 k ⋅ log n ⋅ s nc 2 ⋅ s ed ⋅ 1 ≤ α ≤ α m a x ∑ ( C i , α ( v ) + C i , α ( v ) ) .
Terminate. We reach the top level i max : = i i_{\max}:=i i m a x := i once A i ′ A'_i A i ′ is empty.
We make several remarks about the algorithm above. Step 1 is the main step of building the hierarchy by performing the decompositions. Step 2 moves the cut values on edges to their incident vertices, which is mainly for simplifying the analysis. For example, this ensures that when applying the modified cuts C i , α C_{i,\alpha} C i , α and C ^ i , α \widehat{C}_{i,\alpha} C i , α on G G G (i.e., the weakly expanding graphs defined in § 4.2.1 ), the edge lengths will not change. Step 3 is a sampling procedure that rounds the fractional moving cuts to integral vertex cuts. We note that this is a standard technique in the literature of LC-expanders (see e.g. [30 ] ), and this is the only randomized part of our algorithm4 . We choose the sampling rate so as to establish the following Lemma 4.2 and Lemma 4.4 .
Bounding the Number of Levels. We conclude the construction of the hierarchy by bounding its number of levels, as shown in Lemma 4.2 . The bound follows from the simple observation that the number of terminals decreases geometrically with each level.
Lemma 4.2. With probability 1 − n − 10 1-n^{-10} 1 − n − 10 , the hierarchy H \mathcal{H} H has maximum level
i max ≤ 15 k . i_{\max}\leq15k. i m a x ≤ 15 k .
Proof. For each level i ≥ 1 i\geq1 i ≥ 1 , by Theorem 3.5 , we have
∣ C i , α ∣ = ∣ C i , α ′ ∣ ≤ κ e d ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ , |C_{i,\alpha}|=|C'_{i,\alpha}|\leq\kappa_{\mathrm{ed}}\cdot\phi\cdot|A'_{i-1}|, ∣ C i , α ∣ = ∣ C i , α ′ ∣ ≤ κ ed ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ ,
and similarly ∣ C ^ i , α ∣ ≤ κ e d ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ |\widehat{C}_{i,\alpha}|\leq\kappa_{\mathrm{ed}}\cdot\phi\cdot|A'_{i-1}| ∣ C i , α ∣ ≤ κ ed ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ .
By the construction of A i ′ A'_i A i ′ , in expectation, we have
∣ A i ′ ∣ ≤ 1500 k ⋅ log n ⋅ s n c 2 ⋅ s e d ⋅ ∑ α ( ∣ C i , α ∣ + ∣ C ^ i , α ∣ ) |A'_i|\leq1500k\cdot\log n\cdot s_{\mathrm{nc}}^2\cdot s_{\mathrm{ed}}\cdot\sum_{\alpha}\left(|C_{i,\alpha}|+|\widehat{C}_{i,\alpha}|\right) ∣ A i ′ ∣ ≤ 1500 k ⋅ log n ⋅ s nc 2 ⋅ s ed ⋅ α ∑ ( ∣ C i , α ∣ + ∣ C i , α ∣ )
≤ 3000 k ⋅ log n ⋅ α max ⋅ s n c 2 ⋅ s e d ⋅ κ e d ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ ≤ ∣ A i − 1 ′ ∣ / n 1 / k . \begin{aligned}
\leq3000k\cdot\log n\cdot\alpha_{\max}\cdot s_{\mathrm{nc}}^2\cdot s_{\mathrm{ed}}\cdot\kappa_{\mathrm{ed}}\cdot\phi\cdot|A'_{i-1}| \\
&\leq|A'_{i-1}|/n^{1/k}.
\end{aligned} ≤ 3000 k ⋅ log n ⋅ α m a x ⋅ s nc 2 ⋅ s ed ⋅ κ ed ⋅ ϕ ⋅ ∣ A i − 1 ′ ∣ ≤ ∣ A i − 1 ′ ∣/ n 1/ k .
Therefore, in expectation, we have ∣ A 12 k ′ ∣ ≤ n − 11 |A'_{12k}|\leq n^{-11} ∣ A 12 k ′ ∣ ≤ n − 11 . By Markov, ∣ A 12 k ′ ∣ < 1 |A'_{12k}|<1 ∣ A 12 k ′ ∣ < 1 , i.e., ∣ A 12 k ′ ∣ = 0 |A'_{12k}|=0 ∣ A 12 k ′ ∣ = 0 , with probability at least 1 − n − 10 1-n^{-10} 1 − n − 10 . Thus, we can conclude that i max ≤ 12 k i_{\max}\leq12k i m a x ≤ 12 k .
The Expanding Graphs
Next, we define two classes of graphs obtained by applying the moving cuts in the hierarchy: strongly expanding graphs and weakly expanding graphs. Weakly expanding graphs are more central, and we will work with them throughout, except when constructing low-degree Steiner trees (§ 4.2.3 ).
The Strongly Expanding Graphs. For each level i ∈ [ 0 , i max ] i \in[0,i_{\max}] i ∈ [ 0 , i m a x ] and length scale α ∈ [ 1 , α max ] \alpha\in[1,\alpha_{\max}] α ∈ [ 1 , α m a x ] , define
G i , α ⋆ : = G − ( h e d , α ⋅ s e d ) ⋅ C i , α ′ . G^\star_{i,\alpha} := G - (h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}}) \cdot C'_{i,\alpha}. G i , α ⋆ := G − ( h ed , α ⋅ s ed ) ⋅ C i , α ′ .
By Theorem 3.6 , A i − 1 ′ A'_{i-1} A i − 1 ′ is strong ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G i , α ⋆ G^\star_{i,\alpha} G i , α ⋆ . The only reason we need strongly expanding graphs in the construction of low-degree Steiner trees is that the expander-routing result in Lemma 3.8 applies only to such graphs.
The Weakly Expanding Graphs. Before defining the weakly expanding graphs, we first define the terminals { A i ∣ 0 ≤ i ≤ i max } \{A_i \mid0 \le i \le i_{\max}\} { A i ∣ 0 ≤ i ≤ i m a x } . For each level i ∈ [ 0 , i max ] i \in[0,i_{\max}] i ∈ [ 0 , i m a x ] , define the level-i i i terminals to be
A i : = A i ′ ∖ A > i ′ . A_i := A'_i \setminus A'_{>i}. A i := A i ′ ∖ A > i ′ .
We introduce the new terminal sets { A i } \{A_i\} { A i } , rather than using the old pure node-weightings { A i ′ } \{A'_i\} { A i ′ } , is because we want to partition the vertices into distinct levels. Formally speaking, { A i ∣ 0 ≤ i ≤ i max } \{A_i \mid0 \le i \le i_{\max}\} { A i ∣ 0 ≤ i ≤ i m a x } forms a partition of V V V , so naturally, for each vertex v ∈ V v \in V v ∈ V , its level( v ) (v) ( v ) is the unique level i i i with A i ∋ v A_i \ni v A i ∋ v .
Now we define the weakly expanding graphs. For each length scale α ∈ [ 1 , α max ] \alpha\in[1,\alpha_{\max}] α ∈ [ 1 , α m a x ] , define the level-i i i scale-α \alpha α expanding graph to be
G i , α : = G − ( ( h e d , α ⋅ s e d ) ⋅ C > i + ( h ^ e d , α ⋅ s e d ) ⋅ C ^ > i ) G_{i,\alpha} := G - \left((h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}}) \cdot C_{>i} + (\hat{h}_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}}) \cdot\widehat{C}_{>i}\right) G i , α := G − ( ( h ed , α ⋅ s ed ) ⋅ C > i + ( h ^ ed , α ⋅ s ed ) ⋅ C > i )
where C > i = ∑ i ′ > i , α C i ′ , α ′ C_{>i} = \sum_{i'>i,\alpha} C'_{i',\alpha} C > i = ∑ i ′ > i , α C i ′ , α ′ and C ^ > i = ∑ i ′ > i , α C ^ i ′ , α ′ \widehat{C}_{>i} = \sum_{i'>i,\alpha} \widehat{C}'_{i',\alpha} C > i = ∑ i ′ > i , α C i ′ , α ′ . This graph G i , α G_{i,\alpha} G i , α is weakly expanding as formalized in Observation 4.3.
Observation 4.3 (Weakly Expanding). For each level i i i and length scale α \alpha α , A i A_i A i is weakly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding and also weakly ( h ^ e d , α , s e d ) (\hat{h}_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ^ ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G i , α G_{i,\alpha} G i , α .
Proof. We focus on proving that A i A_i A i is weakly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G i , α G_{i,\alpha} G i , α , and the proof of the second half is identical.
Recall that A i ′ A'_i A i ′ is strongly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G − ( h e d , α ⋅ s e d ) ⋅ C i + 1 , α ′ G-(h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}})\cdot C'_{i+1,\alpha} G − ( h ed , α ⋅ s ed ) ⋅ C i + 1 , α ′ , i.e. the strongly expanding graph G i , α ⋆ G^\star_{i,\alpha} G i , α ⋆ . Now, observe that A i ⊆ A i ′ A_i \subseteq A'_i A i ⊆ A i ′ and that distances in G i , α G_{i,\alpha} G i , α are no smaller than the corresponding distances in G i , α ⋆ G^\star_{i,\alpha} G i , α ⋆ , so A i A_i A i is weakly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G i , α G_{i,\alpha} G i , α by Definition 3.7 .
After defining the weakly expanding graphs, Lemma 4.4 shows that the terminal set A > i A_{>i} A > i can be viewed as an integral analogue of the moving cuts C > i C_{>i} C > i and C ^ > i \widehat{C}_{>i} C > i . More precisely, for any path disjoint from A > i A_{>i} A > i (or equivalently, any path that survives the integral cut A > i A_{>i} A > i ), with high probability, it has length in G i , α G_{i,\alpha} G i , α at most an additive h α h_\alpha h α larger than its length in the original graph G G G . Thus, such a path is cut only slightly by the moving cuts C > i C_{>i} C > i and C ^ > i \widehat{C}_{>i} C > i . In fact, Lemma 4.4 fixes a path P P P in advance and shows that the above statement holds simultaneously for all subpaths P ′ P' P ′ of P P P with high probability using a standard union bound. When we apply Lemma 4.4 in the analysis of the query algorithm, the path P P P will be chosen as an optimal shortest path.
Lemma 4.4. Fix a path P P P in G G G . The following events happen simultaneously with probability 1 − n − 10 1-n^{-10} 1 − n − 10 . For all levels i i i , length scales α \alpha α and all subpaths P ′ P' P ′ of P P P , if P ′ P' P ′ is disjoint from A > i A_{>i} A > i , then
leng G i , α ( P ′ ) ≤ leng G ( P ′ ) + h α ⋅ i max − i i max . \operatorname{leng}_{G_{i,\alpha}}(P') \le\operatorname{leng}_{G}(P') + h_{\alpha} \cdot\frac{i_{\max}-i}{i_{\max}}. leng G i , α ( P ′ ) ≤ leng G ( P ′ ) + h α ⋅ i m a x i m a x − i .
Proof. We first show that with probability 1 − n − 10 1-n^{-10} 1 − n − 10 , for all levels i ∈ [ 1 , i max ] i \in[1,i_{\max}] i ∈ [ 1 , i m a x ] and subpaths P ′ P' P ′ such that
C i + 1 ( P ′ ) > 1 10 ⋅ s n c 2 ⋅ s e d ⋅ i max or C ^ i + 1 ( P ′ ) > 1 10 ⋅ s n c 2 ⋅ s e d ⋅ i max , C_{i+1}(P') > \frac{1}{10 \cdot s_{\mathrm{nc}}^{2} \cdot s_{\mathrm{ed}} \cdot i_{\max}}
\qquad\text{or}\qquad
\widehat{C}_{i+1}(P') > \frac{1}{10 \cdot s_{\mathrm{nc}}^{2} \cdot s_{\mathrm{ed}} \cdot i_{\max}}, C i + 1 ( P ′ ) > 10 ⋅ s nc 2 ⋅ s ed ⋅ i m a x 1 or C i + 1 ( P ′ ) > 10 ⋅ s nc 2 ⋅ s ed ⋅ i m a x 1 ,
we have P ′ P' P ′ intersects A i ′ A'_i A i ′ . Recall that a vertex v v v is sampled into A i ′ A'_i A i ′ with probability
1500 k ⋅ log n ⋅ s n c 2 ⋅ s e d ⋅ ∑ 1 ≤ α ≤ α max ( C i , α ( v ) + C ^ i , α ( v ) ) . 1500k \cdot\log n \cdot s_{\mathrm{nc}}^{2} \cdot s_{\mathrm{ed}} \cdot\sum_{1 \le\alpha\le\alpha_{\max}} \left(C_{i,\alpha}(v) + \widehat{C}_{i,\alpha}(v)\right). 1500 k ⋅ log n ⋅ s nc 2 ⋅ s ed ⋅ 1 ≤ α ≤ α m a x ∑ ( C i , α ( v ) + C i , α ( v ) ) .
It means A i ′ ∩ P A'_i \cap P A i ′ ∩ P has expected size E [ ∣ A i ′ ∩ P ∣ ] ≥ 10 log n E[|A'_i \cap P|] \ge10 \log n E [ ∣ A i ′ ∩ P ∣ ] ≥ 10 log n (recall that i max ≤ 15 k i_{\max} \le15k i m a x ≤ 15 k ). By Chernoff, A i ′ A'_i A i ′ intersects P P P with probability 1 − n − 13 1-n^{-13} 1 − n − 13 . Applying the union bound on all i i i and P ′ P' P ′ gives what we want.
The original lemma is a simple corollary of the above. To prove it, we use induction on the levels. The inequality holds for the level i = i max i=i_{\max} i = i m a x , all scales α \alpha α and all subpaths P ′ P' P ′ disjoint from A > i A_{>i} A > i , because G i max , α = G G_{i_{\max},\alpha}=G G i m a x , α = G . Now, consider a level i < i max i<i_{\max} i < i m a x , length scale α \alpha α , and a subpath P ′ P' P ′ disjoint from A > i A_{>i} A > i . We have
leng G i , α ( P ′ ) = leng G i + 1 , α ( P ′ ) + h e d , α ⋅ s e d ⋅ C i + 1 ( P ′ ) + h ^ e d , α ⋅ s e d ⋅ C ^ i + 1 ( P ′ ) ≤ leng G ( P ′ ) + h α ⋅ i max − i − 1 i max + 10 ⋅ h α ⋅ s n c 2 ⋅ s e d ⋅ ( C i + 1 ( P ′ ) + C ^ i + 1 ( P ′ ) ) ≤ leng G ( P ′ ) + h α ⋅ i max − i i max . \begin{aligned}
\operatorname{leng}_{G_{i,\alpha}}(P') &= \operatorname{leng}_{G_{i+1,\alpha}}(P') + h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}\cdot C_{i+1}(P') + \widehat{h}_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}\cdot\widehat{C}_{i+1}(P') \\
&\le\operatorname{leng}_{G}(P') + h_{\alpha}\cdot\frac{i_{\max}-i-1}{i_{\max}} + 10\cdot h_{\alpha}\cdot s_{\mathrm{nc}}^{2}\cdot s_{\mathrm{ed}}\cdot\left(C_{i+1}(P')+\widehat{C}_{i+1}(P')\right) \\
&\le\operatorname{leng}_{G}(P') + h_{\alpha}\cdot\frac{i_{\max}-i}{i_{\max}}.
\end{aligned} leng G i , α ( P ′ ) = leng G i + 1 , α ( P ′ ) + h ed , α ⋅ s ed ⋅ C i + 1 ( P ′ ) + h ed , α ⋅ s ed ⋅ C i + 1 ( P ′ ) ≤ leng G ( P ′ ) + h α ⋅ i m a x i m a x − i − 1 + 10 ⋅ h α ⋅ s nc 2 ⋅ s ed ⋅ ( C i + 1 ( P ′ ) + C i + 1 ( P ′ ) ) ≤ leng G ( P ′ ) + h α ⋅ i m a x i m a x − i .
The first inequality is by the induction hypothesis, h e d , α = h α ⋅ s n c h_{\mathrm{ed},\alpha}=h_{\alpha}\cdot s_{\mathrm{nc}} h ed , α = h α ⋅ s nc and h ^ e d , α = h α ⋅ s n c 2 \widehat{h}_{\mathrm{ed},\alpha}=h_{\alpha}\cdot s_{\mathrm{nc}}^{2} h ed , α = h α ⋅ s nc 2 . The second inequality is by C i + 1 ( P ′ ) , C ^ i + 1 ( P ′ ) ≤ 1 / ( 10 ⋅ s n c 2 ⋅ s e d ⋅ i max ) C_{i+1}(P'),\widehat{C}_{i+1}(P') \le1/(10\cdot s_{\mathrm{nc}}^{2}\cdot s_{\mathrm{ed}}\cdot i_{\max}) C i + 1 ( P ′ ) , C i + 1 ( P ′ ) ≤ 1/ ( 10 ⋅ s nc 2 ⋅ s ed ⋅ i m a x ) .
Lastly, we conclude with two additional observations about weakly expanding graphs. Observation 4.5 states that, all uncut vertices in A ≤ i A_{\le i} A ≤ i have small vertex length in the weakly expanding graph G i , α G_{i,\alpha} G i , α (if A > i A_{>i} A > i is viewed as an integral vertex cut). Moreover, the edge lengths remain unchanged from the original graph G G G to the weakly expanding graph G i , α G_{i,\alpha} G i , α .
Observation 4.5. For each G i , α G_{i,\alpha} G i , α , any vertex v ⊆ A ≤ i v \subseteq A_{\le i} v ⊆ A ≤ i has vertex length ℓ G i , α ( v ) ≤ h α \ell_{G_{i,\alpha}}(v) \le h_{\alpha} ℓ G i , α ( v ) ≤ h α , and any edge e e e has edge length ℓ G i , α ( e ) = ℓ G ( e ) \ell_{G_{i,\alpha}}(e)=\ell_G(e) ℓ G i , α ( e ) = ℓ G ( e ) .
Proof. First we show that a vertex v ⊆ A ≤ i v \subseteq A_{\le i} v ⊆ A ≤ i has ℓ G i , α ( v ) ≤ h α \ell_{G_{i,\alpha}}(v) \le h_{\alpha} ℓ G i , α ( v ) ≤ h α . Assume the contrary. Then for some i ′ > i i'>i i ′ > i , ∑ α C i ′ , α ′ ( v ) ⋅ ( h e d , α ⋅ s e d ) ≥ h α / i max \sum_{\alpha} C'_{i',\alpha}(v)\cdot(h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}) \ge h_{\alpha}/i_{\max} ∑ α C i ′ , α ′ ( v ) ⋅ ( h ed , α ⋅ s ed ) ≥ h α / i m a x , but then v v v will be sampled in A i ′ ′ A'_{i'} A i ′ ′ with probability 1 1 1 , a contradiction. The statement on edge length is by our definition of cuts C C C and C ^ \widehat{C} C .
The following Observation 4.6 states that for two weakly expanding graphs G i 1 , α 1 G_{i_1,\alpha_1} G i 1 , α 1 and G i 2 , α 2 G_{i_2,\alpha_2} G i 2 , α 2 , if G i 1 , α 1 G_{i_1,\alpha_1} G i 1 , α 1 has both level and length scale at least those of G i 2 , α 2 G_{i_2,\alpha_2} G i 2 , α 2 , then its vertex and edge lengths, normalized by the corresponding length scale, are no larger. The proof follows directly from the definitions and is therefore omitted. This observation is particularly useful for exploiting the LC-expansion property across different weakly expanding graphs.
Observation 4.6 (Scale Changing). For each level i 1 ≥ i 2 i_1 \ge i_2 i 1 ≥ i 2 and length scale α 1 ≥ α 2 \alpha_1 \ge\alpha_2 α 1 ≥ α 2 , we have
ℓ G i 1 , α 1 ( ⋅ ) ≤ ( h α 1 / h α 2 ) ⋅ ℓ G i 2 , α 2 ( ⋅ ) . \ell_{G_{i_1,\alpha_1}}(\cdot) \le(h_{\alpha_1}/h_{\alpha_2})\cdot\ell_{G_{i_2,\alpha_2}}(\cdot). ℓ G i 1 , α 1 ( ⋅ ) ≤ ( h α 1 / h α 2 ) ⋅ ℓ G i 2 , α 2 ( ⋅ ) .
The Neighborhood Covers
Parameters for Neighborhood Covers. For each length scale α \alpha α , define parameters
s n c = k , s_{\mathrm{nc}} = k, s nc = k ,
ω = O ( n 1 / s n c ⋅ s n c ) = O ~ ( n 1 / k ) , \omega= O(n^{1/s_{\mathrm{nc}}} \cdot s_{\mathrm{nc}}) = \widetilde{O}(n^{1/k}), ω = O ( n 1/ s nc ⋅ s nc ) = O ( n 1/ k ) ,
h c o v , α = 2 ⋅ h α , h d i a m , α = h c o v , α ⋅ s n c = Θ ( k ⋅ h α ) , h_{\mathrm{cov},\alpha} = 2 \cdot h_\alpha, \qquad h_{\mathrm{diam},\alpha} = h_{\mathrm{cov},\alpha} \cdot s_{\mathrm{nc}} = \Theta(k \cdot h_\alpha), h cov , α = 2 ⋅ h α , h diam , α = h cov , α ⋅ s nc = Θ ( k ⋅ h α ) ,
h ^ c o v , α = 3 ⋅ h d i a m , α = Θ ( k ⋅ h α ) , h ^ d i a m , α = h ^ c o v , α ⋅ s n c = Θ ( k 2 ⋅ h α ) . \widehat{h}_{\mathrm{cov},\alpha} = 3 \cdot h_{\mathrm{diam},\alpha} = \Theta(k \cdot h_\alpha), \qquad\widehat{h}_{\mathrm{diam},\alpha} = \widehat{h}_{\mathrm{cov},\alpha} \cdot s_{\mathrm{nc}} = \Theta(k^2 \cdot h_\alpha). h cov , α = 3 ⋅ h diam , α = Θ ( k ⋅ h α ) , h diam , α = h cov , α ⋅ s nc = Θ ( k 2 ⋅ h α ) .
Construction. For each level i ∈ [ 0 , i max ] i \in[0, i_{\max}] i ∈ [ 0 , i m a x ] and length scale α ∈ [ 1 , α max ] \alpha\in[1, \alpha_{\max}] α ∈ [ 1 , α m a x ] , construct the following using Theorem 3.10 .
Construct a neighborhood cover N i , α \mathcal{N}_{i,\alpha} N i , α in G i , α G_{i,\alpha} G i , α with covering radius h c o v , α h_{\mathrm{cov},\alpha} h cov , α , diameter h d i a m , α h_{\mathrm{diam},\alpha} h diam , α and width ω \omega ω . Also for each vertex v v v , identify a cluster N i , α ( v ) ∈ N i , α \mathcal{N}_{i,\alpha}(v) \in\mathcal{N}_{i,\alpha} N i , α ( v ) ∈ N i , α that fully contains the h c o v , α h_{\mathrm{cov},\alpha} h cov , α -neighborhood of v v v in G i , α G_{i,\alpha} G i , α .
Construct a satellite neighborhood cover N ^ i , α \widehat{\mathcal{N}}_{i,\alpha} N i , α in G i , α G_{i,\alpha} G i , α with covering radius h ^ c o v , α \widehat{h}_{\mathrm{cov},\alpha} h cov , α , diameter h ^ d i a m , α \widehat{h}_{\mathrm{diam},\alpha} h diam , α and width ω \omega ω . Similarly, for each vertex v v v , identify a satellite cluster N ^ i , α ( v ) ∈ N ^ i , α \widehat{\mathcal{N}}_{i,\alpha}(v) \in\widehat{\mathcal{N}}_{i,\alpha} N i , α ( v ) ∈ N i , α containing v v v ’s h ^ c o v , α \widehat{h}_{\mathrm{cov},\alpha} h cov , α -neighborhood.
Whenever we refer to a cluster S S S , we mean a cluster in some cluster N i , α \mathcal{N}_{i,\alpha} N i , α . By contrast, any S ^ ∈ N ^ i , α \widehat{S} \in\widehat{\mathcal{N}}_{i,\alpha} S ∈ N i , α will be explicitly called a satellite cluster . We explain the intuition behind satellite neighborhood covers in Observation 4.8, after introducing the necessary notation.
Notations. For each cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , we define its terminal vertices to be
V t m n ( S ) : = S ∩ A i . V_{\mathrm{tmn}}(S) := S \cap A_i. V tmn ( S ) := S ∩ A i .
We also pick an arbitrary vertex in S S S , denoted by pivot ( S ) \operatorname{pivot}(S) pivot ( S ) , as its pivot .
For each level i i i , length scale α \alpha α , and cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , and for every level i ′ > i i' > i i ′ > i and length scale α ′ ≥ α \alpha' \ge\alpha α ′ ≥ α , we assign to S S S the satellite cluster N ^ i ′ , α ′ ( pivot ( S ) ) \widehat{\mathcal{N}}_{i',\alpha'}(\operatorname{pivot}(S)) N i ′ , α ′ ( pivot ( S )) , which we denote by
Stl i ′ , α ′ ( S ) : = N ^ i ′ , α ′ ( pivot ( S ) ) . \operatorname{Stl}_{i',\alpha'}(S) := \widehat{\mathcal{N}}_{i',\alpha'}(\operatorname{pivot}(S)). Stl i ′ , α ′ ( S ) := N i ′ , α ′ ( pivot ( S )) .
The Surrounding Set Λ ( S ) \Lambda(S) Λ ( S ) . For each level i i i , length scale α \alpha α and cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , define
Λ ( S ) : = A > i ∩ { v ∣ v ∈ S or there is an edge in G connecting v and S of length ≤ h α } . \Lambda(S) := A_{>i} \cap\{v \mid v \in S \text{ or there is an edge in } G \text{ connecting } v \text{ and } S \text{ of length } \le h_\alpha\}. Λ ( S ) := A > i ∩ { v ∣ v ∈ S or there is an edge in G connecting v and S of length ≤ h α } .
Note that the input graph G G G and all weakly expanding graphs G i , α G_{i,\alpha} G i , α have the same edge lengths (see Observation 4.5 ), so the second term remains unchanged if we consider G i , α G_{i,\alpha} G i , α instead of G G G .
Intuitively, Λ ( S ) \Lambda(S) Λ ( S ) consists of the high-level vertices that either belong to S S S or are connected to S S S by short edges. For convenience, for each level i ′ > i i' > i i ′ > i , we use
Λ i ′ ( S ) : = Λ ( S ) ∩ A i ′ \Lambda_{i'}(S) := \Lambda(S) \cap A_{i'} Λ i ′ ( S ) := Λ ( S ) ∩ A i ′
to denote the level-i ′ i' i ′ vertices in the surrounding set of S S S . Naturally, define Λ ≤ i ′ ( S ) : = Λ ( S ) ∩ A ≤ i ′ \Lambda_{\le i'}(S) := \Lambda(S) \cap A_{\le i'} Λ ≤ i ′ ( S ) := Λ ( S ) ∩ A ≤ i ′ .
The following Observation 4.7 basically bounds the diameter of the surrounding set of a cluster in different graphs, including the original graph after failures and the weakly expanding graphs.
Observation 4.7. Consider a level i i i , a length scale α \alpha α , and a cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α . For each level i ′ > i i' > i i ′ > i and length scale α ′ ≥ α \alpha' \ge\alpha α ′ ≥ α , we have
diam G i ′ , α ′ ( Λ ≤ i ′ ( S ) ) ≤ h d i a m , α ′ + 4 h α ′ . \operatorname{diam}_{G_{i',\alpha'}}(\Lambda_{\le i'}(S)) \le h_{\mathrm{diam},\alpha'} + 4h_{\alpha'}. diam G i ′ , α ′ ( Λ ≤ i ′ ( S )) ≤ h diam , α ′ + 4 h α ′ . For any failed set F F F that is disjoint from S S S , we have diam G ∖ F ( Λ ( S ) ∖ F ) ≤ h d i a m , α ′ + 2 h α ′ \operatorname{diam}_{G\setminus F}(\Lambda(S) \setminus F) \le h_{\mathrm{diam},\alpha'} + 2h_{\alpha'} diam G ∖ F ( Λ ( S ) ∖ F ) ≤ h diam , α ′ + 2 h α ′ .
Proof. We show the first inequality. Consider two vertices u , v ∈ Λ ≤ i ′ ( S ) u,v \in\Lambda_{\le i'}(S) u , v ∈ Λ ≤ i ′ ( S ) . we have
dist G i ′ , α ′ ( u , v ) ≤ diam G i ′ , α ′ ( S ) + 2 h α + ℓ G i ′ , α ′ ( u ) + ℓ G i ′ , α ′ ( v ) , \operatorname{dist}_{G_{i',\alpha'}}(u,v) \le\operatorname{diam}_{G_{i',\alpha'}}(S) + 2h_{\alpha} + \ell_{G_{i',\alpha'}}(u) + \ell_{G_{i',\alpha'}}(v), dist G i ′ , α ′ ( u , v ) ≤ diam G i ′ , α ′ ( S ) + 2 h α + ℓ G i ′ , α ′ ( u ) + ℓ G i ′ , α ′ ( v ) , since each of u u u and v v v is either inside S S S or connected to S S S through an edge of length at most h α h_{\alpha} h α . Then dist G i ′ , α ′ ( u , v ) \operatorname{dist}_{G_{i',\alpha'}}(u,v) dist G i ′ , α ′ ( u , v ) is further bounded by h d i a m , α ′ + 4 h α ′ h_{\mathrm{diam},\alpha'} + 4h_{\alpha'} h diam , α ′ + 4 h α ′ by the following reasons. First ℓ G i ′ , α ′ ( w ) ≤ h α ′ \ell_{G_{i',\alpha'}}(w) \le h_{\alpha'} ℓ G i ′ , α ′ ( w ) ≤ h α ′ for each vertex w ⊆ A ≤ i ′ w \subseteq A_{\le i'} w ⊆ A ≤ i ′ by Observation 4.5. Moreover, since diam G i , α ( S ) ≤ h d i a m , α \operatorname{diam}_{G_{i,\alpha}}(S) \le h_{\mathrm{diam},\alpha} diam G i , α ( S ) ≤ h diam , α , we have diam G i ′ , α ′ ( S ) ≤ h d i a m , α ′ \operatorname{diam}_{G_{i',\alpha'}}(S) \le h_{\mathrm{diam},\alpha'} diam G i ′ , α ′ ( S ) ≤ h diam , α ′ by Observation 4.6.
The second inequality can be proven similarly. In particular, the second term is now 2 h α ′ 2h_{\alpha'} 2 h α ′ instead of 4 h α ′ 4h_{\alpha'} 4 h α ′ because the input graph G G G has zero vertex length.
The following Observation 4.8 illustrates the motivation for defining satellite clusters: we use the satellite cluster S ^ \hat{S} S ^ to cover both the cluster S S S itself and all clusters S ′ S' S ′ “adjacent” to S S S .
Observation 4.8. For each level i i i , length scale α \alpha α , and cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , let S ^ = Stl i , α ′ ( S ) \hat{S} = \operatorname{Stl}_{i,\alpha'}(S) S ^ = Stl i , α ′ ( S ) be the satellite cluster assigned to S S S for some other level i ′ > i i' > i i ′ > i and length scale α ′ ≥ α \alpha' \ge\alpha α ′ ≥ α . Then
Λ i ′ ( S ) ⊆ S ^ \Lambda_{i'}(S) \subseteq\hat{S} Λ i ′ ( S ) ⊆ S ^ ,
for each vertex v ∈ Λ i ′ ( S ) v \in\Lambda_{i'}(S) v ∈ Λ i ′ ( S ) , every cluster S ′ ∈ N i ′ , α ′ S' \in\mathcal{N}_{i',\alpha'} S ′ ∈ N i ′ , α ′ containing v v v has S ′ ⊆ S ^ S' \subseteq\hat{S} S ′ ⊆ S ^ .
Proof. Let u : = pivot ( S ) u := \operatorname{pivot}(S) u := pivot ( S ) be the pivot vertex of S S S . By definition, S ^ \hat{S} S ^ covers the h ^ c o v , α ′ \hat{h}_{\mathrm{cov},\alpha'} h ^ cov , α ′ -neighborhood of u u u in G i ′ , α ′ G_{i',\alpha'} G i ′ , α ′ . Recall that h ^ c o v , α ′ = 3 h d i a m , α ′ \hat{h}_{\mathrm{cov},\alpha'} = 3h_{\mathrm{diam},\alpha'} h ^ cov , α ′ = 3 h diam , α ′ .
For each vertex v ∈ Λ i ′ ( S ) v \in\Lambda_{i'}(S) v ∈ Λ i ′ ( S ) , we have
dist G i ′ , α ′ ( u , v ) − ℓ G i ′ , α ′ ( v ) ≤ h d i a m , α ′ + h α ′ . \operatorname{dist}_{G_{i',\alpha'}}(u,v) - \ell_{G_{i',\alpha'}}(v) \le h_{\mathrm{diam},\alpha'} + h_{\alpha'}. dist G i ′ , α ′ ( u , v ) − ℓ G i ′ , α ′ ( v ) ≤ h diam , α ′ + h α ′ . Here, the term h d i a m , α ′ h_{\mathrm{diam},\alpha'} h diam , α ′ accounts for the diameter of S S S , after applying the scale-changing rule in Observation 4.6, while the term h α ′ h_{\alpha'} h α ′ accounts for the possibility that v v v is connected to S S S by an edge of length at most h α ≤ h α ′ h_{\alpha} \le h_{\alpha'} h α ≤ h α ′ . Therefore, we have dist G i ′ , α ′ ( u , v ) ≤ h d i a m , α ′ + 2 h α ′ ≤ h ^ c o v , α ′ \operatorname{dist}_{G_{i',\alpha'}}(u,v) \le h_{\mathrm{diam},\alpha'} + 2h_{\alpha'} \le\hat{h}_{\mathrm{cov},\alpha'} dist G i ′ , α ′ ( u , v ) ≤ h diam , α ′ + 2 h α ′ ≤ h ^ cov , α ′ and thus v ∈ S ^ v \in\hat{S} v ∈ S ^ .
Now we show the second claim. Consider a cluster S ′ ∈ N i ′ , α ′ S' \in\mathcal{N}_{i',\alpha'} S ′ ∈ N i ′ , α ′ containing v v v . For each vertex w ∈ S ′ w \in S' w ∈ S ′ , we have
dist G i ′ , α ′ ( u , w ) ≤ dist G i ′ , α ′ ( u , v ) − ℓ G i ′ , α ′ ( v ) + diam G i ′ , α ′ ( S ′ ) ≤ ( h d i a m , α ′ + h α ′ ) + h d i a m , α ′ ≤ h ^ c o v , α ′ , \operatorname{dist}_{G_{i',\alpha'}}(u,w) \le\operatorname{dist}_{G_{i',\alpha'}}(u,v) - \ell_{G_{i',\alpha'}}(v) + \operatorname{diam}_{G_{i',\alpha'}}(S') \le(h_{\mathrm{diam},\alpha'} + h_{\alpha'}) + h_{\mathrm{diam},\alpha'} \le\hat{h}_{\mathrm{cov},\alpha'}, dist G i ′ , α ′ ( u , w ) ≤ dist G i ′ , α ′ ( u , v ) − ℓ G i ′ , α ′ ( v ) + diam G i ′ , α ′ ( S ′ ) ≤ ( h diam , α ′ + h α ′ ) + h diam , α ′ ≤ h ^ cov , α ′ , as desired.
Low-Degree Low-Diameters Steiner Trees
Parameters for Steiner Trees. Define
s t r e e = k , s_{\mathrm{tree}} = k, s tree = k ,
h t r e e , α = 4 h e d , α ⋅ s e d ⋅ s t r e e = Θ ( k 3 ⋅ h α ) , h_{\mathrm{tree},\alpha} = 4h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} = \Theta(k^3 \cdot h_{\alpha}), h tree , α = 4 h ed , α ⋅ s ed ⋅ s tree = Θ ( k 3 ⋅ h α ) ,
Δ = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) = O ~ ( 1 ) ⋅ n O ( 1 / k ) , \Delta= \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) = \widetilde{O}(1) \cdot n^{O(1/k)}, Δ = O ( n 1/ s tree ⋅ ω / ϕ ) = O ( 1 ) ⋅ n O ( 1/ k ) ,
γ t r e e = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) ⋅ i max ⋅ α max = O ~ ( 1 ) ⋅ n O ( 1 / k ) . \gamma_{\mathrm{tree}} = \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) \cdot i_{\max} \cdot\alpha_{\max} = \widetilde{O}(1) \cdot n^{O(1/k)}. γ tree = O ( n 1/ s tree ⋅ ω / ϕ ) ⋅ i m a x ⋅ α m a x = O ( 1 ) ⋅ n O ( 1/ k ) .
Construction. For each level i ∈ [ 0 , i max ] i \in[0, i_{\max}] i ∈ [ 0 , i m a x ] and each length scale α ∈ [ 1 , α max ] \alpha\in[1, \alpha_{\max}] α ∈ [ 1 , α m a x ] , using the following Theorem 4.9 , construct a collection of Steiner trees { T S ∣ S ∈ N i , α } \{T_S \mid S \in\mathcal{N}_{i,\alpha}\} { T S ∣ S ∈ N i , α } in G G G , each of which spans the terminals of its cluster and has diameter h t r e e , α h_{\mathrm{tree},\alpha} h tree , α and maximum degree Δ \Delta Δ . Moreover, each vertex appears in at most γ t r e e \gamma_{\mathrm{tree}} γ tree many Steiner trees (over all levels, length scales and clusters).
Theorem 4.9. For each level i i i and scale α \alpha α , there is an algorithm that computes in G i , α G_{i,\alpha} G i , α a collection of Steiner trees { T S ∣ S ∈ N i , α } \{T_S \mid S \in\mathcal{N}_{i,\alpha}\} { T S ∣ S ∈ N i , α } one-to-one corresponding to clusters in N i , α \mathcal{N}_{i,\alpha} N i , α with the following properties.
Each Steiner tree T S T_S T S spans the terminals V t m n ( S ) V_{\mathrm{tmn}}(S) V tmn ( S ) of its cluster S S S .
Each T S T_S T S has diameter h t r e e , α = 4 h e d , α ⋅ s e d ⋅ s t r e e h_{\mathrm{tree},\alpha} = 4h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} h tree , α = 4 h ed , α ⋅ s ed ⋅ s tree .
Each tree has maximum degree Δ = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) \Delta= \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) Δ = O ( n 1/ s tree ⋅ ω / ϕ ) .
Each vertex appears in at most γ ′ = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) \gamma' = \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) γ ′ = O ( n 1/ s tree ⋅ ω / ϕ ) Steiner trees.
Proof. For each cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , we fix a virtual tree T ~ S \widetilde{T}_S T S , which is an arbitrary unit-edge-length tree (no need to be a subgraph of G G G ) with vertex set V ( T ~ S ) = V t m n ( S ) V(\widetilde{T}_S) = V_{\mathrm{tmn}}(S) V ( T S ) = V tmn ( S ) , maximum degree Δ ′ = n 1 / s t r e e \Delta' = n^{1/s_{\mathrm{tree}}} Δ ′ = n 1/ s tree , and diameter 2 s t r e e 2s_{\mathrm{tree}} 2 s tree . It is clear that T ~ S \widetilde{T}_S T S can be partitioned into at most j max : = 2 Δ ′ j_{\max} := 2\Delta' j m a x := 2 Δ ′ matchings { M S , j } j ∈ [ j max ] \{M_{S,j}\}_{j \in[j_{\max}]} { M S , j } j ∈ [ j m a x ] .
For each j ∈ j max j \in j_{\max} j ∈ j m a x , we define a demand D j D_j D j by setting D j ( u , v ) D_j(u,v) D j ( u , v ) to be the number of (virtual) edges between u u u and v v v in matchings M S , j M_{S,j} M S , j over all S S S . By definition,
D j D_j D j is a ( ω ⋅ A i ) (\omega\cdot A_i) ( ω ⋅ A i ) -respecting demand, so it is also ( ω ⋅ A i ′ ) (\omega\cdot A'_i) ( ω ⋅ A i ′ ) -respecting since A i ⊆ A i ′ A_i \subseteq A'_i A i ⊆ A i ′ .
D j D_j D j is h d i a m , α h_{\mathrm{diam},\alpha} h diam , α -length in G i , α G_{i,\alpha} G i , α since N i , α \mathcal{N}_{i,\alpha} N i , α has diameter h d i a m , α h_{\mathrm{diam},\alpha} h diam , α . Thus, D j D_j D j is also h d i a m , α h_{\mathrm{diam},\alpha} h diam , α -length in G i , α ∗ G^*_{i,\alpha} G i , α ∗ , since the length function of G i , α G_{i,\alpha} G i , α is entry-wise no smaller than that of G i , α ∗ G^*_{i,\alpha} G i , α ∗ .
We then apply Lemma 3.8 on the strong expanding graph G i , α ∗ G^*_{i,\alpha} G i , α ∗ with node weighting ω ⋅ A i ′ \omega\cdot A'_i ω ⋅ A i ′ , the demand D j D_j D j , length parameter h e d , α h_{\mathrm{ed},\alpha} h ed , α and sparsity parameter ϕ / ω \phi/\omega ϕ / ω . Recall that h e d , α ≥ h d i a m , α h_{\mathrm{ed},\alpha} \ge h_{\mathrm{diam},\alpha} h ed , α ≥ h diam , α , and that A i ′ A'_i A i ′ is strongly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding in G i , α ∗ G^*_{i,\alpha} G i , α ∗ , or equivalently ( ω ⋅ A i ′ ) (\omega\cdot A'_i) ( ω ⋅ A i ′ ) is strongly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ( ϕ / ω ) (\phi/\omega) ( ϕ / ω ) -vertex-expanding in G i , α ∗ G^*_{i,\alpha} G i , α ∗ . Thus, we obtain (the path representation of) an integral flow F j F_j F j that routes D j D_j D j in G i , α ∗ G^*_{i,\alpha} G i , α ∗ with length h e d , α ⋅ s e d h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} h ed , α ⋅ s ed and vertex congestion O ~ ( ω / ϕ ) \widetilde{O}(\omega/\phi) O ( ω / ϕ ) . We assign the flow paths of F j F_j F j back to the matching edges in all matchings { M S , j ∣ S } \{M_{S,j} \mid S\} { M S , j ∣ S } .
After doing this for every j j j , for each virtual tree T ~ S \widetilde{T}_S T S and each virtual edge ( u , v ) (u,v) ( u , v ) on it, we have a flow path connecting u u u and v v v with length h e d , α ⋅ s e d h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} h ed , α ⋅ s ed . Moreover, the collection of flow paths over all virtual edges on all virtual tree has vertex congestion O ~ ( Δ ′ ⋅ ω / ϕ ) \widetilde{O}(\Delta' \cdot\omega/\phi) O ( Δ ′ ⋅ ω / ϕ ) .
Finally, for each cluster S S S , we compute the Steiner tree T S T_S T S by selecting an arbitrary shortest path tree in the graph R S R_S R S , where R S R_S R S is the union of the flow paths of all virtual edges in T ~ S \widetilde{T}_S T S . We have the following.
T S T_S T S has diameter 4 h e d , α ⋅ s e d ⋅ s t r e e 4h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} 4 h ed , α ⋅ s ed ⋅ s tree . Note that the graph R S R_S R S has diameter 2 h e d , α ⋅ s e d ⋅ s t r e e 2h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} 2 h ed , α ⋅ s ed ⋅ s tree : each flow path has length at most h e d , α ⋅ s e d h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} h ed , α ⋅ s ed , and the diameter of T ~ S \widetilde{T}_S T S is 2 s t r e e 2s_{\mathrm{tree}} 2 s tree . Therefore, T S T_S T S , as a shortest path tree in R S R_S R S , has a diameter at most twice the diameter of R S R_S R S .
T S T_S T S has maximum degree O ~ ( Δ ′ ⋅ ω / ϕ ) = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) \widetilde{O}(\Delta' \cdot\omega/\phi) = \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) O ( Δ ′ ⋅ ω / ϕ ) = O ( n 1/ s tree ⋅ ω / ϕ ) . This is because R S R_S R S has maximum degree O ~ ( Δ ′ ⋅ ω / ϕ ) \widetilde{O}(\Delta' \cdot\omega/\phi) O ( Δ ′ ⋅ ω / ϕ ) . Recall that R S R_S R S is the union of flow paths, and these flow paths have vertex congestion O ~ ( Δ ′ ⋅ ω / ϕ ) \widetilde{O}(\Delta' \cdot\omega/\phi) O ( Δ ′ ⋅ ω / ϕ ) .
The Query Graph
In this section, we define the query graph Q Q Q for a given set F F F of failed vertices with size ∣ F ∣ ≤ f |F| \le f ∣ F ∣ ≤ f . To distinguish between vertices and edges in the input graph G G G and the query graph Q Q Q , we call the vertices and edges in Q Q Q nodes and links.
At a high level, the query graph Q Q Q captures the distances among a small number of “affected regions” under the failures F F F . Since Q Q Q is small, we can afford to construct it explicitly and precompute all pairwise distances during the update phase. During the query phase, the algorithm identifies two nodes of Q Q Q representing affected regions close to the two query vertices and returns their precomputed distance (with some additive adjustment).
In § 4.3.1 , we introduce affected clusters and residual subtrees , which provide the key structural ingredients underlying the notion of “affected regions.” We formally construct the query graph Q Q Q in § 4.3.2 and § 4.3.3 , in which we specify the nodes and links of Q Q Q respectively. Finally, in § 4.4.1 , we show that the query graph Q Q Q will never underestimate distances in G ∖ F G \setminus F G ∖ F .
Affected Clusters and Residual Subtrees
Affected Clusters. For each neighborhood cover N i , α \mathcal{N}_{i,\alpha} N i , α and cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , S S S is affected if S S S intersects F F F , otherwise it is unaffected . Similarly, a satellite cluster S ^ ∈ N ^ i , α \widehat{S} \in\widehat{\mathcal{N}}_{i,\alpha} S ∈ N i , α is affected if S ^ \widehat{S} S intersects F F F , and unaffected if not.
Lemma 4.10. The number of affected clusters and affected satellite clusters is at most
O ( i max ⋅ α max ⋅ ω ) = O ~ ( f ) ⋅ n O ( 1 / k ) . O(i_{\max}\cdot\alpha_{\max}\cdot\omega)=\widetilde{O}(f)\cdot n^{O(1/k)}. O ( i m a x ⋅ α m a x ⋅ ω ) = O ( f ) ⋅ n O ( 1/ k ) .
Proof. This is because each vertex can appear in at most O ( i max ⋅ α max ) ⋅ ω O(i_{\max}\cdot\alpha_{\max})\cdot\omega O ( i m a x ⋅ α m a x ) ⋅ ω many (satellite) clusters. Recall that ω = O ~ ( n 1 / k ) \omega=\widetilde{O}(n^{1/k}) ω = O ( n 1/ k ) is the width of (satellite) neighborhood covers.
Residual Subtrees. For each neighborhood cover N i , α \mathcal{N}_{i,\alpha} N i , α and affected cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , under failures F F F , its corresponding tree T S T_S T S may break into several (possibly just one) subtrees τ \tau τ in T S ∖ F T_S \setminus F T S ∖ F , called residual subtrees . We note that although the tree T S T_S T S of an unaffected cluster S S S may also be broken by the failures F F F (since T S T_S T S may go outside S S S ), we do not define residual subtrees for this unaffected S S S .
For a residual subtree τ \tau τ of some cluster S S S , we define its terminal set to be
V t m n ( τ ) : = V t m n ( S ) ∩ τ . V_{\mathrm{tmn}}(\tau):=V_{\mathrm{tmn}}(S)\cap\tau. V tmn ( τ ) := V tmn ( S ) ∩ τ .
Nodes in the Query Graph
We will create four types of nodes to Q Q Q and assign lengths to these nodes. The construction relies on the following notions of heavy and light residual subtrees.
Definition 4.11 (Heaviness of Residual Subtrees). A residual subtree τ \tau τ is heavy if ∣ V t m n ( τ ) ∣ ≥ ρ h e a v y |V_{\mathrm{tmn}}(\tau)| \ge\rho_{\mathrm{heavy}} ∣ V tmn ( τ ) ∣ ≥ ρ heavy , otherwise τ \tau τ is light .
With Definition 4.11 in place, we create a singleton node for each non-failed terminal in a light residual subtree, a subtree node for each heavy residual subtree, a cluster node for each affected cluster, and a satellite node for each satellite cluster. Formally, consider each level i i i and length scale α \alpha α . For each affected cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α , add the following nodes. All such nodes q n d q_{\mathrm{nd}} q nd have level ( q n d ) : = i \operatorname{level}(q_{\mathrm{nd}}) := i level ( q nd ) := i , scale ( q n d ) : = α \operatorname{scale}(q_{\mathrm{nd}}) := \alpha scale ( q nd ) := α and cluster ( q n d ) : = S \operatorname{cluster}(q_{\mathrm{nd}}) := S cluster ( q nd ) := S .
(Subtree Nodes) For each heavy residual subtree τ \tau τ of S S S , create a subtree node τ n d \tau_{\mathrm{nd}} τ nd with node length h t r e e , α h_{\mathrm{tree},\alpha} h tree , α .
(Cluster Nodes) Create a cluster node S n d S_{\mathrm{nd}} S nd with node length h e d , α ⋅ s e d + 2 h d i a m , α + 4 h α = Θ ( s n c ⋅ s e d ⋅ h α ) h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} + 2h_{\mathrm{diam},\alpha} + 4h_\alpha= \Theta(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot h_\alpha) h ed , α ⋅ s ed + 2 h diam , α + 4 h α = Θ ( s nc ⋅ s ed ⋅ h α ) .
For each affected satellite cluster S ^ ∈ N ^ i , α \widehat{S} \in\widehat{\mathcal{N}}_{i,\alpha} S ∈ N i , α , add the following node.
(Satellite Nodes) create a satellite node S ^ n d \widehat{S}_{\mathrm{nd}} S nd with node length h ^ e d , α ⋅ s e d + 2 h d i a m , α + 4 h α = Θ ( s n c 2 ⋅ s e d ⋅ h α ) \widehat{h}_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} + 2h_{\mathrm{diam},\alpha} + 4h_\alpha= \Theta(s_{\mathrm{nc}}^2 \cdot s_{\mathrm{ed}} \cdot h_\alpha) h ed , α ⋅ s ed + 2 h diam , α + 4 h α = Θ ( s nc 2 ⋅ s ed ⋅ h α ) . Set level ( S ^ n d ) : = i \operatorname{level}(\widehat{S}_{\mathrm{nd}}) := i level ( S nd ) := i and scale ( S ^ n d ) : = α \operatorname{scale}(\widehat{S}_{\mathrm{nd}}) := \alpha scale ( S nd ) := α .
The following Lemma 4.12 bounds the number of nodes in the query graph Q Q Q .
Lemma 4.12. The number of nodes in Q Q Q is at most
O ( ( i max ⋅ α max ⋅ ω ⋅ f + Δ ⋅ γ t r e e ⋅ f ) ⋅ ρ h e a v y ) = O ~ ( 1 ) ⋅ n O ( 1 / k ) ⋅ f 2 . O\left((i_{\max} \cdot\alpha_{\max} \cdot\omega\cdot f + \Delta\cdot\gamma_{\mathrm{tree}} \cdot f) \cdot\rho_{\mathrm{heavy}}\right) = \widetilde{O}(1) \cdot n^{O(1/k)} \cdot f^2. O ( ( i m a x ⋅ α m a x ⋅ ω ⋅ f + Δ ⋅ γ tree ⋅ f ) ⋅ ρ heavy ) = O ( 1 ) ⋅ n O ( 1/ k ) ⋅ f 2 .
Proof. Lemma 4.10 shows that the number of affected (satellite) cluster is at most λ : = i max ⋅ α max ⋅ ω ⋅ f \lambda:= i_{\max} \cdot\alpha_{\max} \cdot\omega\cdot f λ := i m a x ⋅ α m a x ⋅ ω ⋅ f . The number of residual subtrees is at most f ⋅ γ t r e e ⋅ Δ + λ f \cdot\gamma_{\mathrm{tree}} \cdot\Delta+ \lambda f ⋅ γ tree ⋅ Δ + λ by the following reasons. First, removing one vertex from one Steiner tree can contribute Δ \Delta Δ residual subtrees (due to the maximum degree Δ \Delta Δ ) and a failed vertex can appear in at most γ t r e e \gamma_{\mathrm{tree}} γ tree many Steiner trees. In addition, an affected cluster could have its Steiner tree disjoint from F F F , which contributes 1 residual subtree. Finally, each light residual subtree can create at most ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy many singleton nodes. This gives the final bound. □ \square □
Mappings Between Vertices and Concrete Nodes. We classify nodes into concrete nodes and virtual nodes : singleton nodes and subtree nodes are concrete, while cluster nodes and satellite nodes are virtual.
Each concrete node q n d q_{\mathrm{nd}} q nd in Q Q Q represents a set of original vertices V ( q n d ) V(q_{\mathrm{nd}}) V ( q nd ) defined as follows. For each singleton node v n d v_{\mathrm{nd}} v nd , it naturally represents a single vertex V ( v n d ) : = { v } V(v_{\mathrm{nd}}) := \{v\} V ( v nd ) := { v } . For each subtree node τ n d \tau_{\mathrm{nd}} τ nd , it represents V ( τ n d ) : = V t m n ( τ ) V(\tau_{\mathrm{nd}}) := V_{\mathrm{tmn}}(\tau) V ( τ nd ) := V tmn ( τ ) , i.e., the terminals in this heavy residual subtree τ \tau τ .
Inversely, for each vertex v ∈ V ( G ) v \in V(G) v ∈ V ( G ) , we use V n d ( v ) V_{\mathrm{nd}}(v) V nd ( v ) to denote the set of concrete nodes representing it. Namely,
V n d ( v ) : = { q n d ∣ v ∈ V ( q n d ) } . V_{\mathrm{nd}}(v) := \{q_{\mathrm{nd}} \mid v \in V(q_{\mathrm{nd}})\}. V nd ( v ) := { q nd ∣ v ∈ V ( q nd )} .
Note that a vertex v v v may be represented by multiple singleton nodes and subtree nodes simultaneously. Moreover, each failed vertex v ∈ F v \in F v ∈ F must have an empty V n d ( v ) V_{\mathrm{nd}}(v) V nd ( v ) .
Links in the Query Graph
There are seven types of links, which can be divided into two categories (except for the last type): shortcut-based links and expansion-based links .
For better understanding, let us first explain the intuition behind the classification of shortcut-based and expansion-based links. Recall that we have created nodes to represent the “affected regions” (i.e., terminals of affected clusters) of G G G under failures. However, a large portion of G G G remains unaffected, and we want to add shortcut-based links to encode distances through these unaffected regions.
More formally, the scenario of adding shortcut-based links consists of three clusters S 1 S_1 S 1 , S 2 S_2 S 2 and S S S (S 1 S_1 S 1 and S 2 S_2 S 2 can be the same). We are also provided the following two guarantees of S 1 S_1 S 1 , S 2 S_2 S 2 and S S S which come from how we exploit shortcut-based links in the proof of Lemma 4.19. For clarity, let
( i 1 , i 2 , i ) = ( level ( S 1 ) , level ( S 2 ) , level ( S ) ) , ( α 1 , α 2 , α ) = ( scale ( S 1 ) , scale ( S 2 ) , scale ( S ) ) . (i_1,i_2,i) = (\operatorname{level}(S_1),\operatorname{level}(S_2),\operatorname{level}(S)), \qquad(\alpha_1,\alpha_2,\alpha) = (\operatorname{scale}(S_1),\operatorname{scale}(S_2),\operatorname{scale}(S)). ( i 1 , i 2 , i ) = ( level ( S 1 ) , level ( S 2 ) , level ( S )) , ( α 1 , α 2 , α ) = ( scale ( S 1 ) , scale ( S 2 ) , scale ( S )) .
Then it is guaranteed that i 1 ≥ i 2 > i i_1 \ge i_2 > i i 1 ≥ i 2 > i and α 1 ≥ α 2 ≥ α \alpha_1 \ge\alpha_2 \ge\alpha α 1 ≥ α 2 ≥ α . In other words, as we move from S 1 S_1 S 1 through S 2 S_2 S 2 to S S S and the level decreases, the scale also goes down. Moreover, it is also guaranteed that S 1 S_1 S 1 intersects S 2 S_2 S 2 .
The most standard way to add shortcut-based links is that, for each pair of vertices u ∈ V t m n ( S 1 ) ∩ Λ ( S ) u \in V_{\mathrm{tmn}}(S_1) \cap\Lambda(S) u ∈ V tmn ( S 1 ) ∩ Λ ( S ) and v ∈ V t m n ( S 2 ) ∩ Λ ( S ) v \in V_{\mathrm{tmn}}(S_2) \cap\Lambda(S) v ∈ V tmn ( S 2 ) ∩ Λ ( S ) , add a link between (i) node u n d ∈ V n d ( u ) u_{\mathrm{nd}} \in V_{\mathrm{nd}}(u) u nd ∈ V nd ( u ) with cluster ( u n d ) = S 1 \operatorname{cluster}(u_{\mathrm{nd}}) = S_1 cluster ( u nd ) = S 1 and (ii) node v n d ∈ V n d ( v ) v_{\mathrm{nd}} \in V_{\mathrm{nd}}(v) v nd ∈ V nd ( v ) with cluster ( v n d ) = S 2 \operatorname{cluster}(v_{\mathrm{nd}}) = S_2 cluster ( v nd ) = S 2 . This means we want to add a biclique between (nodes of) terminals of S 1 S_1 S 1 and S 2 S_2 S 2 that are inside the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) . Intuitively, this biclique can “shortcut” any path between S 1 S_1 S 1 and S 2 S_2 S 2 going through S S S .
However, this standard construction may create too many shortcut-based links. Later in § 4.7 , such links will be stored in a 2D-range counting table in the oracle, so the number of links directly affects space usage. Therefore, we need to perform sparsification, which will introduce the seven types of links below.
We classify the first three types as shortcut-based links, since they are all created with respect to some unaffected cluster S S S (or an edge e e e which can be viewed as a degenerated unaffected cluster) and two higher levels i 1 , i 2 i_1,i_2 i 1 , i 2 . Also, they are all stored inside the 2D-range counting table. In contrast, links of types 4, 5 and 6 are classified as expansion-based. A distinguishing feature of these links is that they are not created with respect to any specific unaffected cluster S S S and are not stored in the 2D range-counting table.
Shortcut-Based Links. We first formally describe the shortcut-based links. Note that some shortcut-based links below are unnecessary, since we sometimes, for simplicity, do not require both linked levels to be higher than that of S S S .
Type 1. The first-type links are added by the original edges. Note that we can view an original edge as a degenerated unaffected cluster.
For each original edge e = ( u , v ) ∈ G e = (u,v) \in G e = ( u , v ) ∈ G , add a link between each node pair ( u n d , v n d ) ∈ V n d ( u ) × V n d ( v ) (u_{\mathrm{nd}},v_{\mathrm{nd}}) \in V_{\mathrm{nd}}(u) \times V_{\mathrm{nd}}(v) ( u nd , v nd ) ∈ V nd ( u ) × V nd ( v ) with link length ℓ G ( e ) \ell_G(e) ℓ G ( e ) .
Type 2. The second-type links are the standard shortcut-based links we discussed above, i.e., the bicliques. However, to perform sparsification, we this type of links are only between the levels $i at which the unaffected cluster S S S is “nearby A i A_i A i -sparse”. Definition 4.13 formally defines nearby denseness and sparseness of S S S .
Definition 4.13 (Nearby Denseness). For a cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α and a level i ′ > i i' > i i ′ > i , S S S is nearby A i ′ A_{i'} A i ′ -dense if ∣ Λ i ′ ( S ) ∣ ≥ ρ h e a v y |\Lambda_{i'}(S)| \ge\rho_{\mathrm{heavy}} ∣ Λ i ′ ( S ) ∣ ≥ ρ heavy , otherwise it is nearby A i ′ A_{i'} A i ′ -sparse.
According to the definition, the number of A i A_i A i -terminals in the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) is quite small when S S S is nearby A i A_i A i -sparse, so we will not create too many second-type links.
For each
level i i i , length scale α \alpha α and unaffected cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α ,
higher levels i 1 , i 2 > i i_1,i_2 > i i 1 , i 2 > i such that S S S is both nearby A i 1 A_{i_1} A i 1 - and A i 2 A_{i_2} A i 2 -sparse,
vertex pair ( u , v ) ∈ Λ i 1 ( S ) × Λ i 2 ( S ) (u,v) \in\Lambda_{i_1}(S) \times\Lambda_{i_2}(S) ( u , v ) ∈ Λ i 1 ( S ) × Λ i 2 ( S ) ,
node pair ( u n d , v n d ) ∈ V n d ( u ) × V n d ( v ) (u_{\mathrm{nd}},v_{\mathrm{nd}}) \in V_{\mathrm{nd}}(u) \times V_{\mathrm{nd}}(v) ( u nd , v nd ) ∈ V nd ( u ) × V nd ( v ) ,
add a link between u n d u_{\mathrm{nd}} u nd and v n d v_{\mathrm{nd}} v nd with link length h d i a m , α + 2 h α h_{\mathrm{diam},\alpha} + 2h_\alpha h diam , α + 2 h α .
Type 3. The third type is different from the second type in the following ways. First, the third-type shortcut-based links for an unaffected cluster S S S are between a level i 1 i_1 i 1 at which S S S is nearby A i 1 A_{i_1} A i 1 -sparse and a lower level i 2 < i 1 i_2 < i_1 i 2 < i 1 at which S S S is nearby A i 2 A_{i_2} A i 2 -dense. However, adding a biclique is too costly in this case, as the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) may contain many A i 2 A_{i_2} A i 2 -vertices. This is where the satellite clusters come into play.
Roughly speaking, we will use the satellite clusters S ^ : = Stl i 2 , α 2 ( S ) \widehat{S} := \operatorname{Stl}_{i_2,\alpha_2}(S) S := Stl i 2 , α 2 ( S ) (for all α 2 ≥ scale ( S ) \alpha_2 \ge\operatorname{scale}(S) α 2 ≥ scale ( S ) ) as “representatives” of A i 2 A_{i_2} A i 2 -vertices in Λ ( S ) \Lambda(S) Λ ( S ) , meaning that we connect the shortcuts to the satellite nodes S ^ n d \widehat{S}_{\mathrm{nd}} S nd of these S ^ \widehat{S} S . Later, the type-6 links will connect S ^ \widehat{S} S to Λ i 2 ( S ) \Lambda_{i_2}(S) Λ i 2 ( S ) . We note that in this case, the condition that S S S is nearby A i 2 A_{i_2} A i 2 -dense is crucial, as the feasibility argument (Lemma 4.16) relies on both nearby denseness and the LC-expansion property.
For each
level i i i , length scale α \alpha α and unaffected cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α ,
higher levels i 1 , i 2 i_1,i_2 i 1 , i 2 s.t. i 1 > i 2 > i i_1 > i_2 > i i 1 > i 2 > i and S S S is nearby A i 1 A_{i_1} A i 1 -sparse but nearby A i 2 A_{i_2} A i 2 -dense,
vertex u ∈ Λ i 1 ( S ) u \in\Lambda_{i_1}(S) u ∈ Λ i 1 ( S ) ,
node u n d ∈ V n d ( u ) u_{\mathrm{nd}} \in V_{\mathrm{nd}}(u) u nd ∈ V nd ( u ) ,
add a link between u n d u_{\mathrm{nd}} u nd and the satellite node S ^ n d \widehat{S}_{\mathrm{nd}} S nd created for the satellite cluster S ^ : = Stl i 2 , α 2 ( S ) \widehat{S} := \operatorname{Stl}_{i_2,\alpha_2}(S) S := Stl i 2 , α 2 ( S ) for all α 2 ≥ α \alpha_2 \ge\alpha α 2 ≥ α . The link length is 0.
Expansion-Based Links
Next, we will introduce expansion-based links. Such links are constructed based on different notions of heaviness and denseness, which essentially exploit the LC-expansion property in different ways.
Type 4. The fourth type is based on the heaviness of residual subtrees (see Definition 4.11 ). Intuitively, all heavy residual subtrees of the same cluster are close to each other, so we can safely link them to the cluster node.
For each
level i 1 i_1 i 1 , length scale α 1 \alpha_1 α 1 , and affected cluster S 1 ∈ N i 1 , α 1 S_1 \in\mathcal{N}_{i_1,\alpha_1} S 1 ∈ N i 1 , α 1 ,
subtree node τ n d \tau_{\mathrm{nd}} τ nd with cluster ( τ n d ) = S 1 \operatorname{cluster}(\tau_{\mathrm{nd}}) = S_1 cluster ( τ nd ) = S 1 ,
add a link between τ n d \tau_{\mathrm{nd}} τ nd and the cluster node S 1 , n d S_{1,\mathrm{nd}} S 1 , nd created for S 1 S_1 S 1 with link length 0.
Type 5. The fifth type relies on the notion of adjacent-cluster denseness in Definition 4.14 . Roughly speaking, a level-i 2 i_2 i 2 node q n d q_{\mathrm{nd}} q nd can obtain A i 1 A_{i_1} A i 1 -denseness of a high level i 1 ≥ i 2 i_1 \ge i_2 i 1 ≥ i 2 if V ( q n d ) V(q_{\mathrm{nd}}) V ( q nd ) is “adjacent” to a lower-level nearby A i 1 A_{i_1} A i 1 -dense unaffected cluster.
Definition 4.14 (Adjacent-Cluster Denseness). Consider a level i 2 i_2 i 2 , length scale α 2 \alpha_2 α 2 , a cluster S 2 ∈ N i 2 , α 2 S_2 \in\mathcal{N}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 , and a concrete node q n d q_{\mathrm{nd}} q nd with cluster ( q n d ) = S 2 \operatorname{cluster}(q_{\mathrm{nd}}) = S_2 cluster ( q nd ) = S 2 . For each level i 1 ≥ i 2 i_1 \ge i_2 i 1 ≥ i 2 , we say q n d q_{\mathrm{nd}} q nd is adjacent-cluster A i 1 A_{i_1} A i 1 -dense if
there exist level i < i 2 i < i_2 i < i 2 , length scale α ≤ α 2 \alpha\le\alpha_2 α ≤ α 2 and an unaffected cluster S ∈ N i , α S \in\mathcal{N}_{i,\alpha} S ∈ N i , α such that S S S is nearby A i 1 A_{i_1} A i 1 -dense and V ( q n d ) V(q_{\mathrm{nd}}) V ( q nd ) intersects Λ ( S ) \Lambda(S) Λ ( S ) .
Otherwise q n d q_{\mathrm{nd}} q nd is adjacent-cluster A i A_i A i -sparse.
For each
level i 2 i_2 i 2 , length scale α 2 \alpha_2 α 2 , affected cluster S 2 ∈ N i 2 , α 2 S_2 \in\mathcal{N}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 , and concrete node q n d q_{\mathrm{nd}} q nd with cluster ( q n d ) = S 2 \operatorname{cluster}(q_{\mathrm{nd}}) = S_2 cluster ( q nd ) = S 2 ,
level i 1 ≥ i 2 i_1 \ge i_2 i 1 ≥ i 2 , length scale α 1 ≥ α 2 \alpha_1 \ge\alpha_2 α 1 ≥ α 2 ,
if q n d q_{\mathrm{nd}} q nd is adjacent-cluster A i 1 A_{i_1} A i 1 -dense, then for each
affected cluster S 1 ∈ N i 1 , α 1 S_1 \in\mathcal{N}_{i_1,\alpha_1} S 1 ∈ N i 1 , α 1 such that S 1 S_1 S 1 intersects S 2 S_2 S 2 ,
add a link between q n d q_{\mathrm{nd}} q nd and the cluster node S 1 , n d S_{1,\mathrm{nd}} S 1 , nd created for S 1 S_1 S 1 . The link length is 0.
Type 6. The sixth type is also based on adjacent-cluster denseness. The difference is that, this time we only exploit the same-level adjacent-cluster denseness of a node q n d q_{\mathrm{nd}} q nd , and then link q n d q_{\mathrm{nd}} q nd to all the affected satellite clusters that cover the cluster of q n d q_{\mathrm{nd}} q nd . For each
level i 2 i_2 i 2 , length scale α 2 \alpha_2 α 2 , affected cluster S 2 ∈ N i 2 , α 2 S_2 \in\mathcal{N}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 , and concrete node q n d q_{\mathrm{nd}} q nd with cluster ( q n d ) = S 2 \operatorname{cluster}(q_{\mathrm{nd}})=S_2 cluster ( q nd ) = S 2 ,
if q n d q_{\mathrm{nd}} q nd is adjacent-cluster A i 2 A_{i_2} A i 2 -dense, then for each
affected satellite cluster S ^ 2 ∈ N ^ i 2 , α 2 \widehat{S}_2 \in\widehat{\mathcal{N}}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 such that S ^ 2 ∋ pivot ( S 2 ) \widehat{S}_2 \ni\operatorname{pivot}(S_2) S 2 ∋ pivot ( S 2 ) ,
add a link between q n d q_{\mathrm{nd}} q nd and the satellite node S ^ 2 , n d \widehat{S}_{2,\mathrm{nd}} S 2 , nd created for S ^ 2 \widehat{S}_2 S 2 . The link length is 10 ⋅ h ^ e d , α 2 ⋅ s e d 10 \cdot\widehat{h}_{\mathrm{ed},\alpha_2} \cdot s_{\mathrm{ed}} 10 ⋅ h ed , α 2 ⋅ s ed .
Links Based on Common Vertices.
Type 7. The last type of links simply connects nodes that share a common vertex. We note that links of this type are rarely used.
For each pair of concrete nodes q n d q_{\mathrm{nd}} q nd and q n d ′ q'_{\mathrm{nd}} q nd ′ , if V ( q n d ) V(q_{\mathrm{nd}}) V ( q nd ) intersects V ( q n d ′ ) V(q'_{\mathrm{nd}}) V ( q nd ′ ) , then add a link between q n d q_{\mathrm{nd}} q nd and q n d ′ q'_{\mathrm{nd}} q nd ′ with link length 0.
Lower Bounding Distances in the Query Graph
Now we prove Lemma 4.16 for establishing correctness of our (later) query algorithm on the lower-bound side. Roughly speaking, the query graph Q Q Q constructed above never underestimates the real distances after failures.
Before proving Lemma 4.16 , we need the following Lemma 4.15 which captures the key property of weak LC vertex expansion that we will exploit.
Lemma 4.15 (LC-Expansion Property). Consider a weak expanding graph G i , α G_{i,\alpha} G i , α . For any two vertex subsets T 1 , T 2 ⊆ A i T_1,T_2 \subseteq A_i T 1 , T 2 ⊆ A i , if
∣ T 1 ∣ , ∣ T 2 ∣ ≥ ρ h e a v y |T_1|,|T_2| \ge\rho_{\mathrm{heavy}} ∣ T 1 ∣ , ∣ T 2 ∣ ≥ ρ heavy ,
diam G i , α ( T 1 , T 2 ) ≤ h e d , α \operatorname{diam}_{G_{i,\alpha}}(T_1,T_2) \le h_{\mathrm{ed},\alpha} diam G i , α ( T 1 , T 2 ) ≤ h ed , α ,
then for any vertex failures F ⊆ V F \subseteq V F ⊆ V of size at most f f f , we have
dist G ∖ F ( T 1 ∖ F , T 2 ∖ F ) ≤ h e d , α ⋅ s e d . \operatorname{dist}_{G\setminus F}(T_1 \setminus F,T_2 \setminus F) \le h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}}. dist G ∖ F ( T 1 ∖ F , T 2 ∖ F ) ≤ h ed , α ⋅ s ed .
Proof. Recall from Observation 4.3 that A i A_i A i is weakly ( h e d , α , s e d ) (h_{\mathrm{ed},\alpha},s_{\mathrm{ed}}) ( h ed , α , s ed ) -length ϕ \phi ϕ -vertex-expanding w.r.t. G i , α G_{i,\alpha} G i , α and G G G , meaning that for any A i A_i A i -respecting demand D D D that is h e d , α h_{\mathrm{ed},\alpha} h ed , α -length in G i , α G_{i,\alpha} G i , α , it can be routed in G G G with length h e d , α ⋅ s e d h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} h ed , α ⋅ s ed and vertex congestion γ = O ( log n / ϕ ) \gamma=O(\log n/\phi) γ = O ( log n / ϕ ) .
Now we define this demand D D D to be an arbitrary matching between ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy many T 1 T_1 T 1 -vertices and ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy many T 2 T_2 T 2 -vertices. Recall that we set ρ h e a v y = γ ⋅ f + 1 \rho_{\mathrm{heavy}}=\gamma\cdot f+1 ρ heavy = γ ⋅ f + 1 . The routing of D D D in G G G has vertex congestion γ \gamma γ , so removing f f f vertices can destroy at most γ ⋅ f \gamma\cdot f γ ⋅ f units of flows. Therefore, there are still non-zero ( h e d , α ⋅ s e d ) (h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}}) ( h ed , α ⋅ s ed ) -length flows between T 1 T_1 T 1 and T 2 T_2 T 2 in G ∖ F G \setminus F G ∖ F . This completes the proof.
Lemma 4.16. Let x n d x_{\mathrm{nd}} x nd and y n d y_{\mathrm{nd}} y nd be two arbitrary concrete nodes in Q Q Q . For each vertices x ∈ V ( x n d ) x \in V(x_{\mathrm{nd}}) x ∈ V ( x nd ) and y ∈ V ( y n d ) y \in V(y_{\mathrm{nd}}) y ∈ V ( y nd ) , we have
dist G ∖ F ( x , y ) ≤ dist Q ( x n d , y n d ) . \operatorname{dist}_{G\setminus F}(x,y) \le\operatorname{dist}_{Q}(x_{\mathrm{nd}},y_{\mathrm{nd}}). dist G ∖ F ( x , y ) ≤ dist Q ( x nd , y nd ) .
Proof. Let P P P be a shortest path in Q Q Q between x n d x_{\mathrm{nd}} x nd and y n d y_{\mathrm{nd}} y nd . We decompose P P P into maximal subpaths that are internally disjoint from concrete nodes. Let P s u b P_{\mathrm{sub}} P sub be such a subpath. By definition, P s u b P_{\mathrm{sub}} P sub ’s endpoints, denoted by u n d u_{\mathrm{nd}} u nd and v n d v_{\mathrm{nd}} v nd , are both concrete nodes, and all middle nodes of P s u b P_{\mathrm{sub}} P sub are virtual nodes. To prove the lemma, it suffices to show that
dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ len Q ( P ) − ℓ ( u n d ) − ℓ ( v n d ) , \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) \le\operatorname{len}_{Q}(P)-\ell(u_{\mathrm{nd}})-\ell(v_{\mathrm{nd}}), dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ len Q ( P ) − ℓ ( u nd ) − ℓ ( v nd ) ,
since for each concrete node v n d v_{\mathrm{nd}} v nd , diam G ∖ F ( V ( v n d ) ) ≤ ℓ ( v n d ) \operatorname{diam}_{G\setminus F}(V(v_{\mathrm{nd}})) \le\ell(v_{\mathrm{nd}}) diam G ∖ F ( V ( v nd )) ≤ ℓ ( v nd ) . By our construction of Q Q Q , there is no link directly connecting two virtual nodes. Hence, P s u b P_{\mathrm{sub}} P sub contains exactly one link or two links.
Case 1. If P s u b P_{\mathrm{sub}} P sub is a single link e l k : = ( u n d , v n d ) e_{\mathrm{lk}} := (u_{\mathrm{nd}},v_{\mathrm{nd}}) e lk := ( u nd , v nd ) , observe that len Q ( P ) − ℓ ( u n d ) − ℓ ( v n d ) \operatorname{len}_{Q}(P)-\ell(u_{\mathrm{nd}})-\ell(v_{\mathrm{nd}}) len Q ( P ) − ℓ ( u nd ) − ℓ ( v nd ) is exactly ℓ ( e l k ) \ell(e_{\mathrm{lk}}) ℓ ( e lk ) , so we only need to show dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ ℓ ( e l k ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) \le\ell(e_{\mathrm{lk}}) dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ ℓ ( e lk ) . There are several subcases.
Suppose e l k e_{\mathrm{lk}} e lk has type 1 1 1 . By the rule of adding type-1 1 1 link, there exists an edge e = ( u , v ) e=(u,v) e = ( u , v ) such that u ∈ V ( u n d ) u\in V(u_{\mathrm{nd}}) u ∈ V ( u nd ) , v ∈ V ( v n d ) v\in V(v_{\mathrm{nd}}) v ∈ V ( v nd ) and ℓ G ( e ) = ℓ ( e l k ) \ell_{G}(e)=\ell(e_{\mathrm{lk}}) ℓ G ( e ) = ℓ ( e lk ) , which implies dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ ℓ ( e l k ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) \le\ell(e_{\mathrm{lk}}) dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ ℓ ( e lk ) .
Suppose e l k e_{\mathrm{lk}} e lk has type 2 2 2 . By the rule, there exist vertices u ∈ V ( u n d ) u\in V(u_{\mathrm{nd}}) u ∈ V ( u nd ) , v ∈ V ( v n d ) v\in V(v_{\mathrm{nd}}) v ∈ V ( v nd ) and an unaffected cluster S ∈ N i , α S\in\mathcal{N}_{i,\alpha} S ∈ N i , α such that u , v ∈ Λ ( S ) u,v\in\Lambda(S) u , v ∈ Λ ( S ) . Since S S S is unaffected, by Observation 4.7 we have
dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ diam G ∖ F ( Λ ( S ) ) ≤ h d i a m , α + 2 h α = ℓ ( e l k ) . \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) \le\operatorname{diam}_{G\setminus F}(\Lambda(S)) \le h_{\mathrm{diam},\alpha}+2h_{\alpha}=\ell(e_{\mathrm{lk}}). dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ diam G ∖ F ( Λ ( S )) ≤ h diam , α + 2 h α = ℓ ( e lk ) .
Case 2. Suppose P s u b P_{\mathrm{sub}} P sub has two links e l k , 1 : = ( u n d , S 1 , n d ) e_{\mathrm{lk},1}:=(u_{\mathrm{nd}},S_{1,\mathrm{nd}}) e lk , 1 := ( u nd , S 1 , nd ) and e l k , 2 : = ( S 1 , n d , v n d ) e_{\mathrm{lk},2}:=(S_{1,\mathrm{nd}},v_{\mathrm{nd}}) e lk , 2 := ( S 1 , nd , v nd ) with a cluster node S 1 , n d S_{1,\mathrm{nd}} S 1 , nd in the middle. It suffices to show dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ ℓ ( S 1 , n d ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}}))\le\ell(S_{1,\mathrm{nd}}) dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ ℓ ( S 1 , nd ) . Observe that only links with types 4 4 4 and 5 5 5 can be adjacent to the cluster node S 1 , n d S_{1,\mathrm{nd}} S 1 , nd . Let S 1 = cluster ( S 1 , n d ) S_{1}=\operatorname{cluster}(S_{1,\mathrm{nd}}) S 1 = cluster ( S 1 , nd ) , i 1 = level ( S 1 , n d ) i_{1}=\operatorname{level}(S_{1,\mathrm{nd}}) i 1 = level ( S 1 , nd ) and α 1 = scale ( S 1 , n d ) \alpha_{1}=\operatorname{scale}(S_{1,\mathrm{nd}}) α 1 = scale ( S 1 , nd ) .
For better understanding and to avoid tedious case analysis, let us first discuss our strategy of exploiting the LC-expansion property Lemma 4.15 w.r.t. A i 1 A_{i_{1}} A i 1 in G i 1 , α 1 G_{i_{1},\alpha_{1}} G i 1 , α 1 . Take the expansion-based link ( u n d , S 1 , n d ) (u_{\mathrm{nd}},S_{1,\mathrm{nd}}) ( u nd , S 1 , nd ) as an example. Regardless it has which type, at the end we want to find a vertex set V u V_{u} V u such that
(a) V u ⊆ A i 1 V_{u}\subseteq A_{i_{1}} V u ⊆ A i 1 and ∣ V u ∣ ≥ ρ h e a v y |V_{u}|\ge\rho_{\mathrm{heavy}} ∣ V u ∣ ≥ ρ heavy .
(b) each vertex u ′ ∈ V u u'\in V_{u} u ′ ∈ V u is close to S S S in G i 1 , α 1 G_{i_{1},\alpha_{1}} G i 1 , α 1 , or formally, dist G i 1 , α 1 ( u ′ , S ) ≤ θ \operatorname{dist}_{G_{i_{1},\alpha_{1}}}(u',S)\le\theta dist G i 1 , α 1 ( u ′ , S ) ≤ θ for some θ \theta θ such that 2 θ + h d i a m , α 1 ≤ h e d , α 1 2\theta+h_{\mathrm{diam},\alpha_{1}}\le h_{\mathrm{ed},\alpha_{1}} 2 θ + h diam , α 1 ≤ h ed , α 1
(c) each vertex u ′ ∈ V u ∖ F u'\in V_{u}\setminus F u ′ ∈ V u ∖ F is close to V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) in G ∖ F G\setminus F G ∖ F , or formally, dist G ∖ F ( u ′ , V ( u n d ) ) ≤ η \operatorname{dist}_{G\setminus F}(u',V(u_{\mathrm{nd}}))\le\eta dist G ∖ F ( u ′ , V ( u nd )) ≤ η for some η \eta η such that 2 η + h e d , α 1 ⋅ s e d ≤ ℓ ( S 1 , n d ) 2\eta+h_{\mathrm{ed},\alpha_{1}}\cdot s_{\mathrm{ed}}\le\ell(S_{1,\mathrm{nd}}) 2 η + h ed , α 1 ⋅ s ed ≤ ℓ ( S 1 , nd ) .
We first argue that why finding such a set V u V_{u} V u (together with such a set V v V_{v} V v for the “v v v -side”) will upper bound dist G ∖ F ( V ( u n d ) , V ( v n d ) ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) dist G ∖ F ( V ( u nd ) , V ( v nd )) . First, we have
diam G i 1 , α 1 ( V u , V v ) ≤ 2 θ + diam G i 1 , α 1 ( S 1 ) ≤ 2 θ + h d i a m , α 1 ≤ h e d , α 1 . \operatorname{diam}_{G_{i_{1},\alpha_{1}}}(V_{u},V_{v})\le2\theta+\operatorname{diam}_{G_{i_{1},\alpha_{1}}}(S_{1})\le2\theta+h_{\mathrm{diam},\alpha_{1}}\le h_{\mathrm{ed},\alpha_{1}}. diam G i 1 , α 1 ( V u , V v ) ≤ 2 θ + diam G i 1 , α 1 ( S 1 ) ≤ 2 θ + h diam , α 1 ≤ h ed , α 1 .
Therefore, we can apply Lemma 4.15 on graph G i 1 , α 1 G_{i_{1},\alpha_{1}} G i 1 , α 1 , node-weighting A i 1 A_{i_{1}} A i 1 , and the two sets V u , V v V_{u},V_{v} V u , V v , which gives
dist G ∖ F ( V u ∖ F , V v ∖ F ) ≤ h e d , α 1 ⋅ s e d . \operatorname{dist}_{G\setminus F}(V_{u}\setminus F,V_{v}\setminus F)\le h_{\mathrm{ed},\alpha_{1}}\cdot s_{\mathrm{ed}}. dist G ∖ F ( V u ∖ F , V v ∖ F ) ≤ h ed , α 1 ⋅ s ed .
Finally, using (c), we have
dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ 2 η + h e d , α 1 ⋅ s e d ≤ ℓ ( S 1 , n d ) , \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) \le2\eta+h_{\mathrm{ed},\alpha_1}\cdot s_{\mathrm{ed}}\le\ell(S_{1,\mathrm{nd}}), dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ 2 η + h ed , α 1 ⋅ s ed ≤ ℓ ( S 1 , nd ) ,
and this completes the proof.
Now we define V u V_u V u , θ \theta θ and η \eta η for e l k , 1 = ( u n d , S 1 , n d ) e_{\mathrm{lk},1}=(u_{\mathrm{nd}},S_{1,\mathrm{nd}}) e lk , 1 = ( u nd , S 1 , nd ) depending on whether e l k , 1 e_{\mathrm{lk},1} e lk , 1 has type 4 or type 5, and show that they satisfies all requirements (a), (b) and (c). For the link e l k , 2 = ( v n d , S 1 , n d ) e_{\mathrm{lk},2}=(v_{\mathrm{nd}},S_{1,\mathrm{nd}}) e lk , 2 = ( v nd , S 1 , nd ) on the v v v -side, the argument is symmetric and thus omitted.
Subcase: e l k , 1 e_{\mathrm{lk},1} e lk , 1 has type 4. Select V u = V ( u n d ) V_u=V(u_{\mathrm{nd}}) V u = V ( u nd ) , θ = 0 \theta=0 θ = 0 and η = 0 \eta=0 η = 0 . Note that ∣ V u ∣ ≥ ρ h e a v y |V_u|\ge\rho_{\mathrm{heavy}} ∣ V u ∣ ≥ ρ heavy because u n d u_{\mathrm{nd}} u nd is a subtree node created for a heavy residual subtree of S 1 S_1 S 1 , so (a) is satisfied. Requirements (b) and (c) are obviously satisfied.
Subcase: e l k , 1 e_{\mathrm{lk},1} e lk , 1 has type 5. Let ( i 2 , α 2 , S 2 ) = ( level ( u n d ) , scale ( u n d ) , cluster ( u n d ) ) (i_2,\alpha_2,S_2)=(\operatorname{level}(u_{\mathrm{nd}}),\operatorname{scale}(u_{\mathrm{nd}}),\operatorname{cluster}(u_{\mathrm{nd}})) ( i 2 , α 2 , S 2 ) = ( level ( u nd ) , scale ( u nd ) , cluster ( u nd )) . Before selecting V u V_u V u , recall that a type-5 link guarantees that V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) is adjacent-cluster A i 1 A_{i_1} A i 1 -dense and that S 2 S_2 S 2 intersects S 1 S_1 S 1 . The adjacent-cluster A i 1 A_{i_1} A i 1 -denseness means there is a cluster S ∈ N i , α S\in\mathcal{N}_{i,\alpha} S ∈ N i , α at level i < i 2 i<i_2 i < i 2 and length scale α < α 2 \alpha<\alpha_2 α < α 2 such that Λ ( S ) \Lambda(S) Λ ( S ) intersects V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) and S S S is nearby A i 1 A_{i_1} A i 1 -dense. Select
V u = Λ i 1 ( S ) , θ = 2 h d i a m , α 1 + 4 h α 1 , η = h d i a m , α 1 + 2 h α 1 . V_u=\Lambda_{i_1}(S),\qquad\theta=2h_{\mathrm{diam},\alpha_1}+4h_{\alpha_1},\qquad\eta=h_{\mathrm{diam},\alpha_1}+2h_{\alpha_1}. V u = Λ i 1 ( S ) , θ = 2 h diam , α 1 + 4 h α 1 , η = h diam , α 1 + 2 h α 1 .
Now we show that our choices satisfy all (a), (b) and (c). First, (a) is satisfied since S S S is nearby A i 1 A_{i_1} A i 1 -dense. For (b), observe that for each u ′ ∈ V u u'\in V_u u ′ ∈ V u
dist G i 1 , α 1 ( u ′ , S 1 ) ≤ diam G i 1 , α 1 ( Λ ≤ i 1 ( S ) ) + diam G i 1 , α 1 ( S 2 ) (by Λ ( S ) intersects V ( u n d ) ⊆ S 2 , and S 2 intersects S 1 ) ≤ ( h d i a m , α 1 + 4 h α 1 ) + h d i a m , α 1 (by Observation 4.7) ≤ 2 h d i a m , α 1 + 4 h α 1 = θ , \begin{aligned}
\operatorname{dist}_{G_{i_1,\alpha_1}}(u',S_1)
&\le\operatorname{diam}_{G_{i_1,\alpha_1}}(\Lambda_{\le i_1}(S))+\operatorname{diam}_{G_{i_1,\alpha_1}}(S_2) && \text{(by } \Lambda(S) \text{ intersects } V(u_{\mathrm{nd}})\subseteq S_2\text{, and}\\
&&&\text{ }S_2 \text{ intersects } S_1\text{)}\\
&\le(h_{\mathrm{diam},\alpha_1}+4h_{\alpha_1})+h_{\mathrm{diam},\alpha_1} && \text{(by Observation 4.7)}\\
&\le2h_{\mathrm{diam},\alpha_1}+4h_{\alpha_1}\\
&=\theta,
\end{aligned} dist G i 1 , α 1 ( u ′ , S 1 ) ≤ diam G i 1 , α 1 ( Λ ≤ i 1 ( S )) + diam G i 1 , α 1 ( S 2 ) ≤ ( h diam , α 1 + 4 h α 1 ) + h diam , α 1 ≤ 2 h diam , α 1 + 4 h α 1 = θ , (by Λ ( S ) intersects V ( u nd ) ⊆ S 2 , and S 2 intersects S 1 ) (by Observation 4.7)
and also 2 θ + h d i a m , α 1 ≤ h e d , α 1 2\theta+h_{\mathrm{diam},\alpha_1}\le h_{\mathrm{ed},\alpha_1} 2 θ + h diam , α 1 ≤ h ed , α 1 by definition. For (c), observe that for each u ′ ∈ V u ∖ F ⊆ Λ ( S ) ∖ F u'\in V_u\setminus F\subseteq\Lambda(S)\setminus F u ′ ∈ V u ∖ F ⊆ Λ ( S ) ∖ F ,
dist G ∖ F ( u ′ , V ( u n d ) ) ≤ diam G ∖ F ( Λ ( S ) ∖ F ) (by Λ ( S ) ∖ F intersects V ( u n d ) ) ≤ h d i a m , α 1 + 2 h α 1 (by Observation 4.7 and S is unaffected) = η , \begin{aligned}
\operatorname{dist}_{G\setminus F}(u',V(u_{\mathrm{nd}}))
&\le\operatorname{diam}_{G\setminus F}(\Lambda(S)\setminus F) && \text{(by } \Lambda(S)\setminus F \text{ intersects } V(u_{\mathrm{nd}})\text{)}\\
&\le h_{\mathrm{diam},\alpha_1}+2h_{\alpha_1} && \text{(by Observation 4.7 and } S \text{ is unaffected)}\\
&=\eta,
\end{aligned} dist G ∖ F ( u ′ , V ( u nd )) ≤ diam G ∖ F ( Λ ( S ) ∖ F ) ≤ h diam , α 1 + 2 h α 1 = η , (by Λ ( S ) ∖ F intersects V ( u nd ) ) (by Observation 4.7 and S is unaffected)
and also 2 η + h e d , α 1 ⋅ s e d ≤ ℓ ( S 1 , n d ) 2\eta+h_{\mathrm{ed},\alpha_1}\cdot s_{\mathrm{ed}}\le\ell(S_{1,\mathrm{nd}}) 2 η + h ed , α 1 ⋅ s ed ≤ ℓ ( S 1 , nd ) by definition.
Case 3. Suppose P s u b P_{\mathrm{sub}} P sub has two links e l k , 1 : = ( u n d , S ^ 2 , n d ) e_{\mathrm{lk},1}:=(u_{\mathrm{nd}},\widehat{S}_{2,\mathrm{nd}}) e lk , 1 := ( u nd , S 2 , nd ) and e l k , 2 : = ( S ^ 2 , n d , v n d ) e_{\mathrm{lk},2}:=(\widehat{S}_{2,\mathrm{nd}},v_{\mathrm{nd}}) e lk , 2 := ( S 2 , nd , v nd ) with a satellite node S ^ 2 , n d \widehat{S}_{2,\mathrm{nd}} S 2 , nd in the middle. It suffices to show dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ ℓ ( S ^ 2 , n d ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}}))\le\ell(\widehat{S}_{2,\mathrm{nd}}) dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ ℓ ( S 2 , nd ) . Only links with types 3 and 6 can be adjacent to the satellite node S ^ 2 , n d \widehat{S}_{2,\mathrm{nd}} S 2 , nd . Let i 2 = level ( S ^ 2 , n d ) i_2=\operatorname{level}(\widehat{S}_{2,\mathrm{nd}}) i 2 = level ( S 2 , nd ) , α 2 = scale ( S ^ 2 , n d ) \alpha_2=\operatorname{scale}(\widehat{S}_{2,\mathrm{nd}}) α 2 = scale ( S 2 , nd ) and S ^ 2 ∈ N ^ i 2 , α 2 \widehat{S}_2\in\widehat{\mathcal{N}}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 be the satellite cluster for which S ^ 2 , n d \widehat{S}_{2,\mathrm{nd}} S 2 , nd is created.
Similar to Case 2, we want to exploit Lemma 4.15 w.r.t. A i 2 A_{i_2} A i 2 in G i 2 , α 2 G_{i_2,\alpha_2} G i 2 , α 2 . Again it suffices to find a vertex set V u V_u V u such that
(b) each vertex u ′ ∈ V u u' \in V_u u ′ ∈ V u is close to S ^ 2 \hat{S}_2 S ^ 2 in G i 2 , α 2 G_{i_2,\alpha_2} G i 2 , α 2 , or formally, dist G i 2 , α 2 ( u ′ , S ^ 2 ) ≤ θ \operatorname{dist}_{G_{i_2,\alpha_2}}(u',\hat{S}_2) \le\theta dist G i 2 , α 2 ( u ′ , S ^ 2 ) ≤ θ for some θ \theta θ such that 2 θ + h ^ d i a m , α 2 ≤ h ^ e d , α 2 2\theta+\hat{h}_{\mathrm{diam},\alpha_2}\le\hat{h}_{\mathrm{ed},\alpha_2} 2 θ + h ^ diam , α 2 ≤ h ^ ed , α 2 .
(c) each vertex u ′ ∈ V u ∖ F u' \in V_u \setminus F u ′ ∈ V u ∖ F is close to V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) in G ∖ F G\setminus F G ∖ F , or formally, dist G ∖ F ( u ′ , V ( u n d ) ) ≤ η \operatorname{dist}_{G\setminus F}(u',V(u_{\mathrm{nd}}))\le\eta dist G ∖ F ( u ′ , V ( u nd )) ≤ η for some η \eta η such that 2 η + h ^ e d , α 2 ⋅ s e d ≤ ℓ ( S ^ 2 , n d ) 2\eta+\hat{h}_{\mathrm{ed},\alpha_2}\cdot s_{\mathrm{ed}}\le\ell(\hat{S}_{2,\mathrm{nd}}) 2 η + h ^ ed , α 2 ⋅ s ed ≤ ℓ ( S ^ 2 , nd ) .
We emphasize that, this time the restrictions on θ \theta θ and η \eta η are slightly different.
Subcase: e l k 1 \mathrm{elk}_1 elk 1 has type 3. This type-3 link guarantees that there exist level i < i 2 i<i_2 i < i 2 , length scale α ≤ α 2 \alpha\le\alpha_2 α ≤ α 2 and an unaffected cluster S ∈ N i , α S\in\mathcal{N}_{i,\alpha} S ∈ N i , α such that Λ ( S ) \Lambda(S) Λ ( S ) intersects V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) , S S S is nearby A i 2 A_{i_2} A i 2 -dense, and S ^ 2 = Stl i 2 , α 2 ( S ) \hat{S}_2=\operatorname{Stl}_{i_2,\alpha_2}(S) S ^ 2 = Stl i 2 , α 2 ( S ) . Select
V u = Λ i 2 ( S ) , θ = 0 , η = h d i a m , α 2 + 2 h α 2 . V_u=\Lambda_{i_2}(S),\qquad\theta=0,\qquad\eta=h_{\mathrm{diam},\alpha_2}+2h_{\alpha_2}. V u = Λ i 2 ( S ) , θ = 0 , η = h diam , α 2 + 2 h α 2 .
We have (a) since S S S is nearby A i 2 A_{i_2} A i 2 -dense. Next, we have (b) follows from V u ⊆ S ^ 2 V_u\subseteq\hat{S}_2 V u ⊆ S ^ 2 (by Observation Observation 4.8, i.e., S ^ 2 \hat{S}_2 S ^ 2 covers the A i 2 A_{i_2} A i 2 -vertices in the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) ). Finally, (c) follows from the fact that V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) intersects Λ ( S ) \Lambda(S) Λ ( S ) , together with Observation Observation 4.7 (i.e., the surrounding set Λ ( S ) \Lambda(S) Λ ( S ) has low diameter).
Subcase: e l k 1 \mathrm{elk}_1 elk 1 has type 6. This type-6 link guarantees that
level ( u n d ) = i 2 \operatorname{level}(u_{\mathrm{nd}})=i_2 level ( u nd ) = i 2 , scale ( u n d ) = α 2 \operatorname{scale}(u_{\mathrm{nd}})=\alpha_2 scale ( u nd ) = α 2 , and S ^ 2 ∋ pivot ( S 2 ) \hat{S}_2\ni\operatorname{pivot}(S_2) S ^ 2 ∋ pivot ( S 2 ) for S 2 = cluster ( u n d ) S_2=\operatorname{cluster}(u_{\mathrm{nd}}) S 2 = cluster ( u nd ) , which implies S ^ 2 \hat{S}_2 S ^ 2 intersects S 2 S_2 S 2 .
there exist level i < i 2 i<i_2 i < i 2 , length scale α ≤ α 2 \alpha\le\alpha_2 α ≤ α 2 and an unaffected cluster S S S such that Λ ( S ) \Lambda(S) Λ ( S ) intersects V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) and S S S is nearby A i 2 A_{i_2} A i 2 -dense.
Therefore, select
V u = Λ i 2 ( S ) , θ = 2 h d i a m , α 2 + 4 h α 2 , η = h d i a m , α 2 + 2 h α 2 . V_u=\Lambda_{i_2}(S),\qquad\theta=2h_{\mathrm{diam},\alpha_2}+4h_{\alpha_2},\qquad\eta=h_{\mathrm{diam},\alpha_2}+2h_{\alpha_2}. V u = Λ i 2 ( S ) , θ = 2 h diam , α 2 + 4 h α 2 , η = h diam , α 2 + 2 h α 2 .
Again, (a) follows that S S S is nearby A i 2 A_{i_2} A i 2 -dense. For (b), for each u ′ ∈ V u u'\in V_u u ′ ∈ V u ,
dist G i 2 , α 2 ( u ′ , S ^ 2 ) ≤ diam G i 2 , α 2 ( Λ ≤ i 2 ( S ) ) + diam G i 2 , α 2 ( S 2 ) (by Λ ( S ) intersects V ( u n d ) ⊆ S 2 , and S 2 intersects S ^ 2 ) ≤ ( h d i a m , α 2 + 4 h α 2 ) + h d i a m , α 2 (by Observation 4.7) ≤ 2 h d i a m , α 2 + 4 h α 2 = θ . \begin{aligned}
\operatorname{dist}_{G_{i_2,\alpha_2}}(u',\hat{S}_2)
&\le\operatorname{diam}_{G_{i_2,\alpha_2}}(\Lambda_{\le i_2}(S))+\operatorname{diam}_{G_{i_2,\alpha_2}}(S_2)
&&\text{(by $\Lambda(S)$ intersects $V(u_{\mathrm{nd}})\subseteq S_2$, and}\\
&&&\text{$S_2$ intersects $\hat{S}_2$)}\\
&\le(h_{\mathrm{diam},\alpha_2}+4h_{\alpha_2})+h_{\mathrm{diam},\alpha_2}
&&\text{(by Observation 4.7)}\\
&\le2h_{\mathrm{diam},\alpha_2}+4h_{\alpha_2}\\
&=\theta.
\end{aligned} dist G i 2 , α 2 ( u ′ , S ^ 2 ) ≤ diam G i 2 , α 2 ( Λ ≤ i 2 ( S )) + diam G i 2 , α 2 ( S 2 ) ≤ ( h diam , α 2 + 4 h α 2 ) + h diam , α 2 ≤ 2 h diam , α 2 + 4 h α 2 = θ . (by Λ ( S ) intersects V ( u nd ) ⊆ S 2 , and S 2 intersects S ^ 2 ) (by Observation 4.7)
For (c), observe u ′ ∈ V u ∖ F ⊆ Λ ( S ) ∖ F u'\in V_u\setminus F\subseteq\Lambda(S)\setminus F u ′ ∈ V u ∖ F ⊆ Λ ( S ) ∖ F ,
dist G ∖ F ( u ′ , V ( u n d ) ) ≤ diam G ∖ F ( Λ ( S ) ∖ F ) (by Λ ( S ) ∖ F intersects V ( u n d ) ) ≤ h d i a m , α 2 + 2 h α 2 (by Observation 4.7 and S is unaffected) = η . \begin{aligned}
\operatorname{dist}_{G\setminus F}(u',V(u_{\mathrm{nd}}))
&\le\operatorname{diam}_{G\setminus F}(\Lambda(S)\setminus F)
&&\text{(by }\Lambda(S)\setminus F\text{ intersects }V(u_{\mathrm{nd}})\text{)}\\
&\le h_{\mathrm{diam},\alpha_2}+2h_{\alpha_2}
&&\text{(by Observation 4.7 and }S\text{ is unaffected)}\\
&=\eta.
\end{aligned} dist G ∖ F ( u ′ , V ( u nd )) ≤ diam G ∖ F ( Λ ( S ) ∖ F ) ≤ h diam , α 2 + 2 h α 2 = η . (by Λ ( S ) ∖ F intersects V ( u nd ) ) (by Observation 4.7 and S is unaffected)
The Query Algorithm
We first present the query algorithm, assuming that we know the explicit query graph Q Q Q and the all-pair distances in Q Q Q .
Algorithm 1 The Query Algorithm: Query(x, y, F)
1: Initialize ans = ∞.
2: for $i \in [0, i_{\max}]$, $\alpha \in [1, \alpha_{\max}]$ do
3: if ($\mathcal{N}_{i,\alpha}(x)$ is unaffected and $y \in \mathcal{N}_{i,\alpha}(x)$) or ($\mathcal{N}_{i,\alpha}(y)$ is unaffected and $x \in \mathcal{N}_{i,\alpha}(y)$) then
4: ans $\leftarrow \min\{\text{ans}, h_{\mathrm{diam},\alpha}\}$
5: end if
6: end for
7: for $i_x, i'_x \in [\operatorname{level}(x), i_{\max}]$, $i_y, i'_y \in [\operatorname{level}(y), i_{\max}]$, $\alpha_x, \alpha_y, \alpha'_x, \alpha'_y \in [1, \alpha_{\max}]$ do
8: if $\mathcal{N}_{i_x,\alpha_x}(x)$ is affected then
9: Let $x'_{\mathrm{px},\mathrm{nd}}$ be the node in $V_{\mathrm{nd}}(x)$ with $\operatorname{cluster}(x'_{\mathrm{px},\mathrm{nd}})=\mathcal{N}_{i_x,\alpha_x}(x)$. ▷ Pick $x'_{\mathrm{px}}=x$
10: else
11: if $i'_x > i_x$, $\alpha'_x \ge \alpha_x$, $\mathcal{N}_{i'_x,\alpha'_x}(x)$ is affected then
12: Pick an $x'_{\mathrm{px}} \in \operatorname{ProxyVertex}(x,i_x,\alpha_x,i'_x,\alpha'_x)\setminus F$. ▷ If unsuccessful, skip this iteration
13: Take the node $x'_{\mathrm{px},\mathrm{nd}} \in V_{\mathrm{nd}}(x'_{\mathrm{px}})$ with $\operatorname{cluster}(x'_{\mathrm{px},\mathrm{nd}})=\mathcal{N}_{i'_x,\alpha'_x}(x)$.
14: end if
15: end if
16: if $\mathcal{N}_{i_y,\alpha_y}(y)$ is affected then
17: Let $y'_{\mathrm{px},\mathrm{nd}}$ be the node in $V_{\mathrm{nd}}(y)$ with $\operatorname{cluster}(y'_{\mathrm{px},\mathrm{nd}})=\mathcal{N}_{i_y,\alpha_y}(y)$. ▷ Pick $y'_{\mathrm{px}}=y$
18: else
19: if $i'_y \ge i_y$, $\alpha'_y \ge \alpha_y$, $\mathcal{N}_{i'_y,\alpha'_y}(y)$ is affected then
20: Pick a $y'_{\mathrm{px}} \in \operatorname{ProxyVertex}(y,i_y,\alpha_y,i'_y,\alpha'_y)\setminus F$. ▷ If unsuccessful, skip this iteration
21: Take the node $y'_{\mathrm{px},\mathrm{nd}} \in V_{\mathrm{nd}}(y'_{\mathrm{px}})$ with $\operatorname{cluster}(y'_{\mathrm{px},\mathrm{nd}})=\mathcal{N}_{i'_y,\alpha'_y}(y)$.
22: end if
23: end if
24: If both $x'_{\mathrm{px},\mathrm{nd}}$ and $y'_{\mathrm{px},\mathrm{nd}}$ are picked successfully,
ans $\leftarrow \min\{\text{ans}, 2h_{\mathrm{diam},\alpha_x}+2h_{\mathrm{diam},\alpha_y}+\operatorname{dist}_Q(x'_{\mathrm{px},\mathrm{nd}},y'_{\mathrm{px},\mathrm{nd}})\}$.
25: end for
26: Return ans.
The Proxy Lists. The query algorithm also requires the following additional data structures called the proxy lists , which should be precomputed and stored in the construction phase.
For each vertex x x x , each levels i x , i x ′ i_x,i'_x i x , i x ′ s.t. level ( x ) ≤ i x < i x ′ ≤ i max \operatorname{level}(x) \le i_x < i'_x \le i_{\max} level ( x ) ≤ i x < i x ′ ≤ i m a x , and each length scale α x , α x ′ \alpha_x,\alpha'_x α x , α x ′ s.t. α x ≤ α x ′ ≤ α max \alpha_x \le\alpha'_x \le\alpha_{\max} α x ≤ α x ′ ≤ α m a x , we will store a set of at most f + 1 f+1 f + 1 vertices, denoted by ProxyVertex ( x , i x , α x , i x ′ , α x ′ ) \operatorname{ProxyVertex}(x,i_x,\alpha_x,i'_x,\alpha'_x) ProxyVertex ( x , i x , α x , i x ′ , α x ′ ) , chosen from
V t m n ( N i x ′ , α x ′ ( x ) ) ∩ Λ ( N i x , α x ( x ) ) . V_{\mathrm{tmn}}\left(\mathcal{N}_{i'_x,\alpha'_x}(x)\right) \cap\Lambda\left(\mathcal{N}_{i_x,\alpha_x}(x)\right). V tmn ( N i x ′ , α x ′ ( x ) ) ∩ Λ ( N i x , α x ( x ) ) .
Recall that N i x , α x ( x ) \mathcal{N}_{i_x,\alpha_x}(x) N i x , α x ( x ) is the cluster covering the neighborhood of x x x identified by Theorem 3.10 . If the intersection has size at most f + 1 f+1 f + 1 , then ProxyVertex ( x , i x , α x , i x ′ , α x ′ ) \operatorname{ProxyVertex}(x,i_x,\alpha_x,i'_x,\alpha'_x) ProxyVertex ( x , i x , α x , i x ′ , α x ′ ) is exactly this set. Otherwise, it is an arbitrary subset of size f + 1 f+1 f + 1 .
The Query Algorithm. Consider a query between vertices x x x and y y y under vertex failures F F F . Fix an arbitrary simple shortest path P P P , called the witness path , connecting x x x and y y y in G ∖ F G \setminus F G ∖ F . This means leng G ( P ) = dist G ∖ F ( x , y ) \operatorname{leng}_G(P)=\operatorname{dist}_{G\setminus F}(x,y) leng G ( P ) = dist G ∖ F ( x , y ) . For clarity, we first include the pseudocode of the query algorithm in Algorithm 1.
From a very high level, the intuition of Algorithm 1 is as follows. Just for analysis, we let α ⋆ \alpha^\star α ⋆ be the unique length scale such that
leng G ( P ) ≤ α ⋆ < 2 ⋅ leng G ( P ) . \operatorname{leng}_G(P) \le\alpha^\star< 2 \cdot\operatorname{leng}_G(P). leng G ( P ) ≤ α ⋆ < 2 ⋅ leng G ( P ) .
The first For loop (Lines 2 to 6) is checking the corner case (i.e. the following Lemma 4.17 ) that P P P is fully contained in some unaffected cluster with length scale α ⋆ \alpha^\star α ⋆ . If so, the diameter of that cluster is already a good solution. Otherwise, the second For loop (lines 7 to 19) will find two nodes in Q Q Q that are “close” to the vertices x x x and y y y , and then output the precomputed distance between these two nodes in Q Q Q (with some additive adjustment).
In fact, the second loop corresponds to Lemma 4.19 right below, where guarantees 1(a), 1(b), 2(a), and 2(b) correspond one-to-one to the branches in the pseudocode. This Lemma 4.19 may be difficult to digest at first glance. However, we note that part of the complexity in the lemma statement and its proof arises from separating the update phase from the query phase to obtain faster query time. Indeed, if the query vertices x x x and y y y were already known in the update phase, and we defined the affected clusters to be all clusters hit by F ∪ { x , y } F \cup\{x,y\} F ∪ { x , y } rather than just F F F , then the simpler guarantees 1(a) and 2(a) would always hold.
Finally, we note that the nodes x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ and y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ guessed by the algorithm may not be the same as the nodes x p x , n d x_{\mathrm{px,nd}} x px , nd and y p x , n d y_{\mathrm{px,nd}} y px , nd selected by Lemma 4.19 (this only happens in cases 1(b) and 2(b)). Therefore, we need an additional Lemma 4.20 which finally establishes the correctness of upper-bound direction by showing x p x , n d x_{\mathrm{px,nd}} x px , nd and x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ (and also y p x , n d y_{\mathrm{px,nd}} y px , nd and y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ ) are close in the query graph.
The correctness of the lower-bound direction is straightforward given Lemma 4.16 . We deferred the proof to § 4.6.2 .
Upper Bounding the Solution
Lemma 4.17. If there exist either
level i x i_x i x such that N i x , α ⋆ \mathcal{N}_{i_x,\alpha^\star} N i x , α ⋆ is unaffected and y ∈ N i x , α ⋆ ( x ) y \in\mathcal{N}_{i_x,\alpha^\star}(x) y ∈ N i x , α ⋆ ( x ) , or
level i y i_y i y such that N i y , α ⋆ \mathcal{N}_{i_y,\alpha^\star} N i y , α ⋆ is unaffected and x ∈ N i y , α ⋆ ( y ) x \in\mathcal{N}_{i_y,\alpha^\star}(y) x ∈ N i y , α ⋆ ( y ) ,
then ans ≤ 2 ⋅ s n c ⋅ dist G ∖ F ( x , y ) \operatorname{ans} \le2 \cdot s_{\mathrm{nc}} \cdot\operatorname{dist}_{G\setminus F}(x,y) ans ≤ 2 ⋅ s nc ⋅ dist G ∖ F ( x , y ) .
Proof. Suppose i x i_x i x exists (the case in which i y i_y i y exists is analogous). Then dist G i x , α ⋆ ∖ F ( x , y ) ≤ h d i a m , α ⋆ \operatorname{dist}_{G_{i_x,\alpha^\star}\setminus F}(x,y) \le h_{\mathrm{diam},\alpha^\star} dist G i x , α ⋆ ∖ F ( x , y ) ≤ h diam , α ⋆ , since the cluster N i x , α ⋆ ( x ) \mathcal{N}_{i_x,\alpha^\star}(x) N i x , α ⋆ ( x ) includes both x x x and y y y and has no failed vertex. Therefore, ans ≤ h d i a m , α ⋆ ≤ s n c ⋅ h α ⋆ ≤ 2 ⋅ s n c ⋅ dist G ∖ F ( x , y ) \operatorname{ans} \le h_{\mathrm{diam},\alpha^\star} \le s_{\mathrm{nc}} \cdot h_{\alpha^\star} \le2 \cdot s_{\mathrm{nc}} \cdot\operatorname{dist}_{G\setminus F}(x,y) ans ≤ h diam , α ⋆ ≤ s nc ⋅ h α ⋆ ≤ 2 ⋅ s nc ⋅ dist G ∖ F ( x , y ) .
Assumption 4.18. Assume the condition of Lemma 4.17 is not fulfilled. Also, assume the high probability event in Lemma 4.4 happens.
Lemma 4.19. Under Assumption 4.18 4.18 4.18 , there exist
two vertices x p x x_{\mathrm{px}} x px and y p x y_{\mathrm{px}} y px on P P P called proxy vertices,
levels i x ≥ level ( x p x ) , i y ≥ level ( y p x ) i_x \ge\operatorname{level}(x_{\mathrm{px}}), i_y \ge\operatorname{level}(y_{\mathrm{px}}) i x ≥ level ( x px ) , i y ≥ level ( y px ) , length scales α x , α y ≤ α ⋆ \alpha_x,\alpha_y \le\alpha^\star α x , α y ≤ α ⋆ , and clusters S x : = N i x , α x ( x ) , S y : = N i y , α y ( y ) S_x := \mathcal{N}_{i_x,\alpha_x}(x), S_y := \mathcal{N}_{i_y,\alpha_y}(y) S x := N i x , α x ( x ) , S y := N i y , α y ( y ) ,
two nodes x p x , n d ∈ V n d ( x p x ) x_{\mathrm{px,nd}} \in V_{\mathrm{nd}}(x_{\mathrm{px}}) x px , nd ∈ V nd ( x px ) and y p x , n d ∈ V n d ( y p x ) y_{\mathrm{px,nd}} \in V_{\mathrm{nd}}(y_{\mathrm{px}}) y px , nd ∈ V nd ( y px ) called proxy nodes
further satisfying the following.
For x p x x_{\mathrm{px}} x px and x p x , n d x_{\mathrm{px,nd}} x px , nd , either
(a) x p x = x x_{\mathrm{px}}=x x px = x , S x S_x S x is affected, and cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px,nd}}) cluster ( x px , nd ) is exactly S x S_x S x , or
(b) x p x ∈ Λ ( S x ) x_{\mathrm{px}} \in\Lambda(S_x) x px ∈ Λ ( S x ) , S x S_x S x is unaffected, and cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px,nd}}) cluster ( x px , nd ) is exactly the affected cluster S x ′ : = N i x ′ , α x ′ ( x ) S'_{x} := \mathcal{N}_{i'_x,\alpha'_x}(x) S x ′ := N i x ′ , α x ′ ( x ) for some i x ′ > i x i'_x > i_x i x ′ > i x and α x ′ ∈ [ α x ′ , α ⋆ ] \alpha'_x \in[\alpha'_x,\alpha^\star] α x ′ ∈ [ α x ′ , α ⋆ ] .
Similarly, for y p x y_{\mathrm{px}} y px and y p x , n d y_{\mathrm{px,nd}} y px , nd , either
(a) y p x = y y_{\mathrm{px}}=y y px = y , S y S_y S y is affected, and cluster ( y p x , n d ) \operatorname{cluster}(y_{\mathrm{px,nd}}) cluster ( y px , nd ) is exactly S y S_y S y , or
(b) y p x ∈ Λ ( S y ) y_{\mathrm{px}} \in\Lambda(S_y) y px ∈ Λ ( S y ) , S y S_y S y is unaffected, and cluster ( y p x , n d ) \operatorname{cluster}(y_{\mathrm{px,nd}}) cluster ( y px , nd ) is exactly the affected cluster S y ′ : = N i y ′ , α y ′ ( y ) S'_y := \mathcal{N}_{i'_y,\alpha'_y}(y) S y ′ := N i y ′ , α y ′ ( y ) for some i y ′ > i y i'_y > i_y i y ′ > i y and α y ′ ∈ [ α y ′ , α ⋆ ] \alpha'_y \in[\alpha'_y,\alpha^\star] α y ′ ∈ [ α y ′ , α ⋆ ] .
dist Q ( x p x , n d , y p x , n d ) ≤ O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ dist G ( x , y ) \operatorname{dist}_{Q}(x_{\mathrm{px,nd}},y_{\mathrm{px,nd}}) \le O((s_{\mathrm{tree}}+s_{\mathrm{nc}})\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot i_{\max})\cdot\operatorname{dist}_{G}(x,y) dist Q ( x px , nd , y px , nd ) ≤ O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ dist G ( x , y ) .
Lemma 4.20. Under Assumption 4.18 4.18 4.18 , there exist levels i x , i x ′ , i y , i y ′ i_x,i'_x,i_y,i'_y i x , i x ′ , i y , i y ′ and length scales α x , α x ′ , α y , α y ′ \alpha_x,\alpha'_x,\alpha_y,\alpha'_y α x , α x ′ , α y , α y ′ s.t. level ( x ) ≤ i x < i x ′ ≤ i max \operatorname{level}(x) \le i_x < i'_x \le i_{\max} level ( x ) ≤ i x < i x ′ ≤ i m a x , level ( y ) ≤ i y < i y ′ ≤ i max \operatorname{level}(y) \le i_y < i'_y \le i_{\max} level ( y ) ≤ i y < i y ′ ≤ i m a x , 1 ≤ α x ≤ α x ′ ≤ α ⋆ 1 \le\alpha_x \le\alpha'_x \le\alpha^\star 1 ≤ α x ≤ α x ′ ≤ α ⋆ , and 1 ≤ α y , α y ′ ≤ α ⋆ 1 \le\alpha_y,\alpha'_y \le\alpha^\star 1 ≤ α y , α y ′ ≤ α ⋆ , so that on line 24, ans will be updated, and
2 h d i a m , α x + 2 h d i a m , α y + dist Q ( x p x , n d ′ , y p x , n d ′ ) ≤ O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ dist G ∖ F ( x , y ) . 2h_{\mathrm{diam},\alpha_x}+2h_{\mathrm{diam},\alpha_y}+\operatorname{dist}_{Q}(x'_{\mathrm{px,nd}},y'_{\mathrm{px,nd}}) \le O((s_{\mathrm{tree}}+s_{\mathrm{nc}})\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot i_{\max})\cdot\operatorname{dist}_{G\setminus F}(x,y). 2 h diam , α x + 2 h diam , α y + dist Q ( x px , nd ′ , y px , nd ′ ) ≤ O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ dist G ∖ F ( x , y ) .
Decompose the Witness Path P P P : Proof of Lemmas 4.19 and 4.20
Consider the following recursive decomposition procedure, which recursively decomposes the witness path P P P into subpaths called segments . Naturally, the procedure starts with the whole path P P P , which is the unique initial segment . Each of the other segments appearing in this procedure will be classified according to two independent criteria:
as recursive or leaf , and
as leftmost , middle , or rightmost .
In particular, the initial segment is also viewed as a recursive segment.
Notations on Segments. Before describing the procedure, we introduce some general notations. For two vertices w w w and z z z on P P P , we let P [ w , z ] P[w,z] P [ w , z ] denotes the subpath of P P P with w w w and z z z as the left and right endpoints. We use σ \sigma σ to denote segments, which is always of the form σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] .
The Corresponding Level, Length Scale, and Clusters (or Edge). Each segment σ \sigma σ corresponds to a level i σ i_\sigma i σ , a length scale α σ \alpha_\sigma α σ , and a cluster S σ ∈ N i σ , α σ S_\sigma\in\mathcal{N}_{i_\sigma,\alpha_\sigma} S σ ∈ N i σ , α σ . In a few corner cases, the corresponding cluster S σ S_\sigma S σ degenerates into a single original edge e σ e_\sigma e σ . The level i σ i_\sigma i σ and the cluster S σ S_\sigma S σ (or edge e σ e_\sigma e σ ) are determined by the procedure, whereas the length scale α σ \alpha_\sigma α σ is known in advance, which is the unique length scale such that
leng G ( σ ) ≤ h α σ < 2 leng G ( σ ) . \operatorname{leng}_G(\sigma) \le h_{\alpha_\sigma} < 2\operatorname{leng}_G(\sigma). leng G ( σ ) ≤ h α σ < 2 leng G ( σ ) .
We note that two segments may represent the same subpath of P P P while having different corresponding levels or corresponding clusters (or edges).
The Interior of a Segment. For each segment σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] , its interior , denoted by σ ∘ \sigma^\circ σ ∘ , is a (possibly empty) subpath of this segment, defined as follows. If σ \sigma σ is an initial, leftmost, rightmost, or middle segment, then its interior σ ∘ \sigma^\circ σ ∘ is P [ w , z ] P[w,z] P [ w , z ] , P ( w , z ] P(w,z] P ( w , z ] , P [ w , z ) P[w,z) P [ w , z ) , and P ( w , z ) P(w,z) P ( w , z ) , respectively. Here, P ( w , z ] P(w,z] P ( w , z ] denotes the subpath of P P P obtained by deleting from P [ w , z ] P[w,z] P [ w , z ] the left endpoint w w w . The other notations are defined analogously.
The Decomposition Procedure. Now, we are ready to describe the decomposition procedure.
The Initial Segment. The initial segment σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] is the entire path P P P (i.e., w = x w=x w = x and z = y z=y z = y ). Its corresponding level i σ i_\sigma i σ is the maximum level such that σ \sigma σ intersects A i σ A_{i_\sigma} A i σ . The cluster S σ S_\sigma S σ is defined to be S σ : = N i σ , α σ ( w ) S_\sigma:= \mathcal{N}_{i_\sigma,\alpha_\sigma}(w) S σ := N i σ , α σ ( w ) . We note that choosing such i σ i_\sigma i σ (rather than starting from i max i_{\max} i m a x ) is purely for convenience and is not essential (see Remark 4.21 for more discussion).
For better understanding, we point out that the above definition guarantees that the interior σ ∘ \sigma^\circ σ ∘ (which is exactly σ \sigma σ since σ \sigma σ is the initial segment) intersects A i σ A_{i_\sigma} A i σ and is disjoint from A > i σ A_{>i_\sigma} A > i σ . Moreover, we have α σ = α ⋆ \alpha_\sigma= \alpha^\star α σ = α ⋆ by definition, and thus Assumption 4.18 guarantees that both N i σ , α σ ( w ) \mathcal{N}_{i_\sigma,\alpha_\sigma}(w) N i σ , α σ ( w ) and N i σ , α σ ( z ) \mathcal{N}_{i_\sigma,\alpha_\sigma}(z) N i σ , α σ ( z ) are affected.
Decomposing an Recursive Segment. Let σ \sigma σ be a recursive segment. The procedure will guarantee that, at this moment, the level i σ i_\sigma i σ , length scale α σ \alpha_\sigma α σ and cluster S σ S_\sigma S σ have been determined.
Let r 1 , r 2 , … , r k r_1,r_2,\ldots,r_k r 1 , r 2 , … , r k be the A i σ A_{i_\sigma} A i σ -vertices on σ ∘ \sigma^\circ σ ∘ (ordered from the left to the right), called the breakpoints of σ \sigma σ . It is possible that σ ∘ \sigma^\circ σ ∘ is disjoint from A i σ A_{i_\sigma} A i σ and thus such r 1 , … , r k r_1,\ldots,r_k r 1 , … , r k do not exist.
The segments generated in this decomposition step are naturally P [ w , r 1 ] P[w,r_1] P [ w , r 1 ] , P [ r 1 , r 2 ] P[r_1,r_2] P [ r 1 , r 2 ] , … \ldots … , P [ r k − 1 , r k ] P[r_{k-1},r_k] P [ r k − 1 , r k ] , and P [ r k , z ] P[r_k,z] P [ r k , z ] (excluding all the empty segments containing no edge). We use σ ~ \tilde{\sigma} σ ~ to denote such a generated segment .
For each generated segment σ ~ \tilde{\sigma} σ ~ , we define its level i σ ~ : = i σ − 1 i_{\tilde{\sigma}} := i_\sigma- 1 i σ ~ := i σ − 1 . Next, we classify the generated segments as leftmost, middle, or rightmost segments (define their corresponding clusters or edges along the way), and then classify them as recursive or leaf segments.
Leftmost/Middle/Rightmost Classification.
If (i) σ \sigma σ is the initial segment or a leftmost segment, and (ii) w w w and r 1 r_1 r 1 are different, then we classify σ ~ : = P [ w , r 1 ] \tilde{\sigma} := P[w,r_1] σ ~ := P [ w , r 1 ] as a leftmost segment, and define its corresponding cluster S ~ σ ~ : = N i σ ~ , α σ ~ ( w ) \tilde{S}_{\tilde{\sigma}} := \mathcal{N}_{i_{\tilde{\sigma}},\alpha_{\tilde{\sigma}}}(w) S ~ σ ~ := N i σ ~ , α σ ~ ( w ) .
If (i) σ \sigma σ is the initial segment or a rightmost segment, and (ii) z z z and r k r_k r k are different, then we classify σ ~ : = P [ r k , z ] \tilde{\sigma} := P[r_k,z] σ ~ := P [ r k , z ] as a rightmost segment, and define its corresponding cluster S σ ~ : = N i σ ~ , α σ ~ ( z ) S_{\tilde{\sigma}} := \mathcal{N}_{i_{\tilde{\sigma}},\alpha_{\tilde{\sigma}}}(z) S σ ~ := N i σ ~ , α σ ~ ( z ) .
For each of the remaining generated segment σ ~ : = P [ w ~ , z ~ ] \tilde{\sigma} := P[\tilde{w},\tilde{z}] σ ~ := P [ w ~ , z ~ ] , we classify them as a middle segment. If σ ~ \tilde{\sigma} σ ~ is a single edge ( w ~ , z ~ ) (\tilde{w},\tilde{z}) ( w ~ , z ~ ) , then define its corresponding edge e σ ~ : = ( w ~ , z ~ ) e_{\tilde{\sigma}} := (\tilde{w},\tilde{z}) e σ ~ := ( w ~ , z ~ ) , otherwise, define its corresponding cluster S σ ~ : = N i σ ~ , α σ ~ ( w ~ ∘ ) S_{\tilde{\sigma}} := \mathcal{N}_{i_{\tilde{\sigma}},\alpha_{\tilde{\sigma}}}(\tilde{w}^{\circ}) S σ ~ := N i σ ~ , α σ ~ ( w ~ ∘ ) , where w ~ ∘ \tilde{w}^{\circ} w ~ ∘ is the vertex on σ ~ \tilde{\sigma} σ ~ adjacent to the left endpoint w ~ \tilde{w} w ~ (i.e., w ~ ∘ \tilde{w}^{\circ} w ~ ∘ is the left endpoint of σ ~ \tilde{\sigma} σ ~ ’s interior).
Remark 4.21. We emphasize when σ \sigma σ is the initial segment, since we define i σ i_{\sigma} i σ to be the maximum level s.t. σ \sigma σ intersects A i σ A_{i_{\sigma}} A i σ , there will be at least one breakpoint r 1 , … , r k r_1,\ldots,r_k r 1 , … , r k , and thus a generated segment σ ~ \tilde{\sigma} σ ~ will not be classified as a leftmost segment and a rightmost segment simultaneously. This is purely for convenience and is not essential. The proof still goes through if we set i σ : = i max i_{\sigma}:=i_{\max} i σ := i m a x for the initial segment.
Recursive/Leaf Classification. For each generated segment σ ~ \tilde{\sigma} σ ~ , if it has a corresponding cluster S σ ~ S_{\tilde{\sigma}} S σ ~ and S σ ~ S_{\tilde{\sigma}} S σ ~ is affected, then σ ~ \tilde{\sigma} σ ~ is a recursive segment (and thus it will be further decomposed), otherwise, it is a leaf segment.
This finishes the description of the decomposition process. By considering the recursion tree, we can naturally define the ancestor-descendant relationships among segments. For better understanding, we note that the leftmost segments only appear in the “leftmost root-to-leaf path” in the recursion tree, and this “leftmost root-to-leaf path” begins with the initial segment, followed by zero or more leftmost segments and then zero or more middle segments. Similar observations hold for the rightmost segments and the “rightmost root-to-leaf path”.
Properties of Segments. Next, we state some properties of the segments that follow directly from the description of the procedure.
For each segment σ \sigma σ , its endpoints outside the interior σ ∘ \sigma^{\circ} σ ∘ belong to A > i σ A_{>i_{\sigma}} A > i σ , and its interior σ ∘ \sigma^{\circ} σ ∘ is disjoint from A > i σ A_{>i_{\sigma}} A > i σ .
For each segment σ \sigma σ whose S σ S_{\sigma} S σ exists, its interior σ ∘ \sigma^{\circ} σ ∘ is fully contained in S σ S_{\sigma} S σ . To see this, note that
leng G i σ , α σ ( σ ∘ ) ≤ leng G ( σ ∘ ) + h α σ ≤ 2 h α σ = h c o v , α σ . \operatorname{leng}_{G_{i_{\sigma},\alpha_{\sigma}}}(\sigma^{\circ}) \le\operatorname{leng}_{G}(\sigma^{\circ}) + h_{\alpha_{\sigma}} \le2h_{\alpha_{\sigma}} = h_{\mathrm{cov},\alpha_{\sigma}}. leng G i σ , α σ ( σ ∘ ) ≤ leng G ( σ ∘ ) + h α σ ≤ 2 h α σ = h cov , α σ .
where the first inequality is by Assumption 4.18 , Lemma 4.4 and that σ ∘ \sigma^{\circ} σ ∘ is disjoint from A > i σ A_{>i_{\sigma}} A > i σ (Property 1). Also, for the endpoints w ∘ w^{\circ} w ∘ and z ∘ z^{\circ} z ∘ of σ ∘ \sigma^{\circ} σ ∘ , by definition the cluster S σ S_{\sigma} S σ covers either Ball G i σ , α σ ( w ∘ , h c o v , σ ) \operatorname{Ball}_{G_{i_{\sigma},\alpha_{\sigma}}}(w^{\circ},h_{\mathrm{cov},\sigma}) Ball G i σ , α σ ( w ∘ , h cov , σ ) or Ball G i σ , α σ ( z ∘ , h c o v , σ ) \operatorname{Ball}_{G_{i_{\sigma},\alpha_{\sigma}}}(z^{\circ},h_{\mathrm{cov},\sigma}) Ball G i σ , α σ ( z ∘ , h cov , σ ) . Hence, S σ S_{\sigma} S σ covers the whole σ ∘ \sigma^{\circ} σ ∘ .
For each segment σ \sigma σ whose S σ S_{\sigma} S σ exists, its endpoints outside the interior σ ∘ \sigma^{\circ} σ ∘ belong to Λ ( S σ ) \Lambda(S_{\sigma}) Λ ( S σ ) . To see this, let w w w be such an endpoint. Note that σ ∘ ⊆ S σ \sigma^{\circ}\subseteq S_{\sigma} σ ∘ ⊆ S σ (Property 2) and w w w has an edge of length at most leng G ( σ ) ≤ h α σ \operatorname{leng}_{G}(\sigma)\le h_{\alpha_{\sigma}} leng G ( σ ) ≤ h α σ connecting σ ∘ \sigma^{\circ} σ ∘ , so by definition, w ∈ Λ ( S σ ) w\in\Lambda(S_{\sigma}) w ∈ Λ ( S σ ) .
Each recursive segment has an affected S σ S_{\sigma} S σ , while each leaf segment has either an unaffected S σ S_{\sigma} S σ or a corresponding edge e σ e_{\sigma} e σ .
If σ \sigma σ is the initial segment, both N i σ , α σ ( x ) \mathcal{N}_{i_{\sigma},\alpha_{\sigma}}(x) N i σ , α σ ( x ) and N i σ , α σ ( y ) \mathcal{N}_{i_{\sigma},\alpha_{\sigma}}(y) N i σ , α σ ( y ) are affected. The initial segment has a corresponding cluster S σ = N i σ , α σ ( x ) S_{\sigma}=\mathcal{N}_{i_{\sigma},\alpha_{\sigma}}(x) S σ = N i σ , α σ ( x ) . Each leftmost segment σ \sigma σ has S σ = N i σ , α σ ( x ) S_{\sigma}=\mathcal{N}_{i_{\sigma},\alpha_{\sigma}}(x) S σ = N i σ , α σ ( x ) . Similarly, each rightmost segment has S σ = N i σ , α σ ( y ) S_{\sigma}=\mathcal{N}_{i_{\sigma},\alpha_{\sigma}}(y) S σ = N i σ , α σ ( y ) .
In the following analysis, we focus on the leaf segments. We have following property about the leftmost/middle/rightmost classification of leaf segments.
Concatenating the leaf segments reconstructs the original path P P P . Furthermore, only the first (resp. last) leaf segment in this concatenation can be a leftmost (resp. rightmost) leaf segment. It is also possible, however, that the first or last leaf segment is instead classified as a middle segment.
Endpoint Nodes of Leaf Segments. Now, for each leaf segment σ \sigma σ , and each endpoint w w w of σ \sigma σ that lies outside its interior σ ∘ \sigma^\circ σ ∘ , we will define its endpoint node w n d ∈ V n d ( w ) w_{\mathrm{nd}} \in V_{\mathrm{nd}}(w) w nd ∈ V nd ( w ) as follows. In other words, we define endpoint nodes for all leaf-segment endpoints, except for the left endpoint of the leftmost leaf segment and the right endpoint of the rightmost leaf segment.
It is clear from the decomposition that such an endpoint w w w must be a breakpoint of a unique recursive segment σ w \sigma_w σ w , and σ w \sigma_w σ w must be an ancestor of σ \sigma σ . Then naturally, we define w n d w_{\mathrm{nd}} w nd to be the node in V n d ( w ) V_{\mathrm{nd}}(w) V nd ( w ) with cluster ( w n d ) = S σ w \operatorname{cluster}(w_{\mathrm{nd}}) = S_{\sigma_w} cluster ( w nd ) = S σ w . Note that w n d w_{\mathrm{nd}} w nd is well-defined because w ∈ V t m n ( S σ w ) w \in V_{\mathrm{tmn}}(S_{\sigma_w}) w ∈ V tmn ( S σ w ) (since both w w w and S σ w S_{\sigma_w} S σ w are at level i σ w i_{\sigma_w} i σ w ) and S σ w S_{\sigma_w} S σ w is affected (by Property 4).
Mapping Middle Leaf Segments to the Query Graph. Now, we map each middle leaf segment σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] to a path P Q , σ P_{Q,\sigma} P Q , σ on the query graph Q Q Q . The endpoints of P Q , σ P_{Q,\sigma} P Q , σ will be exactly the endpoint nodes w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd of σ \sigma σ . Furthermore, when defining P Q , σ P_{Q,\sigma} P Q , σ , we may designate a node on it as its portal , denoted by portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) . Our goal is to define P Q , σ P_{Q,\sigma} P Q , σ and portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) satisfies the following Lemma 4.22.
Lemma 4.22. If P Q , σ P_{Q,\sigma} P Q , σ has no portal, then
len Q ( P Q , σ ) ≤ ( h d i a m , α σ h α σ + 2 ) ⋅ len G ( σ ) . \operatorname{len}_{Q}(P_{Q,\sigma}) \leq\left(\frac{h_{\mathrm{diam},\alpha_\sigma}}{h_{\alpha_\sigma}} + 2\right) \cdot\operatorname{len}_{G}(\sigma). len Q ( P Q , σ ) ≤ ( h α σ h diam , α σ + 2 ) ⋅ len G ( σ ) . If P Q , σ P_{Q,\sigma} P Q , σ has a portal portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) , then portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) is the cluster node for the S σ ′ S_{\sigma'} S σ ′ of some recursive segment σ ′ \sigma' σ ′ in the decomposition, and
len Q ( P Q , σ ) ≤ 5 ⋅ max { 1 , h t r e e , α h e d , α ⋅ h ^ e d , α h e d , α } ⋅ ℓ ( portal ( σ ) ) \operatorname{len}_{Q}(P_{Q,\sigma}) \leq5 \cdot\max\left\{1,\frac{h_{\mathrm{tree},\alpha}}{h_{\mathrm{ed},\alpha}} \cdot\frac{\widehat{h}_{\mathrm{ed},\alpha}}{h_{\mathrm{ed},\alpha}}\right\} \cdot\ell(\operatorname{portal}(\sigma)) len Q ( P Q , σ ) ≤ 5 ⋅ max { 1 , h ed , α h tree , α ⋅ h ed , α h ed , α } ⋅ ℓ ( portal ( σ )) for α : = scale ( portal ( σ ) ) \alpha:= \operatorname{scale}(\operatorname{portal}(\sigma)) α := scale ( portal ( σ )) .
For clarity, we write i w , i z , α w , α z , S w , S z i_w,i_z,\alpha_w,\alpha_z,S_w,S_z i w , i z , α w , α z , S w , S z for level ( w n d ) \operatorname{level}(w_{\mathrm{nd}}) level ( w nd ) , level ( z n d ) \operatorname{level}(z_{\mathrm{nd}}) level ( z nd ) , scale ( w n d ) \operatorname{scale}(w_{\mathrm{nd}}) scale ( w nd ) , scale ( z n d ) \operatorname{scale}(z_{\mathrm{nd}}) scale ( z nd ) , cluster ( w n d ) \operatorname{cluster}(w_{\mathrm{nd}}) cluster ( w nd ) , cluster ( z n d ) \operatorname{cluster}(z_{\mathrm{nd}}) cluster ( z nd ) . Also recall that, if σ \sigma σ has a corresponding cluster S σ S_\sigma S σ , then the level and length scale of σ \sigma σ and S σ S_\sigma S σ are the same, i.e., level ( S σ ) = i σ \operatorname{level}(S_\sigma) = i_\sigma level ( S σ ) = i σ and scale ( S σ ) = α σ \operatorname{scale}(S_\sigma) = \alpha_\sigma scale ( S σ ) = α σ . The following Observation 4.23 will be important to show the existence of different types of links.
Observation 4.23. When σ \sigma σ has a corresponding cluster S σ S_\sigma S σ , the following holds for the clusters S w S_w S w , S z S_z S z and S σ S_\sigma S σ .
i w , i z > i σ i_w,i_z > i_\sigma i w , i z > i σ , and α w , α z ≥ α σ \alpha_w,\alpha_z \geq\alpha_\sigma α w , α z ≥ α σ .
If i w ≥ i z i_w \geq i_z i w ≥ i z , then α w ≥ α z \alpha_w \geq\alpha_z α w ≥ α z ; otherwise α w ≤ α z \alpha_w \leq\alpha_z α w ≤ α z .
S w S_w S w and S z S_z S z are affected, while S σ S_\sigma S σ is unaffected.
Both endpoint vertices w w w and z z z are inside Λ ( S σ ) \Lambda(S_\sigma) Λ ( S σ ) .
Proof. For the first two items, recall that σ w \sigma_w σ w and σ z \sigma_z σ z , the unique recursive segments having w w w and z z z as breakpoints, respectively, are both strict ancestors of σ \sigma σ . Therefore, we have i σ w , i σ z > i σ i_{\sigma_w}, i_{\sigma_z} > i_\sigma i σ w , i σ z > i σ and α σ w , α σ z > α σ \alpha_{\sigma_w}, \alpha_{\sigma_z} > \alpha_\sigma α σ w , α σ z > α σ (since σ \sigma σ is a subpath of σ w \sigma_w σ w and σ z \sigma_z σ z ). By similar reason, if i σ w ≥ i σ z i_{\sigma_w} \ge i_{\sigma_z} i σ w ≥ i σ z , then α σ w ≥ α σ z \alpha_{\sigma_w} \ge\alpha_{\sigma_z} α σ w ≥ α σ z . Lastly, by definition, we have level ( w n d ) = i σ w \operatorname{level}(w_{\mathrm{nd}}) = i_{\sigma_w} level ( w nd ) = i σ w , scale ( w n d ) = α σ w \operatorname{scale}(w_{\mathrm{nd}}) = \alpha_{\sigma_w} scale ( w nd ) = α σ w , level ( z n d ) = i σ z \operatorname{level}(z_{\mathrm{nd}}) = i_{\sigma_z} level ( z nd ) = i σ z and scale ( z n d ) = α σ z \operatorname{scale}(z_{\mathrm{nd}}) = \alpha_{\sigma_z} scale ( z nd ) = α σ z .
The third item follows from Property 4. The fourth item follows from Property 3. The last item is because, when σ \sigma σ has a corresponding cluster S σ S_\sigma S σ , its interior σ ∘ \sigma^\circ σ ∘ is not empty. Furthermore, σ ∘ ⊆ σ w ∘ ⊆ S w \sigma^\circ\subseteq\sigma_w^\circ\subseteq S_w σ ∘ ⊆ σ w ∘ ⊆ S w by Property 2, and similarly, σ ∘ ⊆ S z \sigma^\circ\subseteq S_z σ ∘ ⊆ S z . Therefore, S w S_w S w intersects S z S_z S z . □
We will prove Lemma 4.22 by considering the following four cases. Let S w , n d S_{w,\mathrm{nd}} S w , nd and S z , n d S_{z,\mathrm{nd}} S z , nd be the cluster nodes created for S w S_w S w and S z S_z S z respectively. We assume i w ≥ i z i_w \ge i_z i w ≥ i z without loss of generality, and thus α w ≥ α z \alpha_w \ge\alpha_z α w ≥ α z by Observation 4.23 .
Case 1. Suppose σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] is a single edge ( w , z ) (w,z) ( w , z ) . Then there is a type-1 link connecting w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd with link length leng G ( σ ) \operatorname{leng}_G(\sigma) leng G ( σ ) .
(a) If both w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd are singleton nodes, define
P Q , σ : = ( w n d , z n d ) . P_{Q,\sigma} := (w_{\mathrm{nd}}, z_{\mathrm{nd}}). P Q , σ := ( w nd , z nd ) .
and P Q , σ P_{Q,\sigma} P Q , σ has no portal.
(b) If w n d w_{\mathrm{nd}} w nd is a subtree node (the case in which z n d z_{\mathrm{nd}} z nd is a subtree node but w n d w_{\mathrm{nd}} w nd is not can be handled analogously), define
P Q , σ : = ( w n d , S w , n d ) ∘ ( S w , n d , w n d ) ∘ ( w n d , z n d ) , P_{Q,\sigma} := (w_{\mathrm{nd}}, S_{w,\mathrm{nd}}) \circ(S_{w,\mathrm{nd}}, w_{\mathrm{nd}}) \circ(w_{\mathrm{nd}}, z_{\mathrm{nd}}), P Q , σ := ( w nd , S w , nd ) ∘ ( S w , nd , w nd ) ∘ ( w nd , z nd ) ,
and define portal ( σ ) : = S w , n d \operatorname{portal}(\sigma) := S_{w,\mathrm{nd}} portal ( σ ) := S w , nd .
Proof of Lemma 4.22 in Case 1. In subcase (a), leng Q ( P Q , σ ) = leng G ( σ ) \operatorname{leng}_Q(P_{Q,\sigma}) = \operatorname{leng}_G(\sigma) leng Q ( P Q , σ ) = leng G ( σ ) as desired, since w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd have node length 0. In subcase (b), it suffices to show that each node and link on P Q , σ P_{Q,\sigma} P Q , σ has length at most max { 1 , h t r e e , α w / ( h e d , α w ⋅ s e d ) } ⋅ ℓ ( portal ( σ ) ) \max\{1, h_{\mathrm{tree},\alpha_w}/(h_{\mathrm{ed},\alpha_w}\cdot s_{\mathrm{ed}})\}\cdot\ell(\operatorname{portal}(\sigma)) max { 1 , h tree , α w / ( h ed , α w ⋅ s ed )} ⋅ ℓ ( portal ( σ )) . To see this, recall that ℓ ( portal ( σ ) ) = h e d , α w ⋅ s e d + 2 h d i a m , α w + 4 h α w \ell(\operatorname{portal}(\sigma)) = h_{\mathrm{ed},\alpha_w}\cdot s_{\mathrm{ed}} + 2h_{\mathrm{diam},\alpha_w} + 4h_{\alpha_w} ℓ ( portal ( σ )) = h ed , α w ⋅ s ed + 2 h diam , α w + 4 h α w , w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd have node length at most h t r e e , α w h_{\mathrm{tree},\alpha_w} h tree , α w , type-4 links have length zero, and the type-1 link ( w n d , z n d ) (w_{\mathrm{nd}},z_{\mathrm{nd}}) ( w nd , z nd ) has length leng G ( σ ) ≤ 2 h α σ ≤ 2 h α w \operatorname{leng}_G(\sigma) \le2h_{\alpha_\sigma} \le2h_{\alpha_w} leng G ( σ ) ≤ 2 h α σ ≤ 2 h α w .
Case 2. Suppose S σ S_\sigma S σ exists and it is both nearby A i w A_{i_w} A i w -sparse and nearby A i z A_{i_z} A i z -sparse. Then there is a type-2 link connecting w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd of length h d i a m , α σ + 2 h α σ h_{\mathrm{diam},\alpha_\sigma} + 2h_{\alpha_\sigma} h diam , α σ + 2 h α σ . Observation 4.23 and the case assumptions show that all conditions for adding this link are fulfilled. The definitions of P Q , σ P_{Q,\sigma} P Q , σ and portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) are exactly the same as in Case 1, except that we replace the type-1 link ( w n d , z n d ) (w_{\mathrm{nd}},z_{\mathrm{nd}}) ( w nd , z nd ) with this type-2 link (in particular, we still need to consider the two subcases).
Proof of Lemma 4.22 in Case 2. Since the type-2 has length h d i a m , α σ + 2 h α σ h_{\mathrm{diam},\alpha_\sigma} + 2h_{\alpha_\sigma} h diam , α σ + 2 h α σ , in subcase (a), we have leng Q ( P Q , σ ) = h d i a m , α σ + 2 h α σ ≤ ( h d i a m , α σ / h α σ + 2 ) ⋅ leng G ( σ ) \operatorname{leng}_Q(P_{Q,\sigma}) = h_{\mathrm{diam},\alpha_\sigma} + 2h_{\alpha_\sigma} \le(h_{\mathrm{diam},\alpha_\sigma}/h_{\alpha_\sigma} + 2)\cdot\operatorname{leng}_G(\sigma) leng Q ( P Q , σ ) = h diam , α σ + 2 h α σ ≤ ( h diam , α σ / h α σ + 2 ) ⋅ leng G ( σ ) . Regarding the subcase (b), the proof is analogous to that in Case 1.
Case 3. Suppose S σ S_\sigma S σ exists, and it is nearby A i w A_{i_w} A i w -dense. Define
P Q , σ : = ( w n d , S w , n d ) ∘ ( S w , n d , z n d ) P_{Q,\sigma}:=(w_{\mathrm{nd}},S_{w,\mathrm{nd}})\circ(S_{w,\mathrm{nd}},z_{\mathrm{nd}}) P Q , σ := ( w nd , S w , nd ) ∘ ( S w , nd , z nd )
and define portal ( σ ) : = S w , n d \operatorname{portal}(\sigma):=S_{w,\mathrm{nd}} portal ( σ ) := S w , nd .
Before moving on, let us justify the existence of these two type-5 links. For the link ( w n d , S w , n d ) (w_{\mathrm{nd}},S_{w,\mathrm{nd}}) ( w nd , S w , nd ) , we can easily verify that the conditions for adding this link are all fulfilled if we plug in
( i 2 , α 2 , S 2 ) : = ( i w , α w , S w ) , q n d : = w n d , ( i 1 , α 1 , S 1 ) : = ( i w , α w , S w ) . (i_2,\alpha_2,S_2):=(i_w,\alpha_w,S_w),\qquad q_{\mathrm{nd}}:=w_{\mathrm{nd}},\qquad(i_1,\alpha_1,S_1):=(i_w,\alpha_w,S_w). ( i 2 , α 2 , S 2 ) := ( i w , α w , S w ) , q nd := w nd , ( i 1 , α 1 , S 1 ) := ( i w , α w , S w ) .
In particular, w n d w_{\mathrm{nd}} w nd is adjacent-cluster A i w A_{i_w} A i w -dense because S σ S_\sigma S σ is nearby A i w A_{i_w} A i w -dense and Λ ( S σ ) \Lambda(S_\sigma) Λ ( S σ ) intersects V ( q n d ) V(q_{\mathrm{nd}}) V ( q nd ) (recall that w ∈ Λ ( S σ ) w\in\Lambda(S_\sigma) w ∈ Λ ( S σ ) from Observation 4.23).
For the link ( S w , n d , z n d ) (S_{w,\mathrm{nd}},z_{\mathrm{nd}}) ( S w , nd , z nd ) , we can also verify all the conditions by plugging in
( i 2 , α 2 , S 2 ) : = ( i z , α z , S z ) , q n d : = z n d , ( i 1 , α 1 , S 1 ) : = ( i w , α w , S w ) . (i_2,\alpha_2,S_2):=(i_z,\alpha_z,S_z),\qquad q_{\mathrm{nd}}:=z_{\mathrm{nd}},\qquad(i_1,\alpha_1,S_1):=(i_w,\alpha_w,S_w). ( i 2 , α 2 , S 2 ) := ( i z , α z , S z ) , q nd := z nd , ( i 1 , α 1 , S 1 ) := ( i w , α w , S w ) .
In particular, z n d z_{\mathrm{nd}} z nd is adjacent-cluster A i w A_{i_w} A i w -dense (by a similar reason), and we also have S 1 S_1 S 1 intersects S 2 S_2 S 2 by Observation 4.23.
Proof of Lemma 4.22 in Case 3. Similar to Case 1, we can see that each node and link on P Q , σ P_{Q,\sigma} P Q , σ has length at most max { 1 , h t r e e , α w / ( h e d , α w ⋅ s e d ) } ⋅ ℓ ( portal ( σ ) ) \max\{1,h_{\mathrm{tree},\alpha_w}/(h_{\mathrm{ed},\alpha_w}\cdot s_{\mathrm{ed}})\}\cdot\ell(\operatorname{portal}(\sigma)) max { 1 , h tree , α w / ( h ed , α w ⋅ s ed )} ⋅ ℓ ( portal ( σ )) . Note that type-5 links have length 0.
Case 4. Suppose S σ S_\sigma S σ exists, and it is nearby A i w A_{i_w} A i w -sparse but nearby A i z A_{i_z} A i z -dense. Let S ^ σ : = Stl i z , α z ( S σ ) \hat{S}_\sigma:=\operatorname{Stl}_{i_z,\alpha_z}(S_\sigma) S ^ σ := Stl i z , α z ( S σ ) . Note that S ^ σ \hat{S}_\sigma S ^ σ is the satellite cluster of the cluster S σ S_\sigma S σ but it has different level i z > i σ i_z>i_\sigma i z > i σ and scale α z > α σ \alpha_z>\alpha_\sigma α z > α σ , rather than i σ i_\sigma i σ and α σ \alpha_\sigma α σ . Let S ^ n d \hat{S}_{\mathrm{nd}} S ^ nd be the satellite node created for the satellite cluster S ^ σ \hat{S}_\sigma S ^ σ . The following Claim 4.24 shows that S σ S_\sigma S σ is affected, and thus S ^ n d \hat{S}_{\mathrm{nd}} S ^ nd indeed exists.
Claim 4.24. We have S z ⊆ S ^ σ S_z\subseteq\hat{S}_\sigma S z ⊆ S ^ σ . Therefore, the satellite cluster S ^ σ : = Stl i z , α z ( S σ ) \hat{S}_\sigma:=\operatorname{Stl}_{i_z,\alpha_z}(S_\sigma) S ^ σ := Stl i z , α z ( S σ ) is affected since S z S_z S z is affected.
Proof. The inclusion S z ⊆ S ^ σ S_z\subseteq\hat{S}_\sigma S z ⊆ S ^ σ follows directly from Observation 4.8, together with z ∈ Λ ( S σ ) z\in\Lambda(S_\sigma) z ∈ Λ ( S σ ) as established in Observation 4.23.
We consider two subcases.
(a) If w n d w_{\mathrm{nd}} w nd is a subtree node, define
P Q , σ : = ( w n d , S w , n d ) ∘ ( S w , n d , w n d ) ∘ ( w n d , S ^ n d ) ∘ ( S ^ n d , z n d ) P_{Q,\sigma}:=(w_{\mathrm{nd}},S_{w,\mathrm{nd}})\circ(S_{w,\mathrm{nd}},w_{\mathrm{nd}})\circ(w_{\mathrm{nd}},\hat{S}_{\mathrm{nd}})\circ(\hat{S}_{\mathrm{nd}},z_{\mathrm{nd}}) P Q , σ := ( w nd , S w , nd ) ∘ ( S w , nd , w nd ) ∘ ( w nd , S ^ nd ) ∘ ( S ^ nd , z nd )
and define portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) to be the cluster node S w , n d S_{w,\mathrm{nd}} S w , nd .
(b) If w n d w_{\mathrm{nd}} w nd is a singleton node, define
P Q , σ : = ( w n d , S ^ n d ) ∘ ( S ^ n d , z n d ) ∘ ( z n d , S z , n d ) ∘ ( S z , n d , z n d ) P_{Q,\sigma}:=(w_{\mathrm{nd}},\hat{S}_{\mathrm{nd}})\circ(\hat{S}_{\mathrm{nd}},z_{\mathrm{nd}})\circ(z_{\mathrm{nd}},S_{z,\mathrm{nd}})\circ(S_{z,\mathrm{nd}},z_{\mathrm{nd}}) P Q , σ := ( w nd , S ^ nd ) ∘ ( S ^ nd , z nd ) ∘ ( z nd , S z , nd ) ∘ ( S z , nd , z nd )
and define portal ( σ ) \operatorname{portal}(\sigma) portal ( σ ) to be the cluster node S z , n d S_{z,\mathrm{nd}} S z , nd .
Again, let us justify the existence of each link above. First, consider the type-3 link ( w n d , S ^ n d ) (w_{\mathrm{nd}}, \widehat{S}_{\mathrm{nd}}) ( w nd , S nd ) in both subcases (a) and (b). We can verify all the conditions for it by plugging in
( i , α , S ) : = ( i σ , α σ , S σ ) , ( i 1 , i 2 ) : = ( i w , i z ) , ( u , u n d ) : = ( w , w n d ) , (i,\alpha,S):=(i_{\sigma},\alpha_{\sigma},S_{\sigma}),\qquad(i_1,i_2):=(i_w,i_z),\qquad(u,u_{\mathrm{nd}}):=(w,w_{\mathrm{nd}}), ( i , α , S ) := ( i σ , α σ , S σ ) , ( i 1 , i 2 ) := ( i w , i z ) , ( u , u nd ) := ( w , w nd ) ,
S ^ n d \widehat{S}_{\mathrm{nd}} S nd remains the same.
In particular, the case assumptions guarantee that S S S is nearby A 1 A_1 A 1 -sparse but nearby A 2 A_2 A 2 -dense.
Regarding the type-6 link ( S ^ n d , z n d ) (\widehat{S}_{\mathrm{nd}},z_{\mathrm{nd}}) ( S nd , z nd ) in both subcases (a) and (b), we can verify the conditions by plugging in
( i 2 , α 2 , S 2 ) : = ( i z , α z , S z ) , q n d : = z n d , S ^ 2 : = S ^ σ . (i_2,\alpha_2,S_2):=(i_z,\alpha_z,S_z),\qquad q_{\mathrm{nd}}:=z_{\mathrm{nd}},\qquad\widehat{S}_2:=\widehat{S}_{\sigma}. ( i 2 , α 2 , S 2 ) := ( i z , α z , S z ) , q nd := z nd , S 2 := S σ .
In particular, q n d q_{\mathrm{nd}} q nd is adjacent-cluster A i 2 A_{i_2} A i 2 -dense since z ∈ Λ ( S σ ) z\in\Lambda(S_{\sigma}) z ∈ Λ ( S σ ) (Observation 4.23 ). Also, S ^ 2 ⊇ pivot ( S z ) \widehat{S}_2\supseteq\operatorname{pivot}(S_z) S 2 ⊇ pivot ( S z ) since pivot ( S z ) ∈ S z ⊆ S ^ σ \operatorname{pivot}(S_z)\in S_z\subseteq\widehat{S}_{\sigma} pivot ( S z ) ∈ S z ⊆ S σ (Claim 4.24 ).
The type-4 links in subcase (a) exist since w n d w_{\mathrm{nd}} w nd is a subtree node.
The existence of type-5 links in subcase (b) follows the argument in Case 3 and the fact that S σ S_{\sigma} S σ is nearby A i z A_{i_z} A i z -dense.
Proof of Lemma 4.22 in Case 4. In this case, all the links in P Q , σ P_{Q,\sigma} P Q , σ have 0 length. For the node on P Q , σ P_{Q,\sigma} P Q , σ , we will only argue that S ^ n d \widehat{S}_{\mathrm{nd}} S nd has node length ℓ ( S ^ n d ) ≤ ( h ^ e d , α / h e d , α ) ⋅ ℓ ( portal ( σ ) ) \ell(\widehat{S}_{\mathrm{nd}})\leq(\widehat{h}_{\mathrm{ed},\alpha}/h_{\mathrm{ed},\alpha})\cdot\ell(\operatorname{portal}(\sigma)) ℓ ( S nd ) ≤ ( h ed , α / h ed , α ) ⋅ ℓ ( portal ( σ )) for α : = scale ( portal ( σ ) ) \alpha:=\operatorname{scale}(\operatorname{portal}(\sigma)) α := scale ( portal ( σ )) . The node lengths of other nodes can be bounded using arguments in previous cases.
Recall that ℓ ( S ^ n d ) = h ^ e d , α z ⋅ s e d + 2 h d i a m , α z + 4 h α z \ell(\widehat{S}_{\mathrm{nd}})=\widehat{h}_{\mathrm{ed},\alpha_z}\cdot s_{\mathrm{ed}}+2h_{\mathrm{diam},\alpha_z}+4h_{\alpha_z} ℓ ( S nd ) = h ed , α z ⋅ s ed + 2 h diam , α z + 4 h α z , and that ℓ ( portal ( σ ) ) = h e d , α ⋅ s e d + 2 h d i a m , α + 4 h α \ell(\operatorname{portal}(\sigma))=h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}+2h_{\mathrm{diam},\alpha}+4h_{\alpha} ℓ ( portal ( σ )) = h ed , α ⋅ s ed + 2 h diam , α + 4 h α , where α \alpha α is either α w \alpha_w α w (subcase (a)) or α z \alpha_z α z (subcase (b)). Since α w ≥ α z \alpha_w\geq\alpha_z α w ≥ α z , the inequality ℓ ( S ^ n d ) ≤ ( h ^ e d , α / h e d , α ) ⋅ ℓ ( portal ( σ ) ) \ell(\widehat{S}_{\mathrm{nd}})\leq(\widehat{h}_{\mathrm{ed},\alpha}/h_{\mathrm{ed},\alpha})\cdot\ell(\operatorname{portal}(\sigma)) ℓ ( S nd ) ≤ ( h ed , α / h ed , α ) ⋅ ℓ ( portal ( σ )) clearly holds.
Defining the Query Path P Q P_Q P Q . Finally, we define the query path P Q P_Q P Q , the proxy vertices x p x , y p x x_{\mathrm{px}},y_{\mathrm{px}} x px , y px , and their proxy nodes x p x , n d , y p x , n d x_{\mathrm{px},\mathrm{nd}},y_{\mathrm{px},\mathrm{nd}} x px , nd , y px , nd .
Recall the discussion about leaf segments in Property 6. We use σ ℓ \sigma_\ell σ ℓ and σ r \sigma_r σ r to denote the leftmost and rightmost leaf segments respectively (σ ℓ , σ r \sigma_\ell,\sigma_r σ ℓ , σ r not necessarily exist), and let σ 1 , σ 2 , … , σ k max \sigma_1,\sigma_2,\ldots,\sigma_{k_{\max}} σ 1 , σ 2 , … , σ k m a x denote the middle leaf segments in between in the left-to-right order.
Define
( x p x , x p x , n d ) : = { ( x , the left endpoint node of σ 1 ) if σ ℓ does not exist , ( the right endpoint of σ ℓ , the right endpoint node of σ ℓ ) if σ ℓ exists , (x_{\mathrm{px}},x_{\mathrm{px},\mathrm{nd}}):=
\begin{cases}
(x,\text{ the left endpoint node of }\sigma_1) & \text{if }\sigma_\ell\text{ does not exist},\\
(\text{the right endpoint of }\sigma_\ell,\text{ the right endpoint node of }\sigma_\ell) & \text{if }\sigma_\ell\text{ exists},
\end{cases} ( x px , x px , nd ) := { ( x , the left endpoint node of σ 1 ) ( the right endpoint of σ ℓ , the right endpoint node of σ ℓ ) if σ ℓ does not exist , if σ ℓ exists ,
and similarly
( y p x , y p x , n d ) : = { ( y , the right endpoint node of σ k max ) if σ r does not exist , ( the left endpoint of σ r , the left endpoint node of σ r ) if σ r exists . (y_{\mathrm{px}},y_{\mathrm{px},\mathrm{nd}}):=
\begin{cases}
(y,\text{ the right endpoint node of }\sigma_{k_{\max}}) & \text{if }\sigma_r\text{ does not exist},\\
(\text{the left endpoint of }\sigma_r,\text{ the left endpoint node of }\sigma_r) & \text{if }\sigma_r\text{ exists}.
\end{cases} ( y px , y px , nd ) := { ( y , the right endpoint node of σ k m a x ) ( the left endpoint of σ r , the left endpoint node of σ r ) if σ r does not exist , if σ r exists .
Intuitively, x p x x_{\mathrm{px}} x px is the leftmost breakpoint and y p x y_{\mathrm{px}} y px is the rightmost breakpoint during the decomposition.
The query path P Q P_Q P Q is defined by the following procedure Algorithm 2. Roughly speaking, we construct P Q P_Q P Q by first concatenating P Q , σ 1 , P Q , σ 2 , … , P Q , σ k max P_{Q,\sigma_1},P_{Q,\sigma_2},\ldots,P_{Q,\sigma_{k_{\max}}} P Q , σ 1 , P Q , σ 2 , … , P Q , σ k m a x and then shortcut it using portals.
Algorithm 2 Construction of P Q P_Q P Q
Initialize P Q P_Q P Q to be empty, k ← 1 k \leftarrow1 k ← 1
while k ≤ k max k \le k_{\max} k ≤ k m a x do
if P Q , σ k P_{Q,\sigma_k} P Q , σ k has portal( σ k ) (\sigma_k) ( σ k ) , and some later path P Q , σ k ′ P_{Q,\sigma_{k'}} P Q , σ k ′ , with k ′ > k k' > k k ′ > k has the same portal( σ k ′ ) = portal ( σ k ) (\sigma_{k'}) = \operatorname{portal}(\sigma_k) ( σ k ′ ) = portal ( σ k ) then
Choose the largest such k ′ k' k ′
Let P ′ P' P ′ be the concatenation of the prefix of P Q , σ k P_{Q,\sigma_k} P Q , σ k before portal ( σ k ) \operatorname{portal}(\sigma_k) portal ( σ k ) , and the suffix of P Q , σ k ′ P_{Q,\sigma_{k'}} P Q , σ k ′ after portal ( σ k ′ ) \operatorname{portal}(\sigma_{k'}) portal ( σ k ′ )
Append P ′ P' P ′ to the end of P Q P_Q P Q
k ← k ′ + 1 k \leftarrow k' + 1 k ← k ′ + 1
else
Append P Q , σ k P_{Q,\sigma_k} P Q , σ k to the end of P Q P_Q P Q
k ← k + 1 k \leftarrow k + 1 k ← k + 1
end if
end while
The motivation of constructing P Q P_Q P Q using this particular procedure is that, simply concatenating these P Q , σ P_{Q,\sigma} P Q , σ may give a P Q P_Q P Q that is too long, because those P Q , σ P_{Q,\sigma} P Q , σ with portals may not have their lengths competitive to the original segment lengths (see Lemma 4.22 ). To resolve this issue, we will ensure that, for each portal node, P Q P_Q P Q only walks through at most two P Q , σ k P_{Q,\sigma_k} P Q , σ k with this portal node. Hence, we can charge the lengths of these “bad” P Q , σ P_{Q,\sigma} P Q , σ to the lengths of portal nodes (using Lemma 4.22 ). The following Lemma 4.25 formally bounds the length of P Q P_Q P Q .
Lemma 4.25. leng Q ( P Q ) ≤ O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ leng G ( P ) \operatorname{leng}_Q(P_Q) \le O((s_{\mathrm{tree}} + s_{\mathrm{nc}}) \cdot s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot i_{\max}) \cdot\operatorname{leng}_G(P) leng Q ( P Q ) ≤ O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ leng G ( P )
Proof. For each σ ∈ { σ 1 , … , σ k max } \sigma\in\{\sigma_1, \ldots, \sigma_{k_{\max}}\} σ ∈ { σ 1 , … , σ k m a x } , we say P Q , σ P_{Q,\sigma} P Q , σ is visited if P Q , σ P_{Q,\sigma} P Q , σ , either in whole or in part, is appended to P Q P_Q P Q . Therefore, leng ( P Q ) \operatorname{leng}(P_Q) leng ( P Q ) is upper bounded by the total length of visited P Q , σ P_{Q,\sigma} P Q , σ .
We classify the visited P Q , σ P_{Q,\sigma} P Q , σ into two groups: those without portals and those with portals. For those without portals, their total length can be simply bounded by
∑ visited P Q , σ without portals leng Q ( P Q , σ ) ≤ ∑ leaf segments σ ( h d i a m , α σ h α σ + 2 ) ⋅ leng G ( σ ) ≤ ( 5 s n c + 10 ) ⋅ leng G ( P ) , \sum_{\substack{\text{visited }P_{Q,\sigma}\\\text{without portals}}} \operatorname{leng}_Q(P_{Q,\sigma})
\le\sum_{\text{leaf segments }\sigma} \left(\frac{h_{\mathrm{diam},\alpha_\sigma}}{h_{\alpha_\sigma}}+2\right)\cdot\operatorname{leng}_G(\sigma)
\le(5s_{\mathrm{nc}}+10)\cdot\operatorname{leng}_G(P), visited P Q , σ without portals ∑ leng Q ( P Q , σ ) ≤ leaf segments σ ∑ ( h α σ h diam , α σ + 2 ) ⋅ leng G ( σ ) ≤ ( 5 s nc + 10 ) ⋅ leng G ( P ) ,
where the first inequality uses Lemma 4.22 .
For those with portals, as we discussed, the key observation is that a portal is shared by at most two visited P Q , σ P_{Q,\sigma} P Q , σ . Hence, the total length can be bounded by
2 ⋅ ∑ distinct portals p 5 ⋅ max { 1 , h t r e e , α h e d , α ⋅ s e d , h ^ e d , α h e d , α } ⋅ ℓ ( p ) (for an arbitrary α ) 2\cdot\sum_{\text{distinct portals }p} 5\cdot\max\left\{1,\frac{h_{\mathrm{tree},\alpha}}{h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}},\frac{\widehat{h}_{\mathrm{ed},\alpha}}{h_{\mathrm{ed},\alpha}}\right\}\cdot\ell(p)
\qquad\text{(for an arbitrary }\alpha\text{)} 2 ⋅ distinct portals p ∑ 5 ⋅ max { 1 , h ed , α ⋅ s ed h tree , α , h ed , α h ed , α } ⋅ ℓ ( p ) (for an arbitrary α )
≤ 10 ⋅ max { s t r e e , 3 s n c / 5 + 1 } ⋅ ∑ distinct portals p ℓ ( p ) (xref‘Lemma 4.22‘) \le10\cdot\max\{s_{\mathrm{tree}},3s_{\mathrm{nc}}/5+1\}\cdot\sum_{\text{distinct portals }p}\ell(p)
\qquad\text{({xref}`Lemma 4.22`)} ≤ 10 ⋅ max { s tree , 3 s nc /5 + 1 } ⋅ distinct portals p ∑ ℓ ( p ) ( xref ‘Lemma 4.22‘)
Next, since Lemma 4.22 guarantees that portals are all cluster nodes of the clusters of recursive segments, we have
∑ distinct portals p ℓ ( p ) ≤ ∑ recursive segments σ ℓ ( S σ , n d ) ≤ ∑ recursive segments σ ( h e d , α σ ⋅ s e d + 2 h d i a m , α σ + 4 h α σ ) ≤ ∑ recursive segments σ ( ( 5 ⋅ ( 2 s n c ⋅ h α σ ) + 8 h α σ ) ⋅ s e d + 2 ⋅ ( 2 ⋅ s n c ⋅ h α σ ) + 4 h α σ ) ≤ ∑ recursive segments σ ( 10 s n c s e d + 8 s e d + 4 s n c + 4 ) ⋅ ( 2 ⋅ leng G ( σ ) ) ≤ ( 10 s n c s e d + 8 s e d + 4 s n c + 4 ) ⋅ ( 2 ⋅ i max ) ⋅ leng G ( P ) \sum_{\text{distinct portals }p} \ell(p)
\le\sum_{\text{recursive segments }\sigma} \ell(S_{\sigma,\mathrm{nd}})
\le\sum_{\text{recursive segments }\sigma} \left(h_{\mathrm{ed},\alpha_\sigma}\cdot s_{\mathrm{ed}}+2h_{\mathrm{diam},\alpha_\sigma}+4h_{\alpha_\sigma}\right)
\le\sum_{\text{recursive segments }\sigma} \left((5\cdot(2s_{\mathrm{nc}}\cdot h_{\alpha_\sigma})+8h_{\alpha_\sigma})\cdot s_{\mathrm{ed}}+2\cdot(2\cdot s_{\mathrm{nc}}\cdot h_{\alpha_\sigma})+4h_{\alpha_\sigma}\right)
\le\sum_{\text{recursive segments }\sigma} (10s_{\mathrm{nc}}s_{\mathrm{ed}}+8s_{\mathrm{ed}}+4s_{\mathrm{nc}}+4)\cdot(2\cdot\operatorname{leng}_{G}(\sigma))
\le(10s_{\mathrm{nc}}s_{\mathrm{ed}}+8s_{\mathrm{ed}}+4s_{\mathrm{nc}}+4)\cdot(2\cdot i_{\max})\cdot\operatorname{leng}_{G}(P) distinct portals p ∑ ℓ ( p ) ≤ recursive segments σ ∑ ℓ ( S σ , nd ) ≤ recursive segments σ ∑ ( h ed , α σ ⋅ s ed + 2 h diam , α σ + 4 h α σ ) ≤ recursive segments σ ∑ ( ( 5 ⋅ ( 2 s nc ⋅ h α σ ) + 8 h α σ ) ⋅ s ed + 2 ⋅ ( 2 ⋅ s nc ⋅ h α σ ) + 4 h α σ ) ≤ recursive segments σ ∑ ( 10 s nc s ed + 8 s ed + 4 s nc + 4 ) ⋅ ( 2 ⋅ leng G ( σ )) ≤ ( 10 s nc s ed + 8 s ed + 4 s nc + 4 ) ⋅ ( 2 ⋅ i m a x ) ⋅ leng G ( P )
Therefore, we can conclude that the total length of those visited P Q , σ P_{Q,\sigma} P Q , σ with portals can be bounded by O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ leng G ( P ) O((s_{\mathrm{tree}}+s_{\mathrm{nc}})\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot i_{\max})\cdot\operatorname{leng}_{G}(P) O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ leng G ( P ) .
We complete the proof of Lemma 4.19 using Lemma 4.25. For convenience, we restate Lemma 4.19 here.
Lemma 4.19. Under Assumption 4.18, there exist
two vertices x p x x_{\mathrm{px}} x px and y p x y_{\mathrm{px}} y px on P P P called proxy vertices,
levels i x ≥ level ( x p x ) , i y ≥ level ( y p x ) i_x\ge\operatorname{level}(x_{\mathrm{px}}),i_y\ge\operatorname{level}(y_{\mathrm{px}}) i x ≥ level ( x px ) , i y ≥ level ( y px ) , length scales α x , α y ≤ α ⋆ \alpha_x,\alpha_y\le\alpha^\star α x , α y ≤ α ⋆ , and clusters S x : = N i x , α x ( x ) S_x:=N_{i_x,\alpha_x}(x) S x := N i x , α x ( x ) , S y : = N i y , α y ( y ) S_y:=N_{i_y,\alpha_y}(y) S y := N i y , α y ( y ) ,
two nodes x p x , n d ∈ V n d ( x p x ) x_{\mathrm{px},\mathrm{nd}}\in V_{\mathrm{nd}}(x_{\mathrm{px}}) x px , nd ∈ V nd ( x px ) and y p x , n d ∈ V n d ( y p x ) y_{\mathrm{px},\mathrm{nd}}\in V_{\mathrm{nd}}(y_{\mathrm{px}}) y px , nd ∈ V nd ( y px ) called proxy nodes
further satisfying the following.
For x p x x_{\mathrm{px}} x px and x p x , n d x_{\mathrm{px},\mathrm{nd}} x px , nd , either
(a) x p x = x x_{\mathrm{px}}=x x px = x , S x S_x S x is affected, and cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px},\mathrm{nd}}) cluster ( x px , nd ) is exactly S x S_x S x , or
(b) x p x ∈ Λ ( S x ) x_{\mathrm{px}}\in\Lambda(S_x) x px ∈ Λ ( S x ) , S x S_x S x is unaffected, and cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px},\mathrm{nd}}) cluster ( x px , nd ) is exactly the affected cluster S x , α x ′ ′ ( x ) : = N i x ′ , α x ′ ( x ) S'_{x,\alpha'_x}(x):=N_{i'_x,\alpha'_x}(x) S x , α x ′ ′ ( x ) := N i x ′ , α x ′ ( x ) for some i x ′ > i x i'_x>i_x i x ′ > i x and α x ′ ∈ [ α x ′ , α ⋆ ] \alpha'_x\in[\alpha'_x,\alpha^\star] α x ′ ∈ [ α x ′ , α ⋆ ] .
Similarly, for y p x y_{\mathrm{px}} y px and y p x , n d y_{\mathrm{px},\mathrm{nd}} y px , nd , either
(a) y p x = y y_{\mathrm{px}}=y y px = y , S y S_y S y is affected, and cluster ( y p x , n d ) \operatorname{cluster}(y_{\mathrm{px},\mathrm{nd}}) cluster ( y px , nd ) is exactly S y S_y S y , or
(b) y p x ∈ Λ ( S y ) y_{\mathrm{px}}\in\Lambda(S_y) y px ∈ Λ ( S y ) , S y S_y S y is unaffected, and cluster ( y p x , n d ) \operatorname{cluster}(y_{\mathrm{px},\mathrm{nd}}) cluster ( y px , nd ) is exactly the affected cluster S y , α y ′ ′ ( y ) : = N i y ′ , α y ′ ( y ) S'_{y,\alpha'_y}(y):=N_{i'_y,\alpha'_y}(y) S y , α y ′ ′ ( y ) := N i y ′ , α y ′ ( y ) for some i y ′ > i y i'_y>i_y i y ′ > i y and α y ′ ∈ [ α y ′ , α ⋆ ] \alpha'_y\in[\alpha'_y,\alpha^\star] α y ′ ∈ [ α y ′ , α ⋆ ] .
dist Q ( x p x , n d , y p x , n d ) ≤ O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ dist G ( x , y ) \operatorname{dist}_{Q}(x_{\mathrm{px},\mathrm{nd}},y_{\mathrm{px},\mathrm{nd}})\le O((s_{\mathrm{tree}}+s_{\mathrm{nc}})\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot i_{\max})\cdot\operatorname{dist}_{G}(x,y) dist Q ( x px , nd , y px , nd ) ≤ O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ dist G ( x , y ) .
Proof. In general, the proxy vertices and nodes x p x , x p x , n d , y p x , y p x , n d x_{\mathrm{px}}, x_{\mathrm{px,nd}}, y_{\mathrm{px}}, y_{\mathrm{px,nd}} x px , x px , nd , y px , y px , nd are exactly what we defined above (and thus Item 3 follows from Lemma 4.25), except that in a corner case, we may choose a different y p x , n d y_{\mathrm{px,nd}} y px , nd .
Item 1. We first show Item 1 by picking appropriate i x , α x i_x, \alpha_x i x , α x (and possibly i x ′ , α x ′ i'_x, \alpha'_x i x ′ , α x ′ ).
Item 1(a) corresponds to the case where the leftmost leaf segment σ ℓ \sigma_\ell σ ℓ does not exist. Namely, the first middle leaf segment σ 1 \sigma_1 σ 1 has x x x as its left endpoint. In this case, x p x = x x_{\mathrm{px}}=x x px = x holds by definition. Naturally, we choose
i x = level ( x p x , n d ) , α x = level ( x p x , n d ) . i_x=\operatorname{level}(x_{\mathrm{px,nd}}),\qquad\alpha_x=\operatorname{level}(x_{\mathrm{px,nd}}). i x = level ( x px , nd ) , α x = level ( x px , nd ) .
It suffices to show that cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px,nd}}) cluster ( x px , nd ) is the same as S x : = N i x , α x ( x ) S_x:=\mathcal{N}_{i_x,\alpha_x}(x) S x := N i x , α x ( x ) (which will also imply that S x S_x S x is affected). Recall the definition of the endpoint node x p x , n d x_{\mathrm{px,nd}} x px , nd . cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px,nd}}) cluster ( x px , nd ) must be the corresponding cluster S σ ^ S_{\widehat{\sigma}} S σ for some ancestral segment σ ^ \widehat{\sigma} σ of σ 1 \sigma_1 σ 1 . Furthermore, x x x must be a breakpoint of σ ^ \widehat{\sigma} σ , meaning that σ ^ \widehat{\sigma} σ is the initial segment or a leftmost segment. Therefore, by Property 5, S σ ^ S_{\widehat{\sigma}} S σ is exactly N i x , α x ( x ) \mathcal{N}_{i_x,\alpha_x}(x) N i x , α x ( x ) .
Item 1(b) corresponds to the case that the leftmost leaf segment σ ℓ \sigma_\ell σ ℓ exists. Recall that we defined x p x x_{\mathrm{px}} x px (resp. x p x , n d x_{\mathrm{px,nd}} x px , nd ) to be the right endpoint (resp. endpoint node) of σ ℓ \sigma_\ell σ ℓ . This time, we choose
i x : = i σ ℓ , α x : = α σ ℓ , i x ′ : = level ( x p x , n d ) , α x ′ : = scale ( x p x , n d ) . i_x:=i_{\sigma_\ell},\qquad\alpha_x:=\alpha_{\sigma_\ell},\qquad i'_x:=\operatorname{level}(x_{\mathrm{px,nd}}),\qquad\alpha'_x:=\operatorname{scale}(x_{\mathrm{px,nd}}). i x := i σ ℓ , α x := α σ ℓ , i x ′ := level ( x px , nd ) , α x ′ := scale ( x px , nd ) .
Because S x : = N i x , α x ( x ) S_x:=\mathcal{N}_{i_x,\alpha_x}(x) S x := N i x , α x ( x ) is exactly S σ ℓ S_{\sigma_\ell} S σ ℓ (by Property 5), we have x p x ∈ Λ ( S x ) x_{\mathrm{px}}\in\Lambda(S_x) x px ∈ Λ ( S x ) by Property 3, and S x S_x S x is unaffected by Property 4. Moreover, similar to the argument for Item 1(a), cluster ( x p x , n d ) \operatorname{cluster}(x_{\mathrm{px,nd}}) cluster ( x px , nd ) is S σ ^ S_{\widehat{\sigma}} S σ for an ancestral segment σ ^ \widehat{\sigma} σ of σ ℓ \sigma_\ell σ ℓ , meaning that x x x is in its interior σ ^ ∘ \widehat{\sigma}^{\circ} σ ∘ . Therefore, σ ^ \widehat{\sigma} σ is the initial segment or a leftmost segment, and thus S x ′ : = N i x ′ , α x ′ ( x ) S'_x:=\mathcal{N}_{i'_x,\alpha'_x}(x) S x ′ := N i x ′ , α x ′ ( x ) is exactly S σ ^ S_{\widehat{\sigma}} S σ .
Item 2. Next, we show Item 2. In general, we can simply follow the proof of Item 1 by replacing all “leftmost” with “rightmost”, and exploit each rightmost segment σ ^ \widehat{\sigma} σ has S σ ^ = N i σ ^ , α σ ^ ( y ) S_{\widehat{\sigma}}=\mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(y) S σ = N i σ , α σ ( y ) (by Property 5).
The proof could fail only in the corner case where σ ^ \widehat{\sigma} σ is the initial segment which has S σ ^ = N i σ ^ , α σ ^ ( x ) S_{\widehat{\sigma}}=\mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(x) S σ = N i σ , α σ ( x ) instead of N i σ ^ , α σ ^ ( y ) \mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(y) N i σ , α σ ( y ) . In this case, we change the old y p x , n d y_{\mathrm{px,nd}} y px , nd to a new node y p x , n d ′ ∈ V n d ( y p x ) y'_{\mathrm{px,nd}}\in V_{\mathrm{nd}}(y_{\mathrm{px}}) y px , nd ′ ∈ V nd ( y px ) with cluster ( y p x , n d ′ ) = N i σ ^ , α σ ^ ( y ) \operatorname{cluster}(y'_{\mathrm{px,nd}})=\mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(y) cluster ( y px , nd ′ ) = N i σ , α σ ( y ) which is exactly S y S_y S y in Item 2(a) or S y ′ S'_y S y ′ in Item 2(b). Note that Property 5 guarantees that the initial segment σ ^ \widehat{\sigma} σ have both N i σ ^ , α σ ^ ( x ) \mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(x) N i σ , α σ ( x ) and N i σ ^ , α σ ^ ( y ) \mathcal{N}_{i_{\widehat{\sigma}},\alpha_{\widehat{\sigma}}}(y) N i σ , α σ ( y ) affected, so y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ is well-defined.
Item 3. If we did not change the proxy node y p x , n d y_{\mathrm{px,nd}} y px , nd in the proof of Item 2, then Item 3 follows directly from Lemma 4.25. If the old y p x , n d y_{\mathrm{px,nd}} y px , nd is changed to the new y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ , Item 3 still holds because dist Q ( y p x , n d , y p x , n d ′ ) = 0 \operatorname{dist}_{Q}(y_{\mathrm{px,nd}},y'_{\mathrm{px,nd}})=0 dist Q ( y px , nd , y px , nd ′ ) = 0 . Note that there is a type-7 link connecting y p x , n d y_{\mathrm{px,nd}} y px , nd and y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ because y p x y_{\mathrm{px}} y px is a common vertex in both V ( y p x , n d ) V(y_{\mathrm{px,nd}}) V ( y px , nd ) and V ( y p x , n d ′ ) V(y'_{\mathrm{px,nd}}) V ( y px , nd ′ ) .
Finally, we finish the proof of Lemma 4.20 using Lemma 4.19.
Lemma 4.20. Under Assumption 4.18, there exist levels i x , i x ′ , i y , i y ′ i_x,i'_x,i_y,i'_y i x , i x ′ , i y , i y ′ and length scales α x , α x ′ , α y , α y ′ \alpha_x,\alpha'_x,\alpha_y,\alpha'_y α x , α x ′ , α y , α y ′ s.t. level ( x ) ≤ i x ≤ i x ′ ≤ i max \operatorname{level}(x)\le i_x\le i'_x\le i_{\max} level ( x ) ≤ i x ≤ i x ′ ≤ i m a x , level ( y ) ≤ i y ≤ i y ′ ≤ i max \operatorname{level}(y)\le i_y\le i'_y\le i_{\max} level ( y ) ≤ i y ≤ i y ′ ≤ i m a x , 1 ≤ α x ≤ α x ′ ≤ α ⋆ 1\le\alpha_x\le\alpha'_x\le\alpha^\star 1 ≤ α x ≤ α x ′ ≤ α ⋆ , and 1 ≤ α y ≤ α y ′ ≤ α ⋆ 1\le\alpha_y\le\alpha'_y\le\alpha^\star 1 ≤ α y ≤ α y ′ ≤ α ⋆ , so that on line 24, ans will be updated, and
2 h d i a m , α x + 2 h d i a m , α y + dist Q ( x p x , n d ′ , y p x , n d ′ ) ≤ O ( ( s t r e e + s n c ) ⋅ s n c ⋅ s e d ⋅ i max ) ⋅ dist G ∖ F ( x , y ) . 2h_{\mathrm{diam},\alpha_x}+2h_{\mathrm{diam},\alpha_y}+\operatorname{dist}_{Q}(x'_{\mathrm{px,nd}},y'_{\mathrm{px,nd}})\le O((s_{\mathrm{tree}}+s_{\mathrm{nc}})\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot i_{\max})\cdot\operatorname{dist}_{G\setminus F}(x,y). 2 h diam , α x + 2 h diam , α y + dist Q ( x px , nd ′ , y px , nd ′ ) ≤ O (( s tree + s nc ) ⋅ s nc ⋅ s ed ⋅ i m a x ) ⋅ dist G ∖ F ( x , y ) .
Proof. Consider the iteration where i x , i x ′ , i y , i y ′ , α x , α x ′ , α y , α y ′ i_x,i'_x,i_y,i'_y,\alpha_x,\alpha'_x,\alpha_y,\alpha'_y i x , i x ′ , i y , i y ′ , α x , α x ′ , α y , α y ′ are those picked by Lemma 4.19. Let x p x , x p x , n d , y p x , y p x , n d x_{\mathrm{px}},x_{\mathrm{px,nd}},y_{\mathrm{px}},y_{\mathrm{px,nd}} x px , x px , nd , y px , y px , nd be those proxy vertices and nodes picked by Lemma 4.19. We remark that in this iteration, the algorithm will branch into
Line 9 if Item 1(a) of Lemma 4.19 holds,
Lines 12 and 13 if Item 1(b) of Lemma 4.19 holds,
Line 17 if Item 2(a) of Lemma 4.19 holds,
Lines 20 and 21 if Item 2(b) of Lemma 4.19 holds.
Furthermore, in this iteration, Algorithm 1 will successfully pick x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ and y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ due to the guarantees from Lemma 4.19 (and thus ans will be updated on Line 22). In particular, when the algorithm branch into Lines 12 and 13, it will successfully go through Line 12 since either (i) the set ProxyVertex( x , i x , α x , i x ′ , α x ′ ) (x,i_x,\alpha_x,i'_x,\alpha'_x) ( x , i x , α x , i x ′ , α x ′ ) has f + 1 f+1 f + 1 vertices and thus at least one of them is not in F F F , or (ii) the set ProxyVertex( x , i x , α x , i x ′ , α x ′ ) (x,i_x,\alpha_x,i'_x,\alpha'_x) ( x , i x , α x , i x ′ , α x ′ ) has less than f + 1 f+1 f + 1 vertices, which must include x p x ∉ F x_{\mathrm{px}}\notin F x px ∈ / F due to Item 1(b) of Lemma 4.19.
Now we want to prove the inequality in Lemma 4.20 holds. It suffices to prove that for x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ , we have either x p x , n d ′ = x p x , n d x'_{\mathrm{px,nd}}=x_{\mathrm{px,nd}} x px , nd ′ = x px , nd or
dist Q ( x p x , n d ′ , x p x , n d ) ≤ O ( s t r e e ⋅ s n c ⋅ s e d ) ⋅ dist G ∖ F ( x , y ) , \operatorname{dist}_{Q}(x'_{\mathrm{px,nd}},x_{\mathrm{px,nd}})\le O(s_{\mathrm{tree}}\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}})\cdot\operatorname{dist}_{G\setminus F}(x,y), dist Q ( x px , nd ′ , x px , nd ) ≤ O ( s tree ⋅ s nc ⋅ s ed ) ⋅ dist G ∖ F ( x , y ) ,
and prove the analogous claim for y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ . Combining these with Item 3 in Lemma 4.19 and that h d i a m , α x , h d i a m , α y ≤ h d i a m , α ⋆ ≤ 2 dist G ∖ F ( x , y ) h_{\mathrm{diam},\alpha_x},h_{\mathrm{diam},\alpha_y}\le h_{\mathrm{diam},\alpha^\star}\le2\operatorname{dist}_{G\setminus F}(x,y) h diam , α x , h diam , α y ≤ h diam , α ⋆ ≤ 2 dist G ∖ F ( x , y ) , the inequality in Lemma 4.20 immediately follows.
Suppose Item 1(a) of Lemma 4.19 holds, then the algorithm will pick x p x ′ x'_{\mathrm{px}} x px ′ and x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ on Line 9, which are exactly the same as the x p x x_{\mathrm{px}} x px and x p x , n d x_{\mathrm{px,nd}} x px , nd picked by Lemma 4.19. Similarly, when Item 2(a) of Lemma 4.19 holds, y p x , n d ′ y'_{\mathrm{px,nd}} y px , nd ′ is the same as y p x , n d y_{\mathrm{px,nd}} y px , nd .
Suppose Item 2(a) of Lemma 4.19 holds, and thus x p x ′ x'_{\mathrm{px}} x px ′ and x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ are picked on Lines 12 and 13. We need some more arguments since x p x , n d ′ x'_{\mathrm{px,nd}} x px , nd ′ might not be the same as x p x , n d x_{\mathrm{px,nd}} x px , nd in this case. Let S : = N i x , α x ( x ) S:=N_{i_x,\alpha_x}(x) S := N i x , α x ( x ) and S ′ : = N i x ′ , α x ′ ( x ) S':=N_{i'_x,\alpha'_x}(x) S ′ := N i x ′ , α x ′ ( x ) . By Lemma 4.19 and the algorithm statement, we have the following.
S S S is unaffected and S ′ S' S ′ is affected.
x p x , x p x ′ ∈ Λ ( S ) x_{\mathrm{px}},x'_{\mathrm{px}}\in\Lambda(S) x px , x px ′ ∈ Λ ( S ) , x p x , n d ∈ V n d ( x p x ) x_{\mathrm{px,nd}}\in V_{\mathrm{nd}}(x_{\mathrm{px}}) x px , nd ∈ V nd ( x px ) , x p x , n d ′ ∈ V n d ( x p x ′ ) x'_{\mathrm{px,nd}}\in V_{\mathrm{nd}}(x'_{\mathrm{px}}) x px , nd ′ ∈ V nd ( x px ′ ) , and cluster ( x p x , n d ) = cluster ( x p x , n d ′ ) = S ′ \operatorname{cluster}(x_{\mathrm{px,nd}})=\operatorname{cluster}(x'_{\mathrm{px,nd}})=S' cluster ( x px , nd ) = cluster ( x px , nd ′ ) = S ′ .
Namely, both x p x x_{\mathrm{px}} x px and x p x ′ x'_{\mathrm{px}} x px ′ are in the surrounding set of an unaffected cluster S S S , and x p x , n d , x p x , n d ′ x_{\mathrm{px,nd}},x'_{\mathrm{px,nd}} x px , nd , x px , nd ′ are their corresponding nodes for the same affected cluster S ′ S' S ′ . Thus, we can find a short path P Q , x P_{Q,x} P Q , x in Q Q Q connecting them as follows. Let i ′ : = level ( S ′ ) i':=\operatorname{level}(S') i ′ := level ( S ′ ) .
P Q , x : = ( x p x , n d , x p x , n d ′ ) . P_{Q,x}:=(x_{\mathrm{px,nd}},x'_{\mathrm{px,nd}}). P Q , x := ( x px , nd , x px , nd ′ ) .
Type-2
P Q , x : = ( x p x , n d , S n d ′ ) ∘ ( S n d ′ , x p x , n d ′ ) . P_{Q,x}:=(x_{\mathrm{px,nd}},S'_{\mathrm{nd}})\circ(S'_{\mathrm{nd}},x'_{\mathrm{px,nd}}). P Q , x := ( x px , nd , S nd ′ ) ∘ ( S nd ′ , x px , nd ′ ) .
Type-5 \hspace{3em} Type-5
Similar to the proof of Lemma 4.22 , we can show P Q , x P_{Q,x} P Q , x is valid. By the way we set the node and link lengths, len Q ( P Q , x ) ≤ O ( max { h t r e e , α x ′ , h e d , α x ′ ⋅ s e d } ) ≤ O ( s t r e e ⋅ s n c ⋅ s e d ⋅ h α x ′ ) ≤ O ( s t r e e ⋅ s n c ⋅ s e d ) ⋅ dist G ∖ F ( x , y ) \operatorname{len}_{Q}(P_{Q,x})\le O(\max\{h_{\mathrm{tree},\alpha'_x},h_{\mathrm{ed},\alpha'_x}\cdot s_{\mathrm{ed}}\})\le O(s_{\mathrm{tree}}\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot h_{\alpha'_x})\le O(s_{\mathrm{tree}}\cdot s_{\mathrm{nc}}\cdot s_{\mathrm{ed}})\cdot\operatorname{dist}_{G\setminus F}(x,y) len Q ( P Q , x ) ≤ O ( max { h tree , α x ′ , h ed , α x ′ ⋅ s ed }) ≤ O ( s tree ⋅ s nc ⋅ s ed ⋅ h α x ′ ) ≤ O ( s tree ⋅ s nc ⋅ s ed ) ⋅ dist G ∖ F ( x , y ) as desired.
Lower Bounding the Solution
Lemma 4.26. The a n s ans an s returned by Algorithm 1 satisfies a n s ≥ dist G ∖ F ( x , y ) ans \ge\operatorname{dist}_{G\setminus F}(x,y) an s ≥ dist G ∖ F ( x , y ) .
Proof. If the final a n s ans an s is obtained on Line 4, let S ∈ { N i , α ( x ) , N i , α ( y ) } S \in\{N_{i,\alpha}(x),N_{i,\alpha}(y)\} S ∈ { N i , α ( x ) , N i , α ( y )} be an unaffected cluster that contains both x x x and y y y . Then clearly dist G ∖ F ( x , y ) ≤ dist G [ S ] ( x , y ) ≤ h d i a m , α = a n s \operatorname{dist}_{G\setminus F}(x,y) \le\operatorname{dist}_{G[S]}(x,y) \le h_{\mathrm{diam},\alpha}=ans dist G ∖ F ( x , y ) ≤ dist G [ S ] ( x , y ) ≤ h diam , α = an s .
From now, suppose the final a n s ans an s is obtained on Line 24. Consider the proxy vertices x p x ′ , y p x ′ x'_{\mathrm{px}},y'_{\mathrm{px}} x px ′ , y px ′ and proxy nodes x p x , n d ′ ∈ V ( y p x ′ ) x'_{\mathrm{px},\mathrm{nd}}\in V(y'_{\mathrm{px}}) x px , nd ′ ∈ V ( y px ′ ) and y p x , n d ′ ∈ V ( y p x ′ ) y'_{\mathrm{px},\mathrm{nd}}\in V(y'_{\mathrm{px}}) y px , nd ′ ∈ V ( y px ′ ) picked in this iteration. By Lemma 4.16,
dist G ∖ F ( x p x ′ , y p x ′ ) ≤ dist Q ( x p x , n d ′ , y p x , n d ′ ) . \operatorname{dist}_{G\setminus F}(x'_{\mathrm{px}},y'_{\mathrm{px}})\le\operatorname{dist}_{Q}(x'_{\mathrm{px},\mathrm{nd}},y'_{\mathrm{px},\mathrm{nd}}). dist G ∖ F ( x px ′ , y px ′ ) ≤ dist Q ( x px , nd ′ , y px , nd ′ ) .
Thus it suffices to show that dist G ∖ F ( x , x p x ′ ) ≤ 2 h d i a m , α x \operatorname{dist}_{G\setminus F}(x,x'_{\mathrm{px}})\le2h_{\mathrm{diam},\alpha_x} dist G ∖ F ( x , x px ′ ) ≤ 2 h diam , α x and also dist G ∖ F ( y , y p x ′ ) ≤ 2 h d i a m , α y ′ \operatorname{dist}_{G\setminus F}(y,y'_{\mathrm{px}})\le2h_{\mathrm{diam},\alpha'_y} dist G ∖ F ( y , y px ′ ) ≤ 2 h diam , α y ′ . We prove the former below (the latter can be proved similarly). Note that we have either x = x p x ′ x=x'_{\mathrm{px}} x = x px ′ (when branching into Line 9), or for the unaffected cluster S : = N i x , α x ( x ) S:=N_{i_x,\alpha_x}(x) S := N i x , α x ( x ) , x p x ′ ∈ Λ ( S ) x'_{\mathrm{px}}\in\Lambda(S) x px ′ ∈ Λ ( S ) (when branching into Lines 12 and 13). In the latter case, by definition,
dist G ∖ F ( x , x p x ′ ) ≤ dist G [ S ] ( x , x p x ′ ) + h α x ≤ h d i a m , α x + h α x ≤ 2 h d i a m , α x . \operatorname{dist}_{G\setminus F}(x,x'_{\mathrm{px}})\le\operatorname{dist}_{G[S]}(x,x'_{\mathrm{px}})+h_{\alpha_x}\le h_{\mathrm{diam},\alpha_x}+h_{\alpha_x}\le2h_{\mathrm{diam},\alpha_x}. dist G ∖ F ( x , x px ′ ) ≤ dist G [ S ] ( x , x px ′ ) + h α x ≤ h diam , α x + h α x ≤ 2 h diam , α x .
Oracle Construction and the Update Algorithm
In this section, we first describe how to precompute and store the data structures used in the update and query phases, and then present the update algorithm that extracts the query graph from them.
The Euler Tours of Steiner Trees
We first introduce a standard technique for “linearizing” each low-degree Steiner tree into a path using the Euler Tour order. We note that this technique has been widely used in the literature on fault-tolerant connectivity and distance oracles (e.g., [20 , 21 , 37 HLRS26] ).
Definition 4.27 (Euler Tours). Consider a cluster S S S and its Steiner tree T S T_S T S . We define Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) to be its Euler tour, which is an ordered list that includes all occurrences of vertices according to a DFS traversal of T S T_S T S , starting from an arbitrary root node. For convenience, we add two virtual occurrences start ( T S ) \operatorname{start}(T_S) start ( T S ) and end ( T S ) \operatorname{end}(T_S) end ( T S ) at the front and the end of Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) as the “guard occurrences”. For each vertex v ∈ V t m n ( S ) v\in V_{\mathrm{tmn}}(S) v ∈ V tmn ( S ) , the principal occurrences of v v v on Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) is its first occurrence.
Definition 4.28 (Intervals). For a cluster S S S and its Steiner tree T S T_S T S , an interval I I I on Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) is a consecutive subsequence. The terminal vertices of I I I , denoted by V t m n ( I ) V_{\mathrm{tmn}}(I) V tmn ( I ) , are those vertices in V t m n ( S ) V_{\mathrm{tmn}}(S) V tmn ( S ) whose principal occurrences fall in I I I . The left (resp. right) outer endpoints of I I I are the occurrences immediately to the left (resp. right) of I I I .
Definition 4.29 (Residual Intervals under Failures). Consider the update with failed vertices F F F . For the Steiner tree T T T of an affected cluster, we use I T \mathcal{I}_T I T to denote the residual intervals of T T T , which are intervals obtained by removing start ( T ) \operatorname{start}(T) start ( T ) , end ( T ) \operatorname{end}(T) end ( T ) and all occurrences of failed vertices from Euler ( T ) \operatorname{Euler}(T) Euler ( T ) .
The following lemma is straightforward and describes the relationship between residual subtrees and residual intervals.
Lemma 4.30. In the update phase, for each Steiner tree T T T , there is an assignment that assigns a subset of residual intervals I T ⊆ I T \mathcal{I}_T \subseteq\mathcal{I}_T I T ⊆ I T to each residual subtree τ ∈ T ∖ F \tau\in T \setminus F τ ∈ T ∖ F , satisfying the following.
For each subtree τ ∈ T ∖ F \tau\in T \setminus F τ ∈ T ∖ F , V t m n ( τ ) = ⋃ I ∈ I τ V t m n ( I ) V_{\mathrm{tmn}}(\tau) = \bigcup_{I \in\mathcal{I}_\tau} V_{\mathrm{tmn}}(I) V tmn ( τ ) = ⋃ I ∈ I τ V tmn ( I ) .
{ I τ ∣ τ ∈ T ∖ F } \{\mathcal{I}_\tau\mid\tau\in T \setminus F\} { I τ ∣ τ ∈ T ∖ F } forms a partition of I T \mathcal{I}_T I T .
Moreover, we can compute the partition I τ ∣ τ ∈ T ∖ F \mathcal{I}_\tau\mid\tau\in T \setminus F I τ ∣ τ ∈ T ∖ F in O ~ ( ∣ V ( T ) ∣ ) \widetilde{O}(|V(T)|) O ( ∣ V ( T ) ∣ ) time.
Intuitively, Lemma Lemma 4.30 says that a residual subtree can be “represented” by a collection of residual intervals. As we will see soon, when we want to detect shortcut-based links incident to a subtree node, or determine different kinds of heaviness and denseness of a subtree node, we can work with each of its residual intervals individually, and then merge the answers. The following Lemma 4.31 shows that the number of residual intervals is asymptotically the same as the number of residual subtrees, so for simplicity, we can assume each residual subtree is “represented” by only one residual interval. This assumption does not affect the space or update-time bounds asymptotically.
Lemma 4.31. In the update phase, the number of residual intervals is at most O ~ ( f ) ⋅ n O ( 1 / k ) \widetilde{O}(f) \cdot n^{O(1/k)} O ( f ) ⋅ n O ( 1/ k ) .
Proof. This is because, for each Steiner tree T T T , the number of residual intervals generated by T T T is at most Δ ⋅ ∣ T ∩ F ∣ \Delta\cdot|T \cap F| Δ ⋅ ∣ T ∩ F ∣ , where Δ = O ~ ( 1 ) ⋅ n O ( 1 / k ) \Delta= \widetilde{O}(1) \cdot n^{O(1/k)} Δ = O ( 1 ) ⋅ n O ( 1/ k ) is the maximum degree. Furthermore, recall that each vertex can appear in at most γ t r e e = O ~ ( 1 ) ⋅ n O ( 1 / k ) \gamma_{\mathrm{tree}} = \widetilde{O}(1) \cdot n^{O(1/k)} γ tree = O ( 1 ) ⋅ n O ( 1/ k ) many Steiner trees.
Definition 4.32 (Canonical Intervals). Consider a Steiner tree T T T . For each occurrence v o c ∈ Euler ( T ) v_{\mathrm{oc}} \in\operatorname{Euler}(T) v oc ∈ Euler ( T ) , let I T → ( v o c ) \mathcal{I}^{\rightarrow}_T(v_{\mathrm{oc}}) I T → ( v oc ) denote the canonical intervals on the right side of v o c v_{\mathrm{oc}} v oc , defined as follows. Let v o c ′ ∈ Euler ( T ) v'_{\mathrm{oc}} \in\operatorname{Euler}(T) v oc ′ ∈ Euler ( T ) be the occurrence next to v o c v_{\mathrm{oc}} v oc on the right. Then I T → ( v o c ) \mathcal{I}^{\rightarrow}_T(v_{\mathrm{oc}}) I T → ( v oc ) includes all intervals starting from v o c ′ v'_{\mathrm{oc}} v oc ′ of size 1 , 2 , 4 , 8 , … 1, 2, 4, 8, \ldots 1 , 2 , 4 , 8 , … until the largest such interval, namely the suffix beginning with v o c ′ v'_{\mathrm{oc}} v oc ′ . Similarly, we can define the canonical intervals I T ← ( v o c ) \mathcal{I}^{\leftarrow}_T(v_{\mathrm{oc}}) I T ← ( v oc ) .
Observation 4.33. In the update phase, for each residual interval I ∈ I T I \in\mathcal{I}_T I ∈ I T with left and right outer endpoints u o c u_{\mathrm{oc}} u oc and v o c v_{\mathrm{oc}} v oc , there exists canonical intervals I → ∈ I T → ( u o c ) I^{\rightarrow} \in\mathcal{I}^{\rightarrow}_T(u_{\mathrm{oc}}) I → ∈ I T → ( u oc ) and I ← ∈ I T ← ( v o c ) I^{\leftarrow} \in\mathcal{I}^{\leftarrow}_T(v_{\mathrm{oc}}) I ← ∈ I T ← ( v oc ) such that V t m n ( I → ) ∪ V t m n ( I ← ) = V t m n ( I ) V_{\mathrm{tmn}}(I^{\rightarrow}) \cup V_{\mathrm{tmn}}(I^{\leftarrow}) = V_{\mathrm{tmn}}(I) V tmn ( I → ) ∪ V tmn ( I ← ) = V tmn ( I ) .
For convenience, we will use I → I^{\rightarrow} I → and I ← I^{\leftarrow} I ← to denote the canonical intervals found for a residual interval I I I by the above Observation 4.33 .
2D-Counting Tables for Shortcut-Based Links
As pointed out by previous work (e.g. [21 , 37 ] ), the shortcut-based links can be easily detected by precomputing 2D counting tables. Since this part is essentially the same as in those works, we only sketch the idea below.
Indices of the Tables. For each Steiner tree T T T of a cluster S S S , let Euler t m n ( T ) \operatorname{Euler}_{\mathrm{tmn}}(T) Euler tmn ( T ) be the sublist of Euler ( T ) \operatorname{Euler}(T) Euler ( T ) which includes only the principal occurrences. In other words, Euler t m n ( T ) \operatorname{Euler}_{\mathrm{tmn}}(T) Euler tmn ( T ) is an ordered list of vertices in V t m n ( T ) V_{\mathrm{tmn}}(T) V tmn ( T ) . We call the elements in Euler t m n ( T ) \operatorname{Euler}_{\mathrm{tmn}}(T) Euler tmn ( T ) points .
Let U U U denote the ordered list obtained by concatenating Euler t m n ( T S ) \operatorname{Euler}_{\mathrm{tmn}}(T_S) Euler tmn ( T S ) for all clusters S S S , in an arbitrary order. Moreover, we append some satellite points to the end of U U U : one for each satellite cluster S ^ \hat{S} S ^ . Then all our tables are indexed by U × U U \times U U × U . For each vertex w ∈ V w \in V w ∈ V , let V p t ( w ) ⊆ U V_{\mathrm{pt}}(w) \subseteq U V pt ( w ) ⊆ U be the set of all points corresponding to w w w (a vertex w w w may appear in multiple Steiner trees, and thus have multiple principal occurrences).
Tables. We will construct a global table M g l o M_{\mathrm{glo}} M glo and for each cluster S S S , a cluster table M S M_S M S . In fact, there is another dimension corresponding to link lengths. Since there are at most O ( log n ) O(\log n) O ( log n ) distinct link lengths, one can equivalently maintain a separate collection of the above tables for each link length. We omit this dimension for simplicity, and we will not talk about link lengths in what follows.
We only access these tables by orthogonal range counting queries. Thus these tables can be easily implemented using textbook data structures with query time O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) and space nearly linear to the number of non-zero entries.
Adding Entries into Tables.
For Type-1 Links. For each original edge ( u , v ) ∈ E (u,v) \in E ( u , v ) ∈ E , add 1 1 1 for all point pairs ( u p t , v p t ) ∈ V p t ( u ) × V p t ( v ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) \in V_{\mathrm{pt}}(u) \times V_{\mathrm{pt}}(v) ( u pt , v pt ) ∈ V pt ( u ) × V pt ( v ) in the global table M g l o M_{\mathrm{glo}} M glo .
For Type-2 Links. For each cluster S S S , each levels i 1 ≥ i 2 > i : = level ( S ) i_1 \ge i_2 > i := \operatorname{level}(S) i 1 ≥ i 2 > i := level ( S ) , if S S S is both nearby A i 1 A_{i_1} A i 1 -sparse and nearby A i 2 A_{i_2} A i 2 -sparse, then for all vertex pairs ( u , v ) ∈ Λ i 1 ( S ) × Λ i 2 ( S ) (u,v) \in\Lambda_{i_1}(S) \times\Lambda_{i_2}(S) ( u , v ) ∈ Λ i 1 ( S ) × Λ i 2 ( S ) and all point pairs ( u p t , v p t ) ∈ V p t ( u ) × V p t ( v ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) \in V_{\mathrm{pt}}(u) \times V_{\mathrm{pt}}(v) ( u pt , v pt ) ∈ V pt ( u ) × V pt ( v ) , add 1 1 1 to the entry indexed by ( u p t , v p t ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) ( u pt , v pt ) in both the global table M g l o M_{\mathrm{glo}} M glo and cluster table M S M_S M S .
For Type-3 Links. For each cluster S S S , each levels i 1 > i 2 > i : = level ( S ) i_1 > i_2 > i := \operatorname{level}(S) i 1 > i 2 > i := level ( S ) , if S S S is both nearby A i 1 A_{i_1} A i 1 -sparse but nearby A i 2 A_{i_2} A i 2 -dense, then let S ^ p t \widehat{S}_{\mathrm{pt}} S pt be the satellite point of the satellite cluster S t l i 2 , α 2 ( S ) S\mathrm{tl}_{i_2,\alpha_2}(S) S tl i 2 , α 2 ( S ) , and for each vertex u ∈ Λ i 1 ( S ) u \in\Lambda_{i_1}(S) u ∈ Λ i 1 ( S ) and each point u p t ∈ V p t ( u ) u_{\mathrm{pt}} \in V_{\mathrm{pt}}(u) u pt ∈ V pt ( u ) , add 1 1 1 to the entry indexed by ( u p t , S ^ p t ) (u_{\mathrm{pt}},\widehat{S}_{\mathrm{pt}}) ( u pt , S pt ) in both the global table M g l o M_{\mathrm{glo}} M glo and cluster table M S M_S M S .
For Type-7 Links. For each vertex v v v , add 1 1 1 to each entry ( v p t , v p t ′ ) ∈ V p t ( v ) × V p t ( v ) (v_{\mathrm{pt}},v'_{\mathrm{pt}}) \in V_{\mathrm{pt}}(v) \times V_{\mathrm{pt}}(v) ( v pt , v pt ′ ) ∈ V pt ( v ) × V pt ( v ) in the global table M g l o M_{\mathrm{glo}} M glo .
Lemma 4.34. All counting tables together take space O ~ ( f 2 ) ⋅ n 1 + O ( 1 / k ) \widetilde{O}(f^2) \cdot n^{1+O(1/k)} O ( f 2 ) ⋅ n 1 + O ( 1/ k ) .
Proof. For each vertex v v v , its corresponding set of points V p t ( v ) V_{\mathrm{pt}}(v) V pt ( v ) has size λ p t : = i max ⋅ α max ⋅ ω = O ~ ( 1 ) ⋅ n O ( 1 / k ) \lambda_{\mathrm{pt}} := i_{\max} \cdot\alpha_{\max} \cdot\omega= \widetilde{O}(1) \cdot n^{O(1/k)} λ pt := i m a x ⋅ α m a x ⋅ ω = O ( 1 ) ⋅ n O ( 1/ k ) . Recall that we replaced the input graph by a spanner at the beginning of this section, so the number of original edges is O ~ ( f 1 − 1 / k ⋅ n 1 + 1 / k ) \widetilde{O}(f^{1-1/k} \cdot n^{1+1/k}) O ( f 1 − 1/ k ⋅ n 1 + 1/ k ) . Therefore, the number of non-zero entries contributed by the type-1 and type-7 links are at most O ~ ( f ) ⋅ n 1 + O ( 1 / k ) \widetilde{O}(f) \cdot n^{1+O(1/k)} O ( f ) ⋅ n 1 + O ( 1/ k ) .
The number of clusters is i max ⋅ α max ⋅ ω ⋅ n = O ~ ( 1 ) ⋅ n 1 + O ( 1 / k ) i_{\max} \cdot\alpha_{\max} \cdot\omega\cdot n = \widetilde{O}(1) \cdot n^{1+O(1/k)} i m a x ⋅ α m a x ⋅ ω ⋅ n = O ( 1 ) ⋅ n 1 + O ( 1/ k ) . Each of them will contribute ( i max ⋅ ρ h e a v y ⋅ λ p t ) 2 = O ~ ( f 2 ) ⋅ n O ( 1 / k ) (i_{\max} \cdot\rho_{\mathrm{heavy}} \cdot\lambda_{\mathrm{pt}})^2 = \widetilde{O}(f^2) \cdot n^{O(1/k)} ( i m a x ⋅ ρ heavy ⋅ λ pt ) 2 = O ( f 2 ) ⋅ n O ( 1/ k ) non-zero entries when dealing when type-2 and type-3 links (note that ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy comes from that S S S is nearby A i 1 A_{i_1} A i 1 -sparse).
:::
Update Algorithm Part 1: Detecting Shortcut-Based Links. Detecting shortcut-based links between two nodes u n d , v n d ∈ Q u_{\mathrm{nd}},v_{\mathrm{nd}} \in Q u nd , v nd ∈ Q can be done by range counting queries. For example, for two subtree node u n d u_{\mathrm{nd}} u nd and v n d v_{\mathrm{nd}} v nd . Recall that we have assumed that each residual subtree is “represented” by one residual interval. Thus, by querying these two intervals, we can obtain the number of links connecting u n d u_{\mathrm{nd}} u nd and v n d v_{\mathrm{nd}} v nd in a table.
We note that we need to perform range counting queries on the global table and the cluster tables for each affected cluster, because we need to subtract the contribution from the invalid shortcuts provided by affected clusters.
Lemma 4.35. The running time for detecting shortcut-based links is O ~ ( f 5 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^5) \cdot n^{O(1/k)} O ( f 5 ) ⋅ n O ( 1/ k ) .
Proof. Recall from Lemma 4.10 that the number of affected clusters is λ a f f S : = O ~ ( f ) ⋅ n O ( 1 / k ) \lambda_{\mathrm{affS}} := \widetilde{O}(f) \cdot n^{O(1/k)} λ affS := O ( f ) ⋅ n O ( 1/ k ) . Recall from Lemma 4.12 that the number of nodes in Q Q Q is λ Q : = O ~ ( f 2 ) ⋅ n O ( 1 / k ) \lambda_Q := \widetilde{O}(f^2) \cdot n^{O(1/k)} λ Q := O ( f 2 ) ⋅ n O ( 1/ k ) .
The overall running time is then O ~ ( λ a f f S ⋅ λ Q 2 ) = O ~ ( f 5 ) ⋅ n O ( 1 / k ) \widetilde{O}(\lambda_{\mathrm{affS}} \cdot\lambda_Q^2) = \widetilde{O}(f^5) \cdot n^{O(1/k)} O ( λ affS ⋅ λ Q 2 ) = O ( f 5 ) ⋅ n O ( 1/ k ) . Roughly speaking, we want to detect shortcut-based links for each pair of nodes, so we have the term λ Q 2 \lambda_Q^2 λ Q 2 . The term λ a f f S \lambda_{\mathrm{affS}} λ affS is from subtracting the contributions of affected clusters.
Structures for Expansion-Based Links and Update Algorithm Part 2
Type-4 4 4 links can be detected trivially using the Euler Tour trick, so we omit discussing it. The key to detecting type-5 5 5 and type-6 6 6 links is to determine the adjacent-cluster A i A_i A i -denseness of a singleton node v n d v_{\mathrm{nd}} v nd or a subtree node τ n d \tau_{\mathrm{nd}} τ nd . Take singleton node v n d v_{\mathrm{nd}} v nd of a vertex v v v for example. Recall Definition 4.14 of adjacent-cluster denseness. The only update-phase sensitive information is that the witness cluster S S S must be unaffected. This small issue can be easily overcame: because the number of affected cluster is at most λ a f f S : = O ~ ( f ) ⋅ n O ( 1 / k ) \lambda_{\mathrm{affS}} := \widetilde{O}(f) \cdot n^{O(1/k)} λ affS := O ( f ) ⋅ n O ( 1/ k ) , we simply store up to λ a f f S + 1 \lambda_{\mathrm{affS}}+1 λ affS + 1 candidate witness clusters for this vertex v v v . Then in the update phase, we will find one if there exists an unaffected one. To check the adjacent-cluster denseness for a residual subtree, use the Euler Tour trick again and work with canonical intervals instead.
Lemma 4.36. The data structures for detecting expansion-based links take O ~ ( f ) ⋅ n 1 + O ( 1 / k ) \widetilde{O}(f) \cdot n^{1+O(1/k)} O ( f ) ⋅ n 1 + O ( 1/ k ) space.
The space bound in Lemma 4.36 basically comes from: (1) the number of vertices and canonical intervals is bounded by O ~ ( n 1 + O ( 1 / k ) ) \widetilde{O}(n^{1+O(1/k)}) O ( n 1 + O ( 1/ k ) ) , and (2) for each of them and each level, we store a list of λ a f f S + 1 = O ~ ( f ) ⋅ n O ( 1 / k ) \lambda_{\mathrm{affS}}+1 = \widetilde{O}(f) \cdot n^{O(1/k)} λ affS + 1 = O ( f ) ⋅ n O ( 1/ k ) candidate clusters.
Lemma 4.37. In the update phase, detecting all expansion-based links takes O ~ ( f 3 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^3) \cdot n^{O(1/k)} O ( f 3 ) ⋅ n O ( 1/ k ) time.
The running time bound in Lemma 4.37 basically comes from the following. First, we need to check the adjacent-cluster denseness for λ Q = O ~ ( f 2 ) ⋅ n O ( 1 / k ) \lambda_Q = \widetilde{O}(f^2) \cdot n^{O(1/k)} λ Q = O ( f 2 ) ⋅ n O ( 1/ k ) nodes and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) levels. Each check needs to scan the candidate list, which takes λ a f f S + 1 = O ~ ( f ) ⋅ n O ( 1 / k ) \lambda_{\mathrm{affS}}+1 = \widetilde{O}(f) \cdot n^{O(1/k)} λ affS + 1 = O ( f ) ⋅ n O ( 1/ k ) time. Therefore, the total time for checking adjacent-cluster denseness is O ~ ( f 3 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^3) \cdot n^{O(1/k)} O ( f 3 ) ⋅ n O ( 1/ k ) .
Next, after passing the adjacent-cluster denseness check for a node q n d q_{\mathrm{nd}} q nd (w.r.t. some level), we still need to spend additional time to add the expansion-based links.
More concretely, for type 5 5 5 , we need to add a link between q n d q_{\mathrm{nd}} q nd and S 1 , n d S_{1,\mathrm{nd}} S 1 , nd for every affected cluster S 1 ∈ N i 1 , α 1 S_1 \in\mathcal{N}_{i_1,\alpha_1} S 1 ∈ N i 1 , α 1 that intersects S 2 : = cluster ( q n d ) S_2 := \operatorname{cluster}(q_{\mathrm{nd}}) S 2 := cluster ( q nd ) . To do this, we can scan through every affected cluster S 1 ∈ N i 1 , α 1 S_1 \in\mathcal{N}_{i_1,\alpha_1} S 1 ∈ N i 1 , α 1 and check if S 1 S_1 S 1 intersects S 2 S_2 S 2 . In fact, in order to check whether S 1 S_1 S 1 intersects S 2 S_2 S 2 in O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) time, we will preprocess an intersection table of clusters. The intersection table takes only O ~ ( n 1 + O ( 1 / k ) ) \widetilde{O}(n^{1+O(1/k)}) O ( n 1 + O ( 1/ k ) ) space since each vertex will contribute at most n O ( 1 / k ) n^{O(1/k)} n O ( 1/ k ) pairs of intersecting clusters. Therefore, adding type-5 5 5 links for a node q n d q_{\mathrm{nd}} q nd needs O ~ ( f ⋅ n O ( 1 / k ) ) \widetilde{O}(f \cdot n^{O(1/k)}) O ( f ⋅ n O ( 1/ k ) ) time (basically the number of affected clusters), and the total time for adding type-5 5 5 links is O ~ ( f 3 ⋅ n O ( 1 / k ) ) \widetilde{O}(f^3 \cdot n^{O(1/k)}) O ( f 3 ⋅ n O ( 1/ k ) ) .
For type 6 6 6 , we need to add a link between q n d q_{\mathrm{nd}} q nd and the satellite node S ^ 2 , n d \widehat{S}_{2,\mathrm{nd}} S 2 , nd for every affected satellite cluster S ^ 2 ∈ N i 2 , α 2 \widehat{S}_2 \in\mathcal{N}_{i_2,\alpha_2} S 2 ∈ N i 2 , α 2 containing the vertex pivot ( S 2 ) \operatorname{pivot}(S_2) pivot ( S 2 ) . Since the number of satellite clusters containing pivot ( S 2 ) \operatorname{pivot}(S_2) pivot ( S 2 ) is n O ( 1 / k ) n^{O(1/k)} n O ( 1/ k ) (i.e., the width of satellite neighborhood covers), the total time for adding type-6 6 6 is O ~ ( f 2 ⋅ n O ( 1 / k ) ) \widetilde{O}(f^2 \cdot n^{O(1/k)}) O ( f 2 ⋅ n O ( 1/ k ) ) .
Update Algorithm Part 3
After computing the query graph Q Q Q explicitly, the update algorithm will compute the all-pair distances of Q Q Q . Recall that Q Q Q has O ~ ( f 2 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^2) \cdot n^{O(1/k)} O ( f 2 ) ⋅ n O ( 1/ k ) vertices and thus O ~ ( f 4 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^4) \cdot n^{O(1/k)} O ( f 4 ) ⋅ n O ( 1/ k ) edges. We can compute exact all-pair distances of Q Q Q using textbook algorithm in O ~ ( f 6 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^6)\cdot n^{O(1/k)} O ( f 6 ) ⋅ n O ( 1/ k ) time, or compute 3-approximate all-pair distances in O ~ ( f 4 ) ⋅ n O ( 1 / k ) \widetilde{O}(f^4)\cdot n^{O(1/k)} O ( f 4 ) ⋅ n O ( 1/ k ) time using results in e.g., [16 ] .
Proxy Lists
The proxy lists required by the query algorithm can be constructed directly, which take space O ~ ( n ⋅ f ) \widetilde{O}(n\cdot f) O ( n ⋅ f ) in total.
Proof of thm:OracleMain
The approximation and correctness is given by Lemma 4.20 (the upper-bound direction) and Lemma 4.26 (the lower-bound direction) with one more multiplicative factor 2 k − 1 2k-1 2 k − 1 from the vertex-fault-tolerant spanner (as discussed in the beginning of this section).
The construction time is clearly polynomial, if we use the polynomial-time version of LC vertex-expnader decomposition Theorem 3.6 . The space complexity is given by Lemma 4.34 and Lemma 4.36. The update time is given by Lemma 4.35 , Lemma 4.37 and § 4.9 . The query time is clearly O ~ ( f ) \widetilde{O}(f) O ( f ) from the description of Algorithm 1.
Vertex-Failure Approximate Distance Labeling Schemes
In this section, we present our vertex-failure distance (and connectivity) labeling schemes.
In § 5.1 , we discuss some building blocks that are slightly different from those in the oracle section. In § 5.2 , we define the shortcut graph H H H . In § 5.3 , we define the query graph Q Q Q , but this time it is only for analysis. In § 5.4 , we define the sparsified query graph Q ~ \widetilde{Q} Q , and describe a query algorithm that answers the query by constructing Q ~ \widetilde{Q} Q , with some interfaces deferred to § 6.1 and § 6.2 .
Theorem 5.1 (Vertex-Failure Distance Labeling Schemes). Let G G G be a graph with integral, non-negative, polynomially bounded edge and vertex lengths ℓ \ell ℓ . Given parameters f ≥ 1 f \ge1 f ≥ 1 and k ≥ 1 k \ge1 k ≥ 1 , there is an algorithm that constructs a label L ( v ) L(v) L ( v ) for each vertex v v v and supports the following.
(Query) Given two vertices x , y x,y x , y and a set of failed vertices F ⊆ V F\subseteq V F ⊆ V of size at most f f f , it computes a value d d d such that dist G ∖ F ( x , y ) ≤ d ≤ s ⋅ dist G ∖ F ( x , y ) \operatorname{dist}_{G\setminus F}(x,y)\le d\le s\cdot\operatorname{dist}_{G\setminus F}(x,y) dist G ∖ F ( x , y ) ≤ d ≤ s ⋅ dist G ∖ F ( x , y ) by reading only the labels { L ( v ) ∣ v ∈ F ∪ { x , y } } \{L(v)\mid v\in F\cup\{x,y\}\} { L ( v ) ∣ v ∈ F ∪ { x , y }} .
The approximation is s = O ( k 6 ) s=O(k^6) s = O ( k 6 ) for a polynomial-time construction, and s = O ( k 5 ) s=O(k^5) s = O ( k 5 ) for an exponential-time construction. Each label has f 3 ⋅ n 1 / k ⋅ log O ( k ) n f^3\cdot n^{1/k}\cdot\log^{O(k)}n f 3 ⋅ n 1/ k ⋅ log O ( k ) n bits. Moreover, the query time is polynomial in the total size of accessed label, and the algorithm is randomized which can answer each query correctly with probability 1 − n − 10 1-n^{-10} 1 − n − 10 .
The approximation of Theorem 5.1 is proven in § 5.7.1 . The label size is shown in § 6.4 .
Theorem 5.2 (Vertex-Failure Connectivity Labeling Schemes). Let G G G be a graph. Given parameters f ≥ 1 f\ge1 f ≥ 1 , there is an algorithm that constructs a label L ( v ) L(v) L ( v ) for each vertex v v v and supports the following.
(Query) Given two vertices x , y x,y x , y and a set of failed vertices F ⊆ V F \subseteq V F ⊆ V of size at most f f f , it determines whether x x x and y y y is connected in G ∖ F G \setminus F G ∖ F , by reading only the labels { L ( v ) ∣ v ∈ F ∪ { x , y } } \{L(v)\mid v\in F\cup\{x,y\}\} { L ( v ) ∣ v ∈ F ∪ { x , y }} .
The labels can be constructed in polynomial time. Each label has O ~ ( f 2 ) \widetilde{O}(f^2) O ( f 2 ) bits. Moreover, the query time is polynomial in the total size of accessed label, and the algorithm is deterministic.
We finally discuss how to achieve Theorem 5.2 in § 6.5 .
Building Blocks
For labeling schemes, we still use the same based length scale { h α ∣ 1 ≤ α ≤ α max } \{h_\alpha\mid1\leq\alpha\leq\alpha_{\max}\} { h α ∣ 1 ≤ α ≤ α m a x } and the parameter ρ h e a v y = f ⋅ O ( log n / ϕ ) + 1 \rho_{\mathrm{heavy}}=f\cdot O(\log n/\phi)+1 ρ heavy = f ⋅ O ( log n / ϕ ) + 1 .
Expander Hierarchy and Expanding Graphs
we still use the same LC vertex expander hierarchy in § 4.2 and the expanding graphs G i , α G_{i,\alpha} G i , α in § 4.2.1 , except for the following small modifications.
We no longer need the second decompositions C ^ \widehat{\mathcal{C}} C when building the hierarchy, since the idea of satellite cluster is not needed in this section. Formally, set all moving cuts C ^ i , α \widehat{C}_{i,\alpha} C i , α to be zero function.
Below, we will change the length slack of neighborhood covers to s n c = k 2 s_{\mathrm{nc}}=k^2 s nc = k 2 . So this change propagates to h e d , α h_{\mathrm{ed},\alpha} h ed , α , which now becomes h e d , α = Θ ( k 2 ⋅ h α ) h_{\mathrm{ed},\alpha}=\Theta(k^2\cdot h_\alpha) h ed , α = Θ ( k 2 ⋅ h α ) .
The Tree-Structured Hierarchy of Neighborhood Covers
The major change of the building blocks is about the neighborhood covers. This time we enforce the clusters across levels form a tree structure. Gaining this stronger structure will make the algorithm conceptually simpler and bypass some technical issues, at a cost of a worse tradeoff between s n c s_{\mathrm{nc}} s nc and the final width. The new neighborhood covers are constructed as follows.
Define parameters
s n c = k 2 , h c o v , α = 2 ⋅ h α , h d i a m , α = h c o v , α ⋅ s n c = Θ ( k 2 h α ) s_{\mathrm{nc}}=k^2,\qquad h_{\mathrm{cov},\alpha}=2\cdot h_\alpha,\qquad h_{\mathrm{diam},\alpha}=h_{\mathrm{cov},\alpha}\cdot s_{\mathrm{nc}}=\Theta(k^2h_\alpha) s nc = k 2 , h cov , α = 2 ⋅ h α , h diam , α = h cov , α ⋅ s nc = Θ ( k 2 h α )
For each level i i i from i max i_{\max} i m a x to 0 0 0 , each level-( i + 1 ) (i+1) ( i + 1 ) cluster S ^ \widehat{S} S with scale α ^ : = scale ( S ^ ) \widehat{\alpha}:=\operatorname{scale}(\widehat{S}) α := scale ( S ) (when i = i max i=i_{\max} i = i m a x , let S ^ = V \widehat{S}=V S = V be the whole vertex set and α ^ = α max \widehat{\alpha}=\alpha_{\max} α = α m a x ), and each length scale α ∈ [ 1 , α ^ ] \alpha\in[1,\widehat{\alpha}] α ∈ [ 1 , α ] ,
construct a level-i i i cover N i , α , S ^ \mathcal{N}_{i,\alpha,\widehat{S}} N i , α , S in the subgraph G i , α [ S ^ ] G_{i,\alpha}[\widehat{S}] G i , α [ S ] with covering radius h c o v , α h_{\mathrm{cov},\alpha} h cov , α , diameter h d i a m , α h_{\mathrm{diam},\alpha} h diam , α and width ω ′ = O ( n 1 / s n c ⋅ s n c ) \omega'=O(n^{1/s_{\mathrm{nc}}}\cdot s_{\mathrm{nc}}) ω ′ = O ( n 1/ s nc ⋅ s nc ) ,
For each level-i i i cluster, we still define V t m n ( S ) = S ∩ A i V_{\mathrm{tmn}}(S)=S\cap A_i V tmn ( S ) = S ∩ A i .
The following observation bounds the total width of all the neighborhood covers.
Observation 5.3. Each vertex can appear in at most
ω = n O ( 1 / k ) ⋅ log O ( k ) n \omega=n^{O(1/k)}\cdot\log^{O(k)}n ω = n O ( 1/ k ) ⋅ log O ( k ) n clusters. We call this ω \omega ω the total width of the neighborhood cover hierarchy.
Proof. Observe that each level contributes a multiplicative factor of α max ⋅ ω ′ \alpha_{\max}\cdot\omega' α m a x ⋅ ω ′ , so the final width is
( α max ⋅ ω ′ ) i max = ( O ( log n ) ⋅ n 1 / k 2 ⋅ k 2 ) O ( k ) = n O ( 1 / k ) ⋅ log O ( k ) n . (\alpha_{\max}\cdot\omega')^{i_{\max}}=(O(\log n)\cdot n^{1/k^2}\cdot k^2)^{O(k)}=n^{O(1/k)}\cdot\log^{O(k)}n. ( α m a x ⋅ ω ′ ) i m a x = ( O ( log n ) ⋅ n 1/ k 2 ⋅ k 2 ) O ( k ) = n O ( 1/ k ) ⋅ log O ( k ) n .
Ancestor-Descendant Relations among Clusters. For each cluster S ∈ N i , α , S ^ S \in\mathcal{N}_{i,\alpha,\hat{S}} S ∈ N i , α , S ^ , the parent of S S S is S ^ \hat{S} S ^ , and S S S is a child of S ^ \hat{S} S ^ . This naturally defines the ancestor-descendant relations among clusters. When S ^ \hat{S} S ^ is an ancestor of S S S , we write S ^ ⪰ S \hat{S} \succeq S S ^ ⪰ S (use ≻ \succ ≻ for strict ancestor). Similarly, we write S ˇ ⪯ S \check{S} \preceq S S ˇ ⪯ S (or S ˇ ≺ S \check{S} \prec S S ˇ ≺ S ) if S ˇ \check{S} S ˇ is a descendant (or strict descendant) of S S S .
The New Surrounding Set Λ ( S ) \Lambda(S) Λ ( S ) and Leader Sets B i ′ ( S ) B_{i'}(S) B i ′ ( S ) . For each cluster S S S with level i : = level ( S ) i := \operatorname{level}(S) i := level ( S ) and length scale α : = scale ( S ) \alpha:= \operatorname{scale}(S) α := scale ( S ) , define
Λ ( S ) : = ⋃ S ^ ≻ S { v ∈ V t m n ( S ^ ) ∣ v ∈ S or there is an edge in G connecting v and S of length ≤ h α } . \Lambda(S) := \bigcup_{\hat{S}\succ S} \left\{v \in V_{\mathrm{tmn}}(\hat{S}) \mid v \in S \text{ or there is an edge in } G \text{ connecting } v \text{ and } S \text{ of length } \le h_\alpha\right\}. Λ ( S ) := S ^ ≻ S ⋃ { v ∈ V tmn ( S ^ ) ∣ v ∈ S or there is an edge in G connecting v and S of length ≤ h α } .
and naturally, for each higher level i ′ > i i' > i i ′ > i , Λ i ′ ( S ) = Λ ( S ) ∩ V t m n ( S ^ i ′ ) \Lambda_{i'}(S) = \Lambda(S) \cap V_{\mathrm{tmn}}(\hat{S}_{i'}) Λ i ′ ( S ) = Λ ( S ) ∩ V tmn ( S ^ i ′ ) , where S ^ i ′ \hat{S}_{i'} S ^ i ′ is the level-i ′ i' i ′ ancestor of S S S .
We have the same definition of nearby denseness as in Definition 4.13 . For each level i ′ > i i' > i i ′ > i , we additional define a leader set B i ′ ( S ) ⊆ Λ i ′ ( S ) B_{i'}(S) \subseteq\Lambda_{i'}(S) B i ′ ( S ) ⊆ Λ i ′ ( S ) as follows. If S S S is nearby A i ′ A_{i'} A i ′ -sparse, then set B i ′ ( S ) = Λ i ′ ( S ) B_{i'}(S) = \Lambda_{i'}(S) B i ′ ( S ) = Λ i ′ ( S ) . If S S S is nearby A i ′ A_{i'} A i ′ -dense, then let B i ′ ( S ) B_{i'}(S) B i ′ ( S ) be an arbitrary subset of size
∣ B i ′ ( S ) ∣ = min { f + 1 , ∣ Λ i ′ ( S ) ∣ } . \lvert B_{i'}(S)\rvert= \min\{f+1,\lvert\Lambda_{i'}(S)\rvert\}. ∣ B i ′ ( S )∣ = min { f + 1 , ∣ Λ i ′ ( S )∣} .
Remark 5.4. The key benefits we obtain from the new hierarchy of neighborhood covers are as follows.
First, it is compatible with the decomposition process of the witness path in § 4.6.1 , so we only need to add shortcut-based link between (the terminal sets) of ancestor-descendant cluster pairs.
Second, by the tree structure, once a cluster is affected in the query phase, all its ancestor will also be affected. This means, for a “maximal” unaffected cluster S S S , all vertices in Λ ( S ) \Lambda(S) Λ ( S ) must belong to (the terminal set) of an affected ancestral cluster. This enables us to replace the “satellite cluster” in the oracle section with the leader set B i ′ ( S ) B_{i'}(S) B i ′ ( S ) for representing Λ i ′ ( S ) \Lambda_{i'}(S) Λ i ′ ( S ) . This is because B i ′ ( S ) B_{i'}(S) B i ′ ( S ) will contain a non-failed vertex v v v in Λ i ′ ( S ) \Lambda_{i'}(S) Λ i ′ ( S ) , and v v v indeed shows up in the query graph (as a singleton node or part of a subtree node). Then v v v will connect to all vertices in Λ i ′ ( S ) \Lambda_{i'}(S) Λ i ′ ( S ) via expansion-based links. In contrast, in the oracle section, even though we can define such a leader set, but the vertex v v v may not show up in the query graph.
Low-Degree Low-Diameters Steiner Trees
This part is analogous to § 4.2.3 . We construct a collection of Steiner trees { T S ∣ all clusters S } \{T_S \mid\text{all clusters } S\} { T S ∣ all clusters S } in G G G that satisfies the following.
Each tree T S T_S T S spans the terminals V t m n ( S ) V_{\mathrm{tmn}}(S) V tmn ( S ) of S S S .
Each tree T S T_S T S has diameter h t r e e , α = 4 h e d , α ⋅ s e d ⋅ s t r e e = Θ ( k 4 ⋅ h α ) h_{\mathrm{tree},\alpha} = 4h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} = \Theta(k^4 \cdot h_\alpha) h tree , α = 4 h ed , α ⋅ s ed ⋅ s tree = Θ ( k 4 ⋅ h α ) . Note that h t r e e , α h_{\mathrm{tree},\alpha} h tree , α changed because of the new s n c s_{\mathrm{nc}} s nc .
Each tree has maximum degree Δ = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) = n O ( 1 / k ) ⋅ log O ( k ) n \Delta= \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) = n^{O(1/k)} \cdot\log^{O(k)} n Δ = O ( n 1/ s tree ⋅ ω / ϕ ) = n O ( 1/ k ) ⋅ log O ( k ) n .
Each vertex appears in at most γ t r e e = O ~ ( n 1 / s t r e e ⋅ ω / ϕ ) = n O ( 1 / k ) ⋅ log O ( k ) n \gamma_{\mathrm{tree}} = \widetilde{O}(n^{1/s_{\mathrm{tree}}} \cdot\omega/\phi) = n^{O(1/k)} \cdot\log^{O(k)} n γ tree = O ( n 1/ s tree ⋅ ω / ϕ ) = n O ( 1/ k ) ⋅ log O ( k ) n Steiner trees.
The Shortcut Graph
In this section, we define the shortcut graph H H H which is purely for analysis. Intuitively, this graph contains the shortcuts behind the shortcut-based links in the query graph. Compared to the oracle section, this time we have a cleaner construction of shortcuts due to the benefits explained in Remark 5.4. To distinguish between input graph G G G , shortcut graph H H H , and query graph Q Q Q , we call vertices and edges in H H H points and shortcuts .
Points of H H H . For each cluster S S S and each vertex v ∈ V t m n ( S ) v \in V_{\mathrm{tmn}}(S) v ∈ V tmn ( S ) , create a point with respect to v v v and S S S , denoted by point ( v , S ) \operatorname{point}(v,S) point ( v , S ) . Define the core of S S S to be the point set
core ( S ) : = { point ( v , S ) ∣ v ∈ V t m n ( S ) } . \operatorname{core}(S) := \{\operatorname{point}(v,S) \mid v \in V_{\mathrm{tmn}}(S)\}. core ( S ) := { point ( v , S ) ∣ v ∈ V tmn ( S )} .
The node set of H H H is then
V ( H ) : = ⨆ cluster S core ( S ) . V(H) := \bigsqcup_{\text{cluster }S} \operatorname{core}(S). V ( H ) := cluster S ⨆ core ( S ) .
For each point v p t = point ( v , S ) v_{\mathrm{pt}} = \operatorname{point}(v,S) v pt = point ( v , S ) , let π v t x ( v p t ) = v \pi_{\mathrm{vtx}}(v_{\mathrm{pt}}) = v π vtx ( v pt ) = v denote its corresponding vertex.
Shortcuts of H H H . We add the following two types of shortcuts.
For each cluster S 2 S_2 S 2 and each ancestor cluster S 1 ⪰ S 2 S_1 \succeq S_2 S 1 ⪰ S 2 , if there is an original edge e = ( u , v ) e=(u,v) e = ( u , v ) with u ∈ V t m n ( S 1 ) u \in V_{\mathrm{tmn}}(S_1) u ∈ V tmn ( S 1 ) , v ∈ V t m n ( S 2 ) v \in V_{\mathrm{tmn}}(S_2) v ∈ V tmn ( S 2 ) and length ℓ G ( e ) ≤ h α 2 \ell_G(e) \le h_{\alpha_2} ℓ G ( e ) ≤ h α 2 (for α 2 = scale ( S 2 ) \alpha_2=\operatorname{scale}(S_2) α 2 = scale ( S 2 ) ), then add a shortcut between point ( u , S 1 ) \operatorname{point}(u,S_1) point ( u , S 1 ) and point ( v , S 2 ) \operatorname{point}(v,S_2) point ( v , S 2 ) with length ℓ G ( e ) \ell_G(e) ℓ G ( e ) .
For each triple of clusters S 1 , S 2 , S S_1,S_2,S S 1 , S 2 , S s.t. S 1 ≻ S 2 ≻ S S_1 \succ S_2 \succ S S 1 ≻ S 2 ≻ S , for each unordered pair of distinct vertices ( u , v ) ∈ B i 1 ( S ) × B i 2 ( S ) (u,v) \in B_{i_1}(S) \times B_{i_2}(S) ( u , v ) ∈ B i 1 ( S ) × B i 2 ( S ) where i 1 : = level ( S 1 ) i_1 := \operatorname{level}(S_1) i 1 := level ( S 1 ) and i 2 : = level ( S 2 ) i_2 := \operatorname{level}(S_2) i 2 := level ( S 2 ) , add a shortcut between point ( u , S 1 ) \operatorname{point}(u,S_1) point ( u , S 1 ) and point ( v , S 2 ) \operatorname{point}(v,S_2) point ( v , S 2 ) with length h d i a m , α + 2 h α h_{\mathrm{diam},\alpha}+2h_\alpha h diam , α + 2 h α where α : = scale ( S ) \alpha:= \operatorname{scale}(S) α := scale ( S ) . This shortcut is owned by the cluster S S S .
For convenience, we may also use H H H to denote the set of all shortcuts. For each shortcut ( point ( u , S 1 ) , point ( v , S 2 ) ) (\operatorname{point}(u,S_1),\operatorname{point}(v,S_2)) ( point ( u , S 1 ) , point ( v , S 2 )) connecting two different levels, i.e. S 1 ≻ S 2 S_1 \succ S_2 S 1 ≻ S 2 , we call point ( u , S 1 ) \operatorname{point}(u,S_1) point ( u , S 1 ) its upper endpoint and point ( v , S 2 ) \operatorname{point}(v,S_2) point ( v , S 2 ) its lower endpoint .
Definition 5.5 (The counting function δ \delta δ and length function β \beta β ). For a subset of shortcuts H ′ ⊆ H H' \subseteq H H ′ ⊆ H , two sets of points U p t U_{\mathrm{pt}} U pt and V p t V_{\mathrm{pt}} V pt , we define
δ ( U p t , V p t , H ′ ) : = the number of shortcuts in H ′ with one endpoint in U p t and the other in V p t , \delta(U_{\mathrm{pt}},V_{\mathrm{pt}},H') := \text{the number of shortcuts in }H'\text{ with one endpoint in }U_{\mathrm{pt}}\text{ and the other in }V_{\mathrm{pt}}, δ ( U pt , V pt , H ′ ) := the number of shortcuts in H ′ with one endpoint in U pt and the other in V pt , β ( U p t , V p t , H ′ ) : = the minimum length over shortcuts in H ′ with one endpoint in U p t and the other in V p t . \beta(U_{\mathrm{pt}},V_{\mathrm{pt}},H') := \text{the minimum length over shortcuts in }H'\text{ with one endpoint in }U_{\mathrm{pt}}\text{ and the other in }V_{\mathrm{pt}}. β ( U pt , V pt , H ′ ) := the minimum length over shortcuts in H ′ with one endpoint in U pt and the other in V pt . Note that if a shortcut ( u p t , v p t ) ∈ H ′ (u_{\mathrm{pt}},v_{\mathrm{pt}}) \in H' ( u pt , v pt ) ∈ H ′ has u p t , v p t ∈ U p t ∩ V p t u_{\mathrm{pt}},v_{\mathrm{pt}} \in U_{\mathrm{pt}} \cap V_{\mathrm{pt}} u pt , v pt ∈ U pt ∩ V pt , it will be counted twice in δ ( U p t , V p t , H ′ ) \delta(U_{\mathrm{pt}},V_{\mathrm{pt}},H') δ ( U pt , V pt , H ′ ) .
The Query Graph
Now we define our query graph Q Q Q in the query phase with input ( x , y , F ) (x,y,F) ( x , y , F ) (recall that we merge the update and query phase in the labeling scheme model). Note that this query graph Q Q Q is also purely for analysis. The graph we will actually construct and use to answer queries is the sparsified query graph Q ~ \widetilde{Q} Q , introduced later in § 5.4 .
Affected Clusters, Residual Subtrees, and Affected Shortcuts
Let F p t F_{\mathrm{pt}} F pt collect all points corresponding to failed vertices, called failed points .
The same as § 4.3.1 , the affected clusters are still clusters hit by failed vertices, and we generate residual subtrees for affected clusters in the same way. For each residual subtree τ \tau τ of an affected cluster S S S , similarly we define its core point set to be
core ( τ ) : = { point ( v , S ) ∣ v ∈ V t m n ( τ ) } . \operatorname{core}(\tau) := \{\operatorname{point}(v,S) \mid v \in V_{\mathrm{tmn}}(\tau)\}. core ( τ ) := { point ( v , S ) ∣ v ∈ V tmn ( τ )} .
For a shortcut e s c ∈ H e_{\mathrm{sc}} \in H e sc ∈ H , it is affected if it is owned by an affected cluster; otherwise it is unaffected. It is non-failed if both of its endpoints are not failed points; otherwise it is failed. Note that these two terms “affected” and “non-failed” of shortcuts are independent. An affected shortcut could be non-failed, while a failed shortcut could be unaffected. Below are some useful observations about shortcuts.
Let λ a f f S \lambda_{\mathrm{affS}} λ affS denote the number of affected clusters. Let λ n b \lambda_{\mathrm{nb}} λ nb upper bound ∑ i ′ ∣ B i ′ ( S ) ∣ \sum_{i'} |B_{i'}(S)| ∑ i ′ ∣ B i ′ ( S ) ∣ for an arbitrary cluster S S S . We clearly have
λ a f f S ≤ f ⋅ ω = f ⋅ n O ( 1 / k ) ⋅ log O ( k ) n , λ n b ≤ i max ⋅ ρ h e a v y = O ~ ( f ) ⋅ n O ( 1 / k ) . \lambda_{\mathrm{affS}} \le f \cdot\omega= f \cdot n^{O(1/k)} \cdot\log^{O(k)} n,\qquad\lambda_{\mathrm{nb}} \le i_{\max} \cdot\rho_{\mathrm{heavy}} = \widetilde{O}(f) \cdot n^{O(1/k)}. λ affS ≤ f ⋅ ω = f ⋅ n O ( 1/ k ) ⋅ log O ( k ) n , λ nb ≤ i m a x ⋅ ρ heavy = O ( f ) ⋅ n O ( 1/ k ) .
Observation 5.6. There are at most λ a f f S ⋅ λ n b \lambda_{\mathrm{affS}} \cdot\lambda_{\mathrm{nb}} λ affS ⋅ λ nb distinct points incident to affected shortcuts.
Proof. Each shortcut owned by a cluster S S S must have both endpoints in the leader sets B i ′ ( S ) B_{i'}(S) B i ′ ( S ) . □
Observation 5.7. Each cluster S S S owns at most λ n b 2 \lambda_{\mathrm{nb}}^2 λ nb 2 shortcuts.
Nodes in the Query Graph Q Q Q
Similar to the oracle setting, the query graph Q Q Q has three types of nodes.
(Singleton Nodes) For each affected cluster S S S and each vertex v ∈ V t m n ( S ) v \in V_{\mathrm{tmn}}(S) v ∈ V tmn ( S ) such that v v v is inside a light residual subtree of S S S , create a singleton node node ( v , S ) \operatorname{node}(v,S) node ( v , S ) . The node length is 0
(Subtree Nodes) For each affected cluster S S S and each heavy residual subtree of S S S , create a subtree node node ( τ ) \operatorname{node}(\tau) node ( τ ) . The node length is h t r e e , α = Θ ( s n c ⋅ s e d ⋅ s t r e e ⋅ h α ) h_{\mathrm{tree},\alpha} = \Theta(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} \cdot h_\alpha) h tree , α = Θ ( s nc ⋅ s ed ⋅ s tree ⋅ h α ) for α = scale ( S ) \alpha= \operatorname{scale}(S) α = scale ( S ) .
(Cluster Nodes) For each affected cluster S S S , create a cluster node node ( S ) \operatorname{node}(S) node ( S ) . The node length is h e d , α ⋅ s e d + 2 h d i a m , α + 4 h α + h t r e e , α = Θ ( s n c ⋅ s e d ⋅ s t r e e ⋅ h α ) h_{\mathrm{ed},\alpha} \cdot s_{\mathrm{ed}} + 2h_{\mathrm{diam},\alpha} + 4h_\alpha+ h_{\mathrm{tree},\alpha} = \Theta(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} \cdot h_\alpha) h ed , α ⋅ s ed + 2 h diam , α + 4 h α + h tree , α = Θ ( s nc ⋅ s ed ⋅ s tree ⋅ h α ) . Note that the cluster node length has an extra h t r e e , α h_{\mathrm{tree},\alpha} h tree , α additive factor compared to the oracle section, because of some technical details in the proof of Lemma 5.16 .
For each node q n d q_{\mathrm{nd}} q nd defined above, set cluster ( q n d ) : = S \operatorname{cluster}(q_{\mathrm{nd}}) := S cluster ( q nd ) := S , and let level ( q n d ) \operatorname{level}(q_{\mathrm{nd}}) level ( q nd ) and scale ( q n d ) \operatorname{scale}(q_{\mathrm{nd}}) scale ( q nd ) inherit the level and length scale of S S S , respectively. Again singleton nodes and subtree nodes are concrete nodes , and cluster nodes are virtual nodes . Below are some notations.
Mapping Between Points and Nodes. For each point v p t = point ( v , S ) v_{\mathrm{pt}} = \operatorname{point}(v,S) v pt = point ( v , S ) , if v v v is in a light residual subtree of S S S , then π n d ( v p t ) = { node ( v , S ) } \pi_{\mathrm{nd}}(v_{\mathrm{pt}}) = \{\operatorname{node}(v,S)\} π nd ( v pt ) = { node ( v , S )} ; if v v v is in a heavy residual subtree τ \tau τ of S S S , then π n d ( v p t ) = node ( τ ) \pi_{\mathrm{nd}}(v_{\mathrm{pt}}) = \operatorname{node}(\tau) π nd ( v pt ) = node ( τ ) .
For each concrete node q n d q_{\mathrm{nd}} q nd , if q n d = node ( v , S ) q_{\mathrm{nd}} = \operatorname{node}(v,S) q nd = node ( v , S ) is a singleton node, then π p t ( q n d ) = { point ( v , S ) } \pi_{\mathrm{pt}}(q_{\mathrm{nd}}) = \{\operatorname{point}(v,S)\} π pt ( q nd ) = { point ( v , S )} ; if q n d = node ( τ ) q_{\mathrm{nd}} = \operatorname{node}(\tau) q nd = node ( τ ) is a subtree node, then π p t ( q n d ) = core ( τ ) \pi_{\mathrm{pt}}(q_{\mathrm{nd}}) = \operatorname{core}(\tau) π pt ( q nd ) = core ( τ ) . Mapping Between Vertices and Concrete Nodes. For each node q n d q_{\mathrm{nd}} q nd , if q n d = node ( v , S ) q_{\mathrm{nd}} = \operatorname{node}(v,S) q nd = node ( v , S ) is a singleton node, then V ( q n d ) = { v } V(q_{\mathrm{nd}}) = \{v\} V ( q nd ) = { v } ; if q n d = node ( τ ) q_{\mathrm{nd}} = \operatorname{node}(\tau) q nd = node ( τ ) is a subtree node, then V ( q n d ) = V t m n ( τ ) V(q_{\mathrm{nd}}) = V_{\mathrm{tmn}}(\tau) V ( q nd ) = V tmn ( τ ) . For each vertex v v v , V n d ( v ) = { q n d ∣ v ∈ V ( q n d ) } V_{\mathrm{nd}}(v) = \{q_{\mathrm{nd}} \mid v \in V(q_{\mathrm{nd}})\} V nd ( v ) = { q nd ∣ v ∈ V ( q nd )} .
Links in the Query Graph Q Q Q
Shortcut-Based Links. The shortcut-based links defined below can be viewed as mappings of the H H H -shortcuts into the query graph Q Q Q .
Type 1. For each non-failed and unaffected H H H -shortcut e s c : = ( u p t , v p t ) e_{\mathrm{sc}} := (u_{\mathrm{pt}},v_{\mathrm{pt}}) e sc := ( u pt , v pt ) , add a link e l k e_{\mathrm{lk}} e lk between nodes π n d ( u p t ) \pi_{\mathrm{nd}}(u_{\mathrm{pt}}) π nd ( u pt ) and π n d ( v p t ) \pi_{\mathrm{nd}}(v_{\mathrm{pt}}) π nd ( v pt ) with length ℓ ( e l k ) = ℓ ( e s c ) \ell(e_{\mathrm{lk}}) = \ell(e_{\mathrm{sc}}) ℓ ( e lk ) = ℓ ( e sc ) .
Expansion-Based Links. We define two types of expansion-based links: type 2 and type 3, which are analogous to type 4 and type 5 in the oracle section respectively.
Type 2. For each affected cluster S S S , and each heavy residual subtree τ \tau τ of S S S , add a link between node ( τ ) \operatorname{node}(\tau) node ( τ ) and node ( S ) \operatorname{node}(S) node ( S ) with length 0.
The following definition of adjacent-cluster denseness is almost identical to its counterpart in the oracle section, except that it is now formulated for point sets.
Definition 5.8 (Adjacent-Cluster Denseness). For each cluster S S S , each level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , a point v p t ∈ core ( S ) v_{\mathrm{pt}} \in\operatorname{core}(S) v pt ∈ core ( S ) is adjacent-cluster A i ′ A_{i'} A i ′ -dense if
A residual subtree τ \tau τ of S S S (or equivalently, the point set core ( τ ) \operatorname{core}(\tau) core ( τ ) ) is adjacent-cluster A i ′ A_{i'} A i ′ -dense if there exists a point v p t ∈ core ( τ ) v_{\mathrm{pt}} \in\operatorname{core}(\tau) v pt ∈ core ( τ ) that is adjacent-cluster A i ′ A_{i'} A i ′ -dense.
Type 3. For each affected cluster S S S , and level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , let S ^ ⪰ S \widehat{S} \succeq S S ⪰ S be the level-i ′ i' i ′ ancestor.
For each singleton node v n d v_{\mathrm{nd}} v nd with cluster ( v n d ) = S \operatorname{cluster}(v_{\mathrm{nd}}) = S cluster ( v nd ) = S , if the point v p t : = π p t ( v n d ) v_{\mathrm{pt}} := \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) v pt := π pt ( v nd ) is adjacent-cluster A i ′ A_{i'} A i ′ -dense, then add a link between v n d v_{\mathrm{nd}} v nd and node ( S ^ ) \operatorname{node}(\widehat{S}) node ( S ) with length 0.
For each heavy residual subtree τ \tau τ of S S S , if τ \tau τ is adjacent-cluster A i ′ A_{i'} A i ′ -dense, then add a link between node ( τ ) \operatorname{node}(\tau) node ( τ ) and node ( S ^ ) \operatorname{node}(\widehat{S}) node ( S ) with length 0.
Approximation of the Query Graph
The following lemma essentially establishes the upper-bound direction for query answering with the query graph Q Q Q , assuming that Q Q Q is given explicitly. It basically follows the strategy of proving Lemma 4.19, but stops at a middle step Lemma 4.22 . In fact, after simplifying P Q P_Q P Q as in the proof of Lemma 4.19, it will certify that dist Q ( x n d , y n d ) ≤ O ( s n c ⋅ s e d ⋅ s t r e e ⋅ i max ) ⋅ dist G ∖ F ( x , y ) \operatorname{dist}_Q(x_{\mathrm{nd}},y_{\mathrm{nd}}) \le O(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} \cdot i_{\max}) \cdot\operatorname{dist}_{G\setminus F}(x,y) dist Q ( x nd , y nd ) ≤ O ( s nc ⋅ s ed ⋅ s tree ⋅ i m a x ) ⋅ dist G ∖ F ( x , y )
Lemma 5.9. There exists a (not necessarily simple) path P Q P_Q P Q in Q Q Q connecting some x n d ∈ V n d ( x ) x_{\mathrm{nd}} \in V_{\mathrm{nd}}(x) x nd ∈ V nd ( x ) and y n d ∈ V n d ( y ) y_{\mathrm{nd}} \in V_{\mathrm{nd}}(y) y nd ∈ V nd ( y ) , satisfying the following.
Each subpath whose endpoints are concrete and all internal nodes are virtual is in the form either
(a) ( w n d , z n d ) (w_{\mathrm{nd}}, z_{\mathrm{nd}}) ( w nd , z nd ) , which is a single shortcut-based link, or
(b) ( w n d , S n d ) ∘ ( S n d , z n d ) (w_{\mathrm{nd}}, S_{\mathrm{nd}}) \circ(S_{\mathrm{nd}}, z_{\mathrm{nd}}) ( w nd , S nd ) ∘ ( S nd , z nd ) , i.e., two expansion-based links sharing a common cluster node S n d S_{\mathrm{nd}} S nd . Moreover, either cluster ( S n d ) = cluster ( w n d ) ⪰ cluster ( z n d ) \operatorname{cluster}(S_{\mathrm{nd}}) = \operatorname{cluster}(w_{\mathrm{nd}}) \succeq\operatorname{cluster}(z_{\mathrm{nd}}) cluster ( S nd ) = cluster ( w nd ) ⪰ cluster ( z nd ) or cluster ( S n d ) = cluster ( z n d ) ⪰ cluster ( w n d ) \operatorname{cluster}(S_{\mathrm{nd}}) = \operatorname{cluster}(z_{\mathrm{nd}}) \succeq\operatorname{cluster}(w_{\mathrm{nd}}) cluster ( S nd ) = cluster ( z nd ) ⪰ cluster ( w nd ) .
For each occurrence of a subtree node τ n d \tau_{\mathrm{nd}} τ nd on P P P , this occurrence serves as an endpoint of a form-(b) subpath.
The total length of shortcut-based links on P Q P_Q P Q is at most O ( s n c ) ⋅ dist G ∖ F ( u , v ) O(s_{\mathrm{nc}}) \cdot\operatorname{dist}_{G \setminus F}(u,v) O ( s nc ) ⋅ dist G ∖ F ( u , v ) .
Each form-(b) subpath has length at most O ( 1 ) ⋅ ℓ ( S n d ) O(1) \cdot\ell(S_{\mathrm{nd}}) O ( 1 ) ⋅ ℓ ( S nd ) .
The total length of cluster nodes in
{ node ( S ) ∣ S = cluster ( q n d ) for some node q n d on P Q } \{\operatorname{node}(S) \mid S = \operatorname{cluster}(q_{\mathrm{nd}})\text{ for some node }q_{\mathrm{nd}}\text{ on }P_Q\} { node ( S ) ∣ S = cluster ( q nd ) for some node q nd on P Q }
is at most O ( s n c ⋅ s e d ⋅ s t r e e ⋅ i max ) ⋅ dist G ∖ F ( x , y ) O(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}} \cdot i_{\max}) \cdot\operatorname{dist}_{G \setminus F}(x,y) O ( s nc ⋅ s ed ⋅ s tree ⋅ i m a x ) ⋅ dist G ∖ F ( x , y ) .
Proof. Fix an arbitrary shortest path P P P connecting u u u and v v v in G ∖ F G \setminus F G ∖ F . Following the proof strategy of Lemma 4.19, we will first recursively decompose P P P into leaf segments.
The Decomposition Process. The decomposition process is almost the same as that in the proof of Lemma 4.19, except for the following changes.
We now start from the top level i max i_{\max} i m a x of the hierarchy, i.e. the initial segment has i σ : = i max i_{\sigma} := i_{\max} i σ := i m a x .
For each segment σ \sigma σ , let σ ^ \hat{\sigma} σ ^ be its parent and let S ^ : = S σ ^ \hat{S} := S_{\hat{\sigma}} S ^ := S σ ^ be the corresponding cluster of σ ^ \hat{\sigma} σ ^ . Then the corresponding cluster S σ S_{\sigma} S σ of σ \sigma σ should be selected from the neighborhood cover N i σ , α σ , S ^ \mathcal{N}_{i_{\sigma},\alpha_{\sigma},\hat{S}} N i σ , α σ , S ^ , i.e. the cover constructed for the level-( i σ + 1 ) (i_{\sigma}+1) ( i σ + 1 ) cluster S ^ \hat{S} S ^ . In particular, the initial segment should select its corresponding cluster from N i max , α σ , V \mathcal{N}_{i_{\max},\alpha_{\sigma},V} N i m a x , α σ , V .
Extra Properties of Segments. In addition to Properties 1 to 6, we have the following extra properties.
For the old Property 6 about the leaf segments, now additionally, every leaf segment must be a middle segment. To see this, observe that each segment σ \sigma σ whose interior σ ∘ \sigma^{\circ} σ ∘ contains x x x or y y y must be recursive, since we declare all cluster containing x x x or y y y to be affected. Hence, the interior σ ∘ \sigma^{\circ} σ ∘ of a leaf segment σ \sigma σ does not contains x x x and y y y , i.e., σ \sigma σ is a middle segment. We note that this extra property is not from the new neighborhood cover hierarchy, it is purely because we do not separate the update and query phases in the labeling scheme model.
Mapping Leaf Segments to Q Q Q . Again, we will map each (middle) leaf segment σ \sigma σ to a path P Q , σ P_{Q,\sigma} P Q , σ in Q Q Q , and then concatenating all P Q , σ P_{Q,\sigma} P Q , σ to obtain P Q P_Q P Q . Now focus on a leaf segment σ = P [ w , z ] \sigma= P[w,z] σ = P [ w , z ] . The first step is still define the endpoint nodes of w w w and z z z .
We take w w w as an example. Let σ w \sigma_w σ w be the unique segment that has w w w as its breakpoint. Let S w S_w S w be the corresponding cluster S σ w S_{\sigma_w} S σ w of σ w \sigma_w σ w . Then we define
w p t : = point ( w , S w ) , w n d : = π n d ( w p t ) . w_{\mathrm{pt}} := \operatorname{point}(w,S_w), \qquad w_{\mathrm{nd}} := \pi_{\mathrm{nd}}(w_{\mathrm{pt}}). w pt := point ( w , S w ) , w nd := π nd ( w pt ) .
Let i w i_w i w and α w \alpha_w α w be the level and length scale of S w S_w S w . Let i z i_z i z , α z \alpha_z α z , S z S_z S z , z p t z_{\mathrm{pt}} z pt , z n d z_{\mathrm{nd}} z nd be the analogous notations for the other endpoint z z z . Note that the definition of endpoint nodes is analogous to that in the oracle section, and we have Observation 5.10 analogous to Observation 4.23 .
Observation 5.10. When σ \sigma σ has a corresponding cluster S σ S_\sigma S σ , we have the following.
Both S w S_w S w and S z S_z S z are strict ancestors of S σ S_\sigma S σ , i.e. S w , S z ≻ S σ S_w,S_z \succ S_\sigma S w , S z ≻ S σ .
Either S w ⪰ S z S_w \succeq S_z S w ⪰ S z or S z ⪰ S w S_z \succeq S_w S z ⪰ S w .
S w S_w S w and S z S_z S z are affected, while S σ S_\sigma S σ is unaffected.
Both endpoint vertices w w w and z z z are inside Λ ( S σ ) \Lambda(S_\sigma) Λ ( S σ ) .
Proof. The proof is essentially the same as Observation 4.23 . Here we only emphasize some minor differences. For the first and second items, now we have the stronger ancestor-descendant guarantees among S w S_w S w , S z S_z S z , S σ S_\sigma S σ because of the new hierarchy of neighborhood covers. This is also why the fourth item still holds under the new definition of Λ ( ⋅ ) \Lambda(\cdot) Λ ( ⋅ ) .
We now define the path P Q , σ P_{Q,\sigma} P Q , σ which will connect w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd . Again, we consider the same four cases in the proof of Lemma 4.22 . The first three can be handled exactly as in the previous proof, so we present their constructions directly (with some simplifications). The key difference lies in Case 4.
<u>Case 1.</u> Suppose P [ w , z ] P[w,z] P [ w , z ] is a single edge e = ( w , z ) e=(w,z) e = ( w , z ) . Define
P Q , σ : = ( w n d , z n d ) ⏟ shortcut-based link P_{Q,\sigma}:=\underbrace{(w_{\mathrm{nd}},z_{\mathrm{nd}})}_{\text{shortcut-based link}} P Q , σ := shortcut-based link ( w nd , z nd )
This link is based on the shortcut ( w p t , z p t ) (w_{\mathrm{pt}},z_{\mathrm{pt}}) ( w pt , z pt ) corresponding to the edge e e e . Note that S w ⪰ S z S_w \succeq S_z S w ⪰ S z , ℓ G ( e ) ≤ leng G ( σ ) ≤ h α z \ell_G(e) \le\operatorname{leng}_G(\sigma) \le h_{\alpha_z} ℓ G ( e ) ≤ leng G ( σ ) ≤ h α z , so the shortcut exists according to rule 1 of shortcuts.
<u>Case 2.</u> Suppose S σ S_\sigma S σ exists and it is both nearby A i w A_{i_w} A i w -sparse and nearby A i z A_{i_z} A i z -sparse. Again define
P Q , σ : = ( w n d , z n d ) ⏟ shortcut-based link P_{Q,\sigma}:=\underbrace{(w_{\mathrm{nd}},z_{\mathrm{nd}})}_{\text{shortcut-based link}} P Q , σ := shortcut-based link ( w nd , z nd )
This link is based on the shortcut ( w p t , z p t ) (w_{\mathrm{pt}},z_{\mathrm{pt}}) ( w pt , z pt ) owned by the unaffected cluster S σ S_\sigma S σ . The shortcut exists since w n d ∈ Λ i w ( S σ ) = B i w ( S σ ) w_{\mathrm{nd}} \in\Lambda_{i_w}(S_\sigma)=B_{i_w}(S_\sigma) w nd ∈ Λ i w ( S σ ) = B i w ( S σ ) (here we exploit that S σ S_\sigma S σ is nearby A i w A_{i_w} A i w -sparse) and similarly z n d ∈ Λ i z ( S σ ) = B i z ( S σ ) z_{\mathrm{nd}} \in\Lambda_{i_z}(S_\sigma)=B_{i_z}(S_\sigma) z nd ∈ Λ i z ( S σ ) = B i z ( S σ ) . The link exists because the shortcut is non-failed (since w p t , z p t ∉ F p t w_{\mathrm{pt}},z_{\mathrm{pt}} \notin F_{\mathrm{pt}} w pt , z pt ∈ / F pt ) and unaffected (since S σ S_\sigma S σ is unaffected).
<u>Case 3.</u> Suppose S σ S_\sigma S σ exists and it is nearby A i w A_{i_w} A i w -dense. Define
P Q , σ : = ( w n d , node ( S w ) ) ⏟ Type-3 ∘ ( node ( S w ) , z n d ) ⏟ Type-3 P_{Q,\sigma}:=\underbrace{(w_{\mathrm{nd}},\operatorname{node}(S_w))}_{\text{Type-3}}\circ\underbrace{(\operatorname{node}(S_w),z_{\mathrm{nd}})}_{\text{Type-3}} P Q , σ := Type-3 ( w nd , node ( S w )) ∘ Type-3 ( node ( S w ) , z nd )
Both type-3 expansion-based links exist because the corresponding point sets π p t ( w n d ) \pi_{\mathrm{pt}}(w_{\mathrm{nd}}) π pt ( w nd ) and π p t ( z n d ) \pi_{\mathrm{pt}}(z_{\mathrm{nd}}) π pt ( z nd ) of nodes w n d w_{\mathrm{nd}} w nd and z n d z_{\mathrm{nd}} z nd are adjacent-cluster A i w A_{i_w} A i w -dense (because of S σ S_\sigma S σ ).
<u>Case 4.</u> Suppose S σ S_\sigma S σ exists and it is nearby A i w A_{i_w} A i w -sparse and nearby A i z A_{i_z} A i z -dense. This time we no longer have the links to satellite nodes, but informally speaking, we can still use a non-failed vertex b i z ∈ B i z ( S σ ) ∖ F b_{i_z} \in B_{i_z}(S_\sigma) \setminus F b i z ∈ B i z ( S σ ) ∖ F as a “satellite” which is connected to all Λ i w \Lambda_{i_w} Λ i w -vertices through type-3 links.
Formally, take an arbitrary vertex b i z ∈ B i z ( S σ ) ∖ F b_{i_z} \in B_{i_z}(S_\sigma) \setminus F b i z ∈ B i z ( S σ ) ∖ F , which exist since ∣ B i z ( S σ ) ∣ = min { f + 1 , ∣ Λ i z ( S σ ) ∣ } = min { f + 1 , ρ h e a v y } = f + 1 |B_{i_z}(S_\sigma)| = \min\{f+1, |\Lambda_{i_z}(S_\sigma)|\} = \min\{f+1,\rho_{\mathrm{heavy}}\} = f+1 ∣ B i z ( S σ ) ∣ = min { f + 1 , ∣ Λ i z ( S σ ) ∣ } = min { f + 1 , ρ heavy } = f + 1 . To avoid clutter, write b z b_z b z for b i z b_{i_z} b i z . Define point b z , p t : = point ( b z , S z ) b_{z,\mathrm{pt}} := \operatorname{point}(b_z,S_z) b z , pt := point ( b z , S z ) and node b z , n d : = π n d ( b z , p t ) b_{z,\mathrm{nd}} := \pi_{\mathrm{nd}}(b_{z,\mathrm{pt}}) b z , nd := π nd ( b z , pt ) . Then construct
P Q , σ : = ( w n d , b z , n d ) ⏟ Shortcut-based link ∘ ( b z , n d , node ( S z ) ) ⏟ Type-3 ∘ ( node ( S z ) , z n d ) ⏟ Type-3 . P_{Q,\sigma} := \underbrace{(w_{\mathrm{nd}},b_{z,\mathrm{nd}})}_{\text{Shortcut-based link}} \circ\underbrace{(b_{z,\mathrm{nd}},\operatorname{node}(S_z))}_{\text{Type-3}} \circ\underbrace{(\operatorname{node}(S_z),z_{\mathrm{nd}})}_{\text{Type-3}} . P Q , σ := Shortcut-based link ( w nd , b z , nd ) ∘ Type-3 ( b z , nd , node ( S z )) ∘ Type-3 ( node ( S z ) , z nd ) .
The shortcut-based link is based on shortcut ( w p t , b z , p t ) (w_{\mathrm{pt}},b_{z,\mathrm{pt}}) ( w pt , b z , pt ) . The shortcut exists since w ∈ B i w ( S σ ) ∖ F w \in B_{i_w}(S_\sigma) \setminus F w ∈ B i w ( S σ ) ∖ F and b z , n d ∈ B i z ( S σ ) ∖ F b_{z,\mathrm{nd}} \in B_{i_z}(S_\sigma) \setminus F b z , nd ∈ B i z ( S σ ) ∖ F . All the type-3 expansion-based links exist because the point sets π p t ( b z , n d ) , π p t ( z n d ) \pi_{\mathrm{pt}}(b_{z,\mathrm{nd}}),\pi_{\mathrm{pt}}(z_{\mathrm{nd}}) π pt ( b z , nd ) , π pt ( z nd ) are adjacent-cluster A i z A_{i_z} A i z -dense.
Constructing P Q P_Q P Q . The path P Q P_Q P Q is the concatenation of all P Q , σ P_{Q,\sigma} P Q , σ with one small modification. Note that the current P Q P_Q P Q already satisfies the desired Item 1, while Item 2 may still not hold (for example, there could be two case-1 subpaths P Q , σ P_{Q,\sigma} P Q , σ with a sharing subtree node). This can be addressed easily like before: for each (occurrence of) subtree node node ( τ ) \operatorname{node}(\tau) node ( τ ) on the current P Q P_Q P Q , take a detour to the cluster node node ( cluster ( τ ) ) \operatorname{node}(\operatorname{cluster}(\tau)) node ( cluster ( τ )) through type-2 expansion-based link. Namely, insert a subpath
( node ( τ ) , node ( cluster ( τ ) ) ) ⏟ Type-2 ∘ ( node ( cluster ( τ ) ) , node ( τ ) ) ⏟ Type-2 . \underbrace{(\operatorname{node}(\tau),\operatorname{node}(\operatorname{cluster}(\tau)))}_{\text{Type-2}} \circ\underbrace{(\operatorname{node}(\operatorname{cluster}(\tau)),\operatorname{node}(\tau))}_{\text{Type-2}} . Type-2 ( node ( τ ) , node ( cluster ( τ ))) ∘ Type-2 ( node ( cluster ( τ )) , node ( τ )) .
To see Item 3, note that total length of shortcut-based links on P Q P_Q P Q is O ( 1 ) ⋅ ∑ leaf σ h d i a m , α σ = O ( s n c ) ⋅ ∑ leaf σ h α σ = O ( s n c ) ⋅ len G ( P ) O(1) \cdot\sum_{\text{leaf }\sigma} h_{\mathrm{diam},\alpha_\sigma} = O(s_{\mathrm{nc}}) \cdot\sum_{\text{leaf }\sigma} h_{\alpha_\sigma} = O(s_{\mathrm{nc}}) \cdot\operatorname{len}_G(P) O ( 1 ) ⋅ ∑ leaf σ h diam , α σ = O ( s nc ) ⋅ ∑ leaf σ h α σ = O ( s nc ) ⋅ len G ( P ) . Item 4 is straightforward, where the O ( 1 ) O(1) O ( 1 ) factor comes from the ratio of subtree-node length to cluster-node length. For Item 5, note that for a node q n d q_{\mathrm{nd}} q nd on P Q P_Q P Q , regardless of whether it is a cluster node, a singleton node, or a subtree node, the cluster cluster ( q n d ) \operatorname{cluster}(q_{\mathrm{nd}}) cluster ( q nd ) must be the corresponding cluster S σ S_\sigma S σ for some σ \sigma σ in the decomposition. The total segment length is clearly O ( i max ) ⋅ len G ( P ) O(i_{\max}) \cdot\operatorname{len}_G(P) O ( i m a x ) ⋅ len G ( P ) since there are at most i max i_{\max} i m a x levels. The factor O ( s n c ⋅ s e d ⋅ s t r e e ) O(s_{\mathrm{nc}} \cdot s_{\mathrm{ed}} \cdot s_{\mathrm{tree}}) O ( s nc ⋅ s ed ⋅ s tree ) comes from the ratio of cluster-node length to the “based length” (i.e. h α h_\alpha h α ).
The Sparsified Query Graph and the Query Algorithm
Store and Access Labels
Since we will answer queries by running a shortest path algorithm on Q ~ \widetilde{Q} Q , instead of just defining Q ~ \widetilde{Q} Q , we should be able to construct it through a labeling scheme. Therefore, we construct Q ~ \widetilde{Q} Q along the way using interfaces of the labeling scheme, and defer some discussion on the implementations to Section 5.6. We note that most of the ideas underlying the lower-level interface implementations already appear in [36 ] . But for better understanding, we will still sketch the implementation idea right after we define an interface. Therefore, we make several assumptions to simplify our presentation, which are all without loss of generality.
First, we assume that we can store information in “labels” of clusters and in the query phase, can access “labels” of affected clusters. Formally, this means that at the end we will further store the “label” of a cluster S S S at each vertex in S S S (this is affordable since a vertex belongs to a small number of clusters). Then in the query phase, we can access the label of an affected cluster S S S since S ∩ ( F ∪ { s , t } ) S \cap(F \cup\{s,t\}) S ∩ ( F ∪ { s , t }) is non-empty. Similarly, we assume we have “labels” of points by storing them in the corresponding vertices, and thus in the query phase, we can access “labels” of failed points.
Regarding residual subtrees, recall that we can “linearize” each Steiner tree into a path in the construction phase, so each residual subtree τ \tau τ in the query phase is (roughly) an interval I = τ I=\tau I = τ on the path whose two outer endpoints are failed points. We do not have “labels” for each residual subtree, since the number of possible residual subtrees for a cluster could be quadratic over all possible queries. But remember that we can access the failed point label of its two outer endpoints. Moreover, recall the idea of canonical intervals in Definition 4.32 in § 4.7 , since each point creates a small number of canonical intervals, we can assume “labels” for canonical intervals. Also, recall that each residual interval I I I is the union of its two corresponding canonical intervals I → I^{\rightarrow} I → and I ← I^{\leftarrow} I ← created by the two failed outer endpoints of I I I . So once the information we required from τ \tau τ is mergeable (namely, the information of I I I immediately follows from the information of I → I^{\rightarrow} I → and I ← I^{\leftarrow} I ← ). Then we can focus on canonical intervals instead, or equivalently, assume τ \tau τ is a canonical interval which has a “label” to record its information.
With the above assumption, we can immediately implement the following interfaces.
ListAffectedShortcuts(), which outputs all affected shortcuts (including the basic information such as length and ids of endpoints). To implement this, note that a cluster only owns a small number of shortcuts by Observation 5.7 , so we just store all of them into the cluster label, and then access the labels of affected clusters to obtain affected shortcuts.
Nodes in the Sparsified Query Graph Q ~ \widetilde{Q} Q
The nodes in the sparsified query graph Q ~ \widetilde{Q} Q are exactly those in the query graph Q Q Q . Cluster nodes can be constructed using interface ListAffectedClusters() as we discussed above. Using the following interface ListCorePoints(τ \tau τ ), we can construct the singleton nodes and subtree nodes.
Interface ListCorePoints(τ \tau τ ). It receives a residual subtree τ \tau τ . It determines whether τ \tau τ is heavy, and if not, lists all points in core ( τ ) \operatorname{core}(\tau) core ( τ ) .
This is possible since a light τ \tau τ has ∣ core ( τ ) ∣ < ρ h e a v y |\operatorname{core}(\tau)| < \rho_{\mathrm{heavy}} ∣ core ( τ ) ∣ < ρ heavy . To implement this, note that the required output is mergeable, so we can assume τ \tau τ is a canonical interval and store the heaviness and core ( τ ) \operatorname{core}(\tau) core ( τ ) in its label. We refer to § 6.3 for more details.
Links in the Sparsified Query Graph Q ~ \widetilde{Q} Q
Next, we define the links in the sparsified query graph Q ~ \widetilde{Q} Q and explain how they can be detected through the labeling-scheme interfaces. We refer to § 2.4 for further intuition behind these definitions, particularly the notions of upward and downward denseness.
Definition 5.11 (Upward Shortcut-Neighbors). Consider a subset H ′ ⊆ H H' \subseteq H H ′ ⊆ H of shortcuts. For each cluster S S S , each higher level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , each point v p t ∈ core ( S ) v_{\mathrm{pt}} \in\operatorname{core}(S) v pt ∈ core ( S ) , let S ^ ⊇ S \widehat{S} \supseteq S S ⊇ S be the level-i ′ i' i ′ ancestor of S S S (note that possibly i ′ = i i'=i i ′ = i and S ′ = S S'=S S ′ = S ). The level-i ′ i' i ′ shortcut-neighbors of v p t v_{\mathrm{pt}} v pt w.r.t. H ′ H' H ′ are
Nbr ( v p t , i ′ , H ′ ) : = { w p t ∈ core ( S ^ ) ∣ there exists an H ′ -shortcut connecting w p t and v p t } \operatorname{Nbr}(v_{\mathrm{pt}},i',H') := \{w_{\mathrm{pt}} \in\operatorname{core}(\widehat{S}) \mid\text{there exists an } H'\text{-shortcut connecting } w_{\mathrm{pt}} \text{ and } v_{\mathrm{pt}}\} Nbr ( v pt , i ′ , H ′ ) := { w pt ∈ core ( S ) ∣ there exists an H ′ -shortcut connecting w pt and v pt }
More generally, for a set of points K ⊆ core ( S ) K \subseteq\operatorname{core}(S) K ⊆ core ( S ) , the level-i ′ i' i ′ shortcut-neighbors of K K K w.r.t. H ′ H' H ′ are
Nbr ( K , i ′ , H ′ ) : = ⋃ v p t ∈ K Nbr ( v p t , i ′ , H ′ ) . \operatorname{Nbr}(K,i',H') := \bigcup_{v_{\mathrm{pt}}\in K}\operatorname{Nbr}(v_{\mathrm{pt}},i',H'). Nbr ( K , i ′ , H ′ ) := v pt ∈ K ⋃ Nbr ( v pt , i ′ , H ′ ) .
Shortcut-Based Links
Definition 5.12 (Upward Denseness). For each affected cluster S S S , each higher level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , let S ^ ⪰ S \widehat{S} \succeq S S ⪰ S be the level-i ′ i' i ′ ancestor of S S S . A point v p t ∈ core ( S ) ∖ F p t v_{\mathrm{pt}} \in\operatorname{core}(S) \setminus F_{\mathrm{pt}} v pt ∈ core ( S ) ∖ F pt is upward A i ′ A_{i'} A i ′ -dense if
∣ Nbr ( v p t , i ′ , H ∖ H a f f ) ∣ ≥ ρ h e a v y , |\operatorname{Nbr}(v_{\mathrm{pt}},i',H\setminus H_{\mathrm{aff}})| \ge\rho_{\mathrm{heavy}}, ∣ Nbr ( v pt , i ′ , H ∖ H aff ) ∣ ≥ ρ heavy , otherwise it is upward A i ′ A_{i'} A i ′ -sparse . A residual subtree τ \tau τ of S S S (or equivalently, its core point set core ( τ ) \operatorname{core}(\tau) core ( τ ) ) is upward A i ′ A_{i'} A i ′ -dense if ∣ Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) ∣ ≥ ρ h e a v y |\operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}})| \ge\rho_{\mathrm{heavy}} ∣ Nbr ( core ( τ ) , i ′ , H ∖ H aff ) ∣ ≥ ρ heavy , and upward A i ′ A_{i'} A i ′ -sparse otherwise.
Type 1. For each affected cluster S S S , and level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , let S ^ ⪰ S \widehat{S} \succeq S S ⪰ S be the level-i ′ i' i ′ ancestor.
For each singleton node v n d v_{\mathrm{nd}} v nd with cluster ( v n d ) = S \operatorname{cluster}(v_{\mathrm{nd}})=S cluster ( v nd ) = S , if the point v p t : = π p t ( v n d ) v_{\mathrm{pt}} := \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) v pt := π pt ( v nd ) is upward A i ′ A_{i'} A i ′ -sparse, then for each u p t ∈ Nbr ( v p t , i ′ , H ∖ H a f f ) ∖ F p t u_{\mathrm{pt}} \in\operatorname{Nbr}(v_{\mathrm{pt}},i',H\setminus H_{\mathrm{aff}})\setminus F_{\mathrm{pt}} u pt ∈ Nbr ( v pt , i ′ , H ∖ H aff ) ∖ F pt , add a link between v n d v_{\mathrm{nd}} v nd and u n d : = π n d ( u p t ) u_{\mathrm{nd}} := \pi_{\mathrm{nd}}(u_{\mathrm{pt}}) u nd := π nd ( u pt ) with length β ( v p t , u p t , H ∖ H a f f ) \beta(v_{\mathrm{pt}},u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) β ( v pt , u pt , H ∖ H aff ) .
For each heavy residual subtree τ \tau τ of S S S , if τ \tau τ is upward A i ′ A_{i'} A i ′ -sparse, then for each u p t ∈ Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) ∖ F p t u_{\mathrm{pt}} \in\operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}})\setminus F_{\mathrm{pt}} u pt ∈ Nbr ( core ( τ ) , i ′ , H ∖ H aff ) ∖ F pt , add a link between node ( τ ) \operatorname{node}(\tau) node ( τ ) and π n d ( u p t ) \pi_{\mathrm{nd}}(u_{\mathrm{pt}}) π nd ( u pt ) with length β ( core ( τ ) , u p t , H ∖ H a f f ) \beta(\operatorname{core}(\tau),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) β ( core ( τ ) , u pt , H ∖ H aff ) .
Moreover, we can construct these shortcuts by invoking the following two interfaces.
Interface ListUpwardNeighbors( τ , i ′ ) (\tau,i') ( τ , i ′ ) . The input is a residual subtree τ \tau τ , and a level i ′ ≥ i : = level ( τ ) i' \ge i := \operatorname{level}(\tau) i ′ ≥ i := level ( τ ) . The interface should first determine whether τ \tau τ is upward A i ′ A_{i'} A i ′ -dense, and if not, output all points u p t u_{\mathrm{pt}} u pt in Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) \operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}}) Nbr ( core ( τ ) , i ′ , H ∖ H aff ) explicitly with the length β ( core ( τ ) , u p t , H ∖ H a f f ) \beta(\operatorname{core}(\tau),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) β ( core ( τ ) , u pt , H ∖ H aff ) .
To implement it, again the required information is mergeable, so assume τ \tau τ is a canonical interval. Let us first focus on obtaining Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) \operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}}) Nbr ( core ( τ ) , i ′ , H ∖ H aff ) when τ \tau τ is upward A i ′ A_{i'} A i ′ -sparse. By definition, ∣ Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) ∣ ≤ ρ h e a v y |\operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}})| \le\rho_{\mathrm{heavy}} ∣ Nbr ( core ( τ ) , i ′ , H ∖ H aff ) ∣ ≤ ρ heavy . Although the size is small, we cannot really store it in the construction phase since H a f f H_{\mathrm{aff}} H aff is unknown. Fortunately, we have ∣ Nbr ( core ( τ ) , i ′ , H ) ∣ ≤ ∣ Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) ∣ + λ a f f S ⋅ λ n b |\operatorname{Nbr}(\operatorname{core}(\tau),i',H)| \le|\operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}})|+\lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}} ∣ Nbr ( core ( τ ) , i ′ , H ) ∣ ≤ ∣ Nbr ( core ( τ ) , i ′ , H ∖ H aff ) ∣ + λ affS ⋅ λ nb by Observation 5.6 , so instead we can store Nbr ( core ( τ ) , i ′ , H ) \operatorname{Nbr}(\operatorname{core}(\tau),i',H) Nbr ( core ( τ ) , i ′ , H ) and for each point u p t u_{\mathrm{pt}} u pt inside, store δ ( core ( τ ) , u p t , H ) \delta(\operatorname{core}(\tau),u_{\mathrm{pt}},H) δ ( core ( τ ) , u pt , H ) . Then, we can determine whether u p t ∈ Nbr ( core ( τ ) , i ′ , H ∖ H a f f ) u_{\mathrm{pt}} \in\operatorname{Nbr}(\operatorname{core}(\tau),i',H\setminus H_{\mathrm{aff}}) u pt ∈ Nbr ( core ( τ ) , i ′ , H ∖ H aff ) by obtaining δ ( core ( τ ) , u p t , H ∖ H a f f ) \delta(\operatorname{core}(\tau),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) δ ( core ( τ ) , u pt , H ∖ H aff ) by subtracting the contributions of affected shortcuts. Note that we know all affected shortcuts from ListAffectedShortcuts(). Finally, to get the length β ( core ( τ ) , u p t , H ∖ H a f f ) \beta(\operatorname{core}(\tau),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) β ( core ( τ ) , u pt , H ∖ H aff ) , we simply group the shortcuts by length (there are only O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) distinct lengths) and apply the above argument to each length class separately.
Interface ListUpwardNeighbors( v p t , τ , i ′ ) (v_{\mathrm{pt}},\tau,i') ( v pt , τ , i ′ ) . The input is a light residual subtree τ \tau τ , a point v p t ∈ core ( τ ) v_{\mathrm{pt}} \in\operatorname{core}(\tau) v pt ∈ core ( τ ) , and a level i ′ ≥ i : = level ( τ ) i' \ge i := \operatorname{level}(\tau) i ′ ≥ i := level ( τ ) . The interface should first determine whether v p t v_{\mathrm{pt}} v pt is upward A i ′ A_{i'} A i ′ -dense, and if not, output all points u p t u_{\mathrm{pt}} u pt in Nbr ( v p t , i ′ , H ∖ H a f f ) \operatorname{Nbr}(v_{\mathrm{pt}},i',H\setminus H_{\mathrm{aff}}) Nbr ( v pt , i ′ , H ∖ H aff ) explicitly with the length β ( core ( τ ) , u p t , H ∖ H a f f ) \beta(\operatorname{core}(\tau),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}}) β ( core ( τ ) , u pt , H ∖ H aff ) .
Suppose we have a “label” for v p t v_{\mathrm{pt}} v pt . Then we can proceed exactly as above. But where should we store the “label” for v p t v_{\mathrm{pt}} v pt ? The key is that τ \tau τ is guaranteed to be light. Recall the interface ListCorePoints(τ \tau τ ), which will output the whole core ( τ ) \operatorname{core}(\tau) core ( τ ) that includes v p t v_{\mathrm{pt}} v pt . Therefore, we can store the “label” of v p t v_{\mathrm{pt}} v pt as a secondary label of the labels behind ListCorePoints(τ \tau τ ). We refer to § 6.3.2 for more details.
Expansion-Based Links. Next, we will add four types of expansion-based links to Q ~ \widetilde{Q} Q . We add to Q ~ \widetilde{Q} Q the same type-2 2 2 and type-3 3 3 links as in Q Q Q , which are based on residual subtrees heaviness and adjacent-cluster denseness. In addition, the remaining two types will be defined below, which are based on upward denseness (in Definition 5.12 ) and downward denseness (in Definition 5.13).
Before we move on, let us discuss how to construct type-2 2 2 and type-3 3 3 links. Type-2 2 2 links can be added easily once we construct the node set. For type-3 3 3 link, we need the following interface for checking adjacent-cluster denseness.
Interface CheckAdjCluster(τ \tau τ or v p t , i ′ v_{\mathrm{pt}},i' v pt , i ′ ). It receives either a residual subtree τ \tau τ or a point v p t ∈ core ( τ ) v_{\mathrm{pt}}\in\operatorname{core}(\tau) v pt ∈ core ( τ ) for a light residual subtree, and a level i ′ > i : = level ( τ ) i'>i:=\operatorname{level}(\tau) i ′ > i := level ( τ ) . It should determine whether τ \tau τ (or v p t v_{\mathrm{pt}} v pt ) is adjacent-cluster A i ′ A_{i'} A i ′ -dense.
To implement the above interface, let S S S be the cluster of τ \tau τ . This task is asking whether there is an unaffected S ~ ≺ S \widetilde{S}\prec S S ≺ S such that Λ ( S ~ ) \Lambda(\widetilde{S}) Λ ( S ) intersects core ( τ ) \operatorname{core}(\tau) core ( τ ) (or v p t v_{\mathrm{pt}} v pt ) and S ~ \widetilde{S} S is nearby A i ′ A_{i'} A i ′ -dense. All conditions of S ~ \widetilde{S} S can be easily checked in the construction phase, except that we do not know whether S ~ \widetilde{S} S is affected. However, the number of affected clusters is bounded by λ a f f S \lambda_{\mathrm{affS}} λ affS , so simply store λ a f f S + 1 \lambda_{\mathrm{affS}}+1 λ affS + 1 candidates. When the input is τ \tau τ , we can store these candidate clusters in the label of canonical intervals. When the input is v p t v_{\mathrm{pt}} v pt , since it is in a light residual subtree, similar to the interface ListUpwardNeighbors above, we can store the information of v p t v_{\mathrm{pt}} v pt as a secondary label of the labels behind ListCorePoints(τ \tau τ ). We refer to § 6.3.2 for more details.
Type 4. For each affected cluster S S S , and level i ′ ≥ i : = level ( S ) i'\ge i:=\operatorname{level}(S) i ′ ≥ i := level ( S ) , let S ^ ⪰ S \widehat{S}\succeq S S ⪰ S be the level-i ′ i' i ′ ancestor.
For each singleton node v n d v_{\mathrm{nd}} v nd with cluster ( v n d ) = S \operatorname{cluster}(v_{\mathrm{nd}})=S cluster ( v nd ) = S , if the point v p t : = π p t ( v n d ) v_{\mathrm{pt}}:=\pi_{\mathrm{pt}}(v_{\mathrm{nd}}) v pt := π pt ( v nd ) is upward A i ′ A_{i'} A i ′ -dense, add a link between v n d v_{\mathrm{nd}} v nd and node ( S ^ ) \operatorname{node}(\widehat{S}) node ( S ) with length 0 0 0 .
For each heavy residual subtree τ \tau τ of S S S , if τ \tau τ is upward A i ′ A_{i'} A i ′ -dense, then add a link between node ( τ ) \operatorname{node}(\tau) node ( τ ) and node ( S ^ ) \operatorname{node}(\widehat{S}) node ( S ) with length 0 0 0 .
Moreover, we can construct type-4 4 4 by invoking the above interfaces ListUpwardNeighbors(τ , i ′ \tau,i' τ , i ′ ) and ListUpwardNeighbors(v p t , τ , i ′ v_{\mathrm{pt}},\tau,i' v pt , τ , i ′ ).
Definition 5.13 (Downward Denseness). For each affected cluster S S S , let i : = level ( S ) i:=\operatorname{level}(S) i := level ( S ) . A point u p t ∈ core ( S ) ∖ F p t u_{\mathrm{pt}}\in\operatorname{core}(S)\setminus F_{\mathrm{pt}} u pt ∈ core ( S ) ∖ F pt is downward A i A_i A i -dense if there exists an unaffected and non-failed shortcut ( u p t , v p t ) (u_{\mathrm{pt},v_{\mathrm{pt}}}) ( u pt , v pt ) where v p t v_{\mathrm{pt}} v pt satisfies one of the following criteria.
v p t v_{\mathrm{pt}} v pt is in core ( S ~ ) \operatorname{core}(\widetilde{S}) core ( S ) for some cluster S ~ ≺ S \widetilde{S}\prec S S ≺ S s.t. S ~ \widetilde{S} S is unaffected and nearby A i A_i A i -dense.
v p t v_{\mathrm{pt}} v pt is in core ( τ ~ ) \operatorname{core}(\widetilde{\tau}) core ( τ ) for some residual subtree τ ~ \widetilde{\tau} τ of some cluster S ~ ≺ S \widetilde{S}\prec S S ≺ S (note that S ~ \widetilde{S} S must be affected) s.t. τ ~ \widetilde{\tau} τ is upward A i A_i A i -dense.
Type 5. For each affected cluster S S S , let i : = level ( S ) i := \operatorname{level}(S) i := level ( S ) .
For each singleton node v n d v_{\mathrm{nd}} v nd with cluster ( v n d ) = S \operatorname{cluster}(v_{\mathrm{nd}}) = S cluster ( v nd ) = S , if the point π p t ( v n d ) \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) π pt ( v nd ) is downward A i A_i A i -dense, add a link between v n d v_{\mathrm{nd}} v nd and node ( S ) \operatorname{node}(S) node ( S ) with length 0.
This type of shortcuts can be constructed by invoking the following interface. However, its implementation is relatively involved which cannot be explained in a few lines. We will discuss it more in § 6.1 .
Interface DownwardDenseness( u p t , τ ) (u_{\mathrm{pt}}, \tau) ( u pt , τ ) . It receives a point u p t u_{\mathrm{pt}} u pt , a residual subtree τ \tau τ s.t. τ \tau τ is a light residual subtree and u p t ∈ core ( τ ) u_{\mathrm{pt}} \in\operatorname{core}(\tau) u pt ∈ core ( τ ) . It should determine whether u p t u_{\mathrm{pt}} u pt is downward A i A_i A i -dense for level i : = level ( τ ) i := \operatorname{level}(\tau) i := level ( τ ) .
Answering the Query with the Sparsified Query Graph
After constructing the sparsified query graph Q ~ \widetilde{Q} Q , we simply return dist Q ~ ( V n d ( x ) , V n d ( y ) ) \operatorname{dist}_{\widetilde{Q}}(V_{\mathrm{nd}}(x), V_{\mathrm{nd}}(y)) dist Q ( V nd ( x ) , V nd ( y )) by running a shortest path algorithm. This gives an approximation O ( s n c ⋅ s e d ⋅ s t r e e ⋅ i max ) = O ( k 5 ) O(s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot s_{\mathrm{tree}}\cdot i_{\max}) = O(k^5) O ( s nc ⋅ s ed ⋅ s tree ⋅ i m a x ) = O ( k 5 ) for exponential-time construction. When polynomial-time construction is required, s e d s_{\mathrm{ed}} s ed will increase from k k k to k 2 k^2 k 2 , which gives an approximation of O ( k 6 ) O(k^6) O ( k 6 ) . Lemma 5.14 and Lemma 5.16 show the upper-bound direction and the lower-bound direction respectively.
The Upper-Bound Direction.
Lemma 5.14. There exist two nodes x n d ∈ V n d ( x ) x_{\mathrm{nd}} \in V_{\mathrm{nd}}(x) x nd ∈ V nd ( x ) and y n d ∈ V n d ( y ) y_{\mathrm{nd}} \in V_{\mathrm{nd}}(y) y nd ∈ V nd ( y ) s.t.
dist Q ~ ( x n d , y n d ) ≤ O ( s n c ⋅ s e d ⋅ s t r e e ⋅ i max ) ⋅ dist G ∖ F ( x , y ) . \operatorname{dist}_{\widetilde{Q}}(x_{\mathrm{nd}},y_{\mathrm{nd}}) \le O(s_{\mathrm{nc}}\cdot s_{\mathrm{ed}}\cdot s_{\mathrm{tree}}\cdot i_{\max})\cdot\operatorname{dist}_{G\setminus F}(x,y). dist Q ( x nd , y nd ) ≤ O ( s nc ⋅ s ed ⋅ s tree ⋅ i m a x ) ⋅ dist G ∖ F ( x , y ) .
The above Lemma 5.14 is an immediate consequence of Lemma 5.9 and the following Lemma 5.15. Roughly speaking, we take the path P Q P_Q P Q in the query graph Q Q Q from Lemma 5.9 , and then replace each shortcut-based link on it with a path in Q ~ \widetilde{Q} Q . Finally, following Algorithm 2, we shortcut this path using cluster nodes as “portals”. The desired bound immediately follows.
Lemma 5.15. For each shortcut-based link e l k : = ( u n d , v n d ) ∈ Q e_{\mathrm{lk}} := (u_{\mathrm{nd}}, v_{\mathrm{nd}}) \in Q e lk := ( u nd , v nd ) ∈ Q , there exists a path P ~ \widetilde{P} P in Q ~ \widetilde{Q} Q connecting u n d u_{\mathrm{nd}} u nd and v n d v_{\mathrm{nd}} v nd in one of the following forms.
(a) P ~ = ( u n d , v n d ) \widetilde{P} = (u_{\mathrm{nd}}, v_{\mathrm{nd}}) P = ( u nd , v nd ) consists of a single link with link length at most ℓ ( e l k ) \ell(e_{\mathrm{lk}}) ℓ ( e lk ) .
(b) P ~ = ( u n d , node ( S ) ) ∘ ( node ( S ) , v n d ) \widetilde{P} = (u_{\mathrm{nd}}, \operatorname{node}(S)) \circ(\operatorname{node}(S), v_{\mathrm{nd}}) P = ( u nd , node ( S )) ∘ ( node ( S ) , v nd ) , where S S S is the higher-level cluster among cluster ( u n d ) \operatorname{cluster}(u_{\mathrm{nd}}) cluster ( u nd ) and cluster ( v n d ) \operatorname{cluster}(v_{\mathrm{nd}}) cluster ( v nd ) . Moreover, leng ( P ~ ) ≤ O ( 1 ) ⋅ ℓ ( node ( S ) ) \operatorname{leng}(\widetilde{P}) \le O(1)\cdot\ell(\operatorname{node}(S)) leng ( P ) ≤ O ( 1 ) ⋅ ℓ ( node ( S )) .
Proof. Let e s c = ( u p t , v p t ) e_{\mathrm{sc}} = (u_{\mathrm{pt}}, v_{\mathrm{pt}}) e sc = ( u pt , v pt ) be the shortcut that e l k e_{\mathrm{lk}} e lk is based on, which means u p t ∈ π p t ( u n d ) u_{\mathrm{pt}} \in\pi_{\mathrm{pt}}(u_{\mathrm{nd}}) u pt ∈ π pt ( u nd ) , v p t ∈ π p t ( v n d ) v_{\mathrm{pt}} \in\pi_{\mathrm{pt}}(v_{\mathrm{nd}}) v pt ∈ π pt ( v nd ) and ℓ ( e s c ) = ℓ ( e l k ) \ell(e_{\mathrm{sc}}) = \ell(e_{\mathrm{lk}}) ℓ ( e sc ) = ℓ ( e lk ) . Note that by the rule of adding shortcut-based link to Q Q Q , e s c e_{\mathrm{sc}} e sc must be unaffected and non-failed (i.e., u p t , v p t ∉ F p t u_{\mathrm{pt}}, v_{\mathrm{pt}} \notin F_{\mathrm{pt}} u pt , v pt ∈ / F pt ). Also, by the definition of π p t ( ⋅ ) \pi_{\mathrm{pt}}(\cdot) π pt ( ⋅ ) , when u n d u_{\mathrm{nd}} u nd is a singleton node, π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) is exactly the point u p t u_{\mathrm{pt}} u pt , and when u n d = node ( τ ) u_{\mathrm{nd}} = \operatorname{node}(\tau) u nd = node ( τ ) is a subtree node, π p t ( u n d ) = core ( τ ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) = \operatorname{core}(\tau) π pt ( u nd ) = core ( τ ) .
Let S = cluster ( u n d ) S = \operatorname{cluster}(u_{\mathrm{nd}}) S = cluster ( u nd ) , S ˘ = cluster ( v n d ) \breve{S} = \operatorname{cluster}(v_{\mathrm{nd}}) S ˘ = cluster ( v nd ) , i = level ( S ) i = \operatorname{level}(S) i = level ( S ) and i ˘ = level ( S ˘ ) \breve{i} = \operatorname{level}(\breve{S}) i ˘ = level ( S ˘ ) . By the definition of shortcuts, one of S S S and S ˘ \breve{S} S ˘ must be an ancestor of the other. Without loss of generality, assume S ⪰ S ˘ S \succeq\breve{S} S ⪰ S ˘ .
Case 1. Suppose π p t ( v n d ) \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) π pt ( v nd ) is upward A i A_i A i -sparse. The existence of e s c e_{\mathrm{sc}} e sc implies that u p t u_{\mathrm{pt}} u pt is inside Nbr ( π p t ( v n d ) , i , H ∖ H a f f ) ∖ F p t \operatorname{Nbr}(\pi_{\mathrm{pt}}(v_{\mathrm{nd}}),i,H\setminus H_{\mathrm{aff}})\setminus F_{\mathrm{pt}} Nbr ( π pt ( v nd ) , i , H ∖ H aff ) ∖ F pt , and thus there is a type-1 link in Q ~ \widetilde{Q} Q between v n d v_{\mathrm{nd}} v nd and u n d u_{\mathrm{nd}} u nd of length
β ( π p t ( v n d ) , u p t , H ∖ H a f f ) ≤ β ( v p t , u p t , H ∖ H a f f ) ≤ ℓ ( e s c ) = ℓ ( e l k ) . \beta(\pi_{\mathrm{pt}}(v_{\mathrm{nd}}),u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}})\leq\beta(v_{\mathrm{pt}},u_{\mathrm{pt}},H\setminus H_{\mathrm{aff}})\leq\ell(e_{\mathrm{sc}})=\ell(e_{\mathrm{lk}}). β ( π pt ( v nd ) , u pt , H ∖ H aff ) ≤ β ( v pt , u pt , H ∖ H aff ) ≤ ℓ ( e sc ) = ℓ ( e lk ) .
We simply take this link as our desired P ~ \widetilde{P} P .
Case 2. From now on, suppose π p t ( v n d ) \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) π pt ( v nd ) is upward A i A_i A i -dense. Then there is a type-4 link in Q ~ \widetilde{Q} Q connecting v n d v_{\mathrm{nd}} v nd and node ( S ) \operatorname{node}(S) node ( S ) with link length 0. In what follows, we will argue the “u u u -side”, and there are three subcases.
Case 2(a). Suppose S = S ~ S=\widetilde{S} S = S . Because now the “u u u -side” and “v v v -side” are at the same level, if π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) is upward A i A_i A i -sparse, we also get the desired P ~ \widetilde{P} P as in Case 1. Otherwise, both π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) and π p t ( v n d ) \pi_{\mathrm{pt}}(v_{\mathrm{nd}}) π pt ( v nd ) are upward A i A_i A i -dense, and there is a type-4 link in Q ~ \widetilde{Q} Q connecting u n d u_{\mathrm{nd}} u nd and node ( S ) \operatorname{node}(S) node ( S ) with link length 0. Thus we obtain a desired
P ~ = ( u n d , node ( S ) ) ⏟ Type-4 ∘ ( node ( S ) , v n d ) ⏟ Type-4 . \widetilde{P}=\underbrace{(u_{\mathrm{nd}},\operatorname{node}(S))}_{\text{Type-4}}\circ\underbrace{(\operatorname{node}(S),v_{\mathrm{nd}})}_{\text{Type-4}}. P = Type-4 ( u nd , node ( S )) ∘ Type-4 ( node ( S ) , v nd ) .
Case 2(b). Suppose S ≻ S ~ S\succ\widetilde{S} S ≻ S and u n d = node ( τ ) u_{\mathrm{nd}}=\operatorname{node}(\tau) u nd = node ( τ ) is a subtree node. By definition, τ \tau τ is a heavy residual subtree of S S S and thus there exists a type-2 link in Q ~ \widetilde{Q} Q connecting u n d u_{\mathrm{nd}} u nd and node ( S ) \operatorname{node}(S) node ( S ) with link length 0, and
P ~ = ( u n d , node ( S ) ) ⏟ Type-2 ∘ ( node ( S ) , v n d ) ⏟ Type-4 . \widetilde{P}=\underbrace{(u_{\mathrm{nd}},\operatorname{node}(S))}_{\text{Type-2}}\circ\underbrace{(\operatorname{node}(S),v_{\mathrm{nd}})}_{\text{Type-4}}. P = Type-2 ( u nd , node ( S )) ∘ Type-4 ( node ( S ) , v nd ) .
Case 2(c). Suppose S ≻ S ~ S\succ\widetilde{S} S ≻ S and u n d u_{\mathrm{nd}} u nd is a singleton node. We will argue that the point u p t = π p t ( u n d ) u_{\mathrm{pt}}=\pi_{\mathrm{pt}}(u_{\mathrm{nd}}) u pt = π pt ( u nd ) is downward A i A_i A i -dense, and thus there exists a type-5 link in Q ~ \widetilde{Q} Q connecting u n d u_{\mathrm{nd}} u nd and node ( S ) \operatorname{node}(S) node ( S ) with link length 0, and we obtain
P ~ = ( u n d , node ( S ) ) ⏟ Type-5 ∘ ( node ( S ) , v n d ) ⏟ Type-4 . \widetilde{P}=\underbrace{(u_{\mathrm{nd}},\operatorname{node}(S))}_{\text{Type-5}}\circ\underbrace{(\operatorname{node}(S),v_{\mathrm{nd}})}_{\text{Type-4}}. P = Type-5 ( u nd , node ( S )) ∘ Type-4 ( node ( S ) , v nd ) .
To see that u p t u_{\mathrm{pt}} u pt is downward A i A_i A i -dense, note that we have an unaffected and non-failed shortcut ( u p t , v p t ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) ( u pt , v pt ) . Furthermore, let τ ~ \widetilde{\tau} τ be the residual subtree of S ~ \widetilde{S} S s.t. v p t ∈ core ( τ ~ ) v_{\mathrm{pt}}\in\operatorname{core}(\widetilde{\tau}) v pt ∈ core ( τ ) . Since v p t v_{\mathrm{pt}} v pt is upward A i A_i A i -dense, τ ~ \widetilde{\tau} τ is also upward A i A_i A i -dense, and thus the second criteria in Definition 5.13 of downward denseness is fulfilled.
The Lower-Bound Direction.
Lemma 5.16. Let x n d x_{\mathrm{nd}} x nd and y n d y_{\mathrm{nd}} y nd be two arbitrary concrete nodes in Q ~ \widetilde{Q} Q . For each pair of vertices x ∈ V ( x n d ) x\in V(x_{\mathrm{nd}}) x ∈ V ( x nd ) and y ∈ V ( y n d ) y\in V(y_{\mathrm{nd}}) y ∈ V ( y nd ) , we have
dist G ∖ F ( x , y ) ≤ dist Q ~ ( x n d , y n d ) . \operatorname{dist}_{G\setminus F}(x,y)\leq\operatorname{dist}_{\widetilde{Q}}(x_{\mathrm{nd}},y_{\mathrm{nd}}). dist G ∖ F ( x , y ) ≤ dist Q ( x nd , y nd ) .
Proof. Let P ~ \widetilde{P} P be a shortest path in Q ~ \widetilde{Q} Q between x n d x_{\mathrm{nd}} x nd and y n d y_{\mathrm{nd}} y nd . We decompose P ~ \widetilde{P} P into maximal internally virtual subpaths. Consider such a subpath P ~ s u b = P ~ [ u n d , v n d ] \widetilde{P}_{\mathrm{sub}}=\widetilde{P}[u_{\mathrm{nd}},v_{\mathrm{nd}}] P sub = P [ u nd , v nd ] . It suffices to show
dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ leng ( P ~ s u b ) − ℓ ( u n d ) − ℓ ( v n d ) , \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}}))\le\operatorname{leng}(\widetilde{P}_{\mathrm{sub}})-\ell(u_{\mathrm{nd}})-\ell(v_{\mathrm{nd}}), dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ leng ( P sub ) − ℓ ( u nd ) − ℓ ( v nd ) ,
since for each concrete node q n d q_{\mathrm{nd}} q nd , we have diam G ∖ F ( V ( q n d ) ) ≤ ℓ ( q n d ) \operatorname{diam}_{G\setminus F}(V(q_{\mathrm{nd}}))\le\ell(q_{\mathrm{nd}}) diam G ∖ F ( V ( q nd )) ≤ ℓ ( q nd ) . Furthermore, observe that P ~ s u b \widetilde{P}_{\mathrm{sub}} P sub is either (a) a single shortcut-based link ( u n d , v n d ) (u_{\mathrm{nd}},v_{\mathrm{nd}}) ( u nd , v nd ) or (b) two expansion-based links ( u n d , S n d ) ∘ ( S n d , v n d ) (u_{\mathrm{nd}},S_{\mathrm{nd}})\circ(S_{\mathrm{nd}},v_{\mathrm{nd}}) ( u nd , S nd ) ∘ ( S nd , v nd ) sharing a common cluster node S n d S_{\mathrm{nd}} S nd .
Case 1. Suppose P ~ s u b = ( u n d , v n d ) \widetilde{P}_{\mathrm{sub}}=(u_{\mathrm{nd}},v_{\mathrm{nd}}) P sub = ( u nd , v nd ) is in form (a). It is equivalent to show that the length of this shortcut is at least dist G ∖ F ( V ( u n d ) , V ( v n d ) ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) dist G ∖ F ( V ( u nd ) , V ( v nd )) . Observe that every shortcut-based link in Q ~ \widetilde{Q} Q also appears in Q Q Q , and every shortcut-based link in Q Q Q is based on an unaffected and non-failed shortcut in H H H . Analogous to Case 1 in Lemma 4.16 , any unaffected and non-failed H H H -shortcut ( u p t , v p t ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) ( u pt , v pt ) will not underestimate dist G ∖ F ( u , v ) \operatorname{dist}_{G\setminus F}(u,v) dist G ∖ F ( u , v ) , where u , v u,v u , v are the vertices corresponding to points u p t , v p t u_{\mathrm{pt}},v_{\mathrm{pt}} u pt , v pt , regardless it is type-1 (from an original edge) or type-2 (from a cluster, which is unaffected since the shortcut is unaffected).
Case 2. Suppose P ~ s u b = ( u n d , S n d ) ∘ ( S n d , u n d ) \widetilde{P}_{\mathrm{sub}}=(u_{\mathrm{nd}},S_{\mathrm{nd}})\circ(S_{\mathrm{nd}},u_{\mathrm{nd}}) P sub = ( u nd , S nd ) ∘ ( S nd , u nd ) is in form (b). Let S = cluster ( S n d ) S=\operatorname{cluster}(S_{\mathrm{nd}}) S = cluster ( S nd ) , i = level ( S n d ) i=\operatorname{level}(S_{\mathrm{nd}}) i = level ( S nd ) and α = scale ( S n d ) \alpha=\operatorname{scale}(S_{\mathrm{nd}}) α = scale ( S nd ) . It suffices to show that ℓ ( S n d ) ≥ dist G ∖ F ( V ( u n d ) , V ( v n d ) ) \ell(S_{\mathrm{nd}})\ge\operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) ℓ ( S nd ) ≥ dist G ∖ F ( V ( u nd ) , V ( v nd )) . These two links are expansion-based links, which have types 2, 3, 4, or 5.
For better understanding and to avoid tedious case analysis, let us repeat our strategy of exploiting the LC-expanding property Lemma 4.15 w.r.t. A i A_i A i . Take the expansion-based link ( u n d , S n d ) (u_{\mathrm{nd}},S_{\mathrm{nd}}) ( u nd , S nd ) as an example. Regardless it has which type, at the end we want to find a vertex set V u V_u V u such that
(a) V u ⊆ A i V_u\subseteq A_i V u ⊆ A i and ∣ V u ∣ ≥ ρ h e a v y |V_u|\ge\rho_{\mathrm{heavy}} ∣ V u ∣ ≥ ρ heavy .
(b) each vertex u ′ ∈ V u u'\in V_u u ′ ∈ V u is close to S S S in G i , α G_{i,\alpha} G i , α , or formally, dist G i , α ( u ′ , S ) ≤ θ \operatorname{dist}_{G_{i,\alpha}}(u',S)\le\theta dist G i , α ( u ′ , S ) ≤ θ for some θ \theta θ such that 2 θ + h d i a m , α ≤ h e d , α 2\theta+h_{\mathrm{diam},\alpha}\le h_{\mathrm{ed},\alpha} 2 θ + h diam , α ≤ h ed , α .
(c) each vertex u ′ ∈ V u ∖ F u'\in V_u\setminus F u ′ ∈ V u ∖ F is close to V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) in G ∖ F G\setminus F G ∖ F , or formally, dist G ∖ F ( u ′ , V ( u n d ) ) ≤ η \operatorname{dist}_{G\setminus F}(u',V(u_{\mathrm{nd}}))\le\eta dist G ∖ F ( u ′ , V ( u nd )) ≤ η for some η \eta η such that 2 η + h e d , α ⋅ s e d ≤ ℓ ( S n d ) 2\eta+h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}\le\ell(S_{\mathrm{nd}}) 2 η + h ed , α ⋅ s ed ≤ ℓ ( S nd ) .
We first argue why finding such a set V u V_u V u (and V v V_v V v for the “v v v -side”) will upper bound dist G ∖ F ( V ( u n d ) , V ( v n d ) ) \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}})) dist G ∖ F ( V ( u nd ) , V ( v nd )) . First, we have
diam G i , α ( V u , V v ) ≤ 2 θ + diam G i , α ( S ) ≤ 2 θ + h d i a m , α ≤ h e d , α . \operatorname{diam}_{G_{i,\alpha}}(V_u,V_v)\le2\theta+\operatorname{diam}_{G_{i,\alpha}}(S)\le2\theta+h_{\mathrm{diam},\alpha}\le h_{\mathrm{ed},\alpha}. diam G i , α ( V u , V v ) ≤ 2 θ + diam G i , α ( S ) ≤ 2 θ + h diam , α ≤ h ed , α .
Therefore, we can apply Lemma 4.15 on graph G i , α G_{i,\alpha} G i , α , node-weighting A i A_i A i , and the two sets V u , V v V_u,V_v V u , V v , which gives dist G ∖ F ( V u ∖ F , V v ∖ F ) ≤ h e d , α ⋅ s e d \operatorname{dist}_{G\setminus F}(V_u\setminus F,V_v\setminus F)\le h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}} dist G ∖ F ( V u ∖ F , V v ∖ F ) ≤ h ed , α ⋅ s ed . Finally, using (c), we have
dist G ∖ F ( V ( u n d ) , V ( v n d ) ) ≤ 2 η + h e d , α ⋅ s e d ≤ ℓ ( S n d ) . \operatorname{dist}_{G\setminus F}(V(u_{\mathrm{nd}}),V(v_{\mathrm{nd}}))\le2\eta+h_{\mathrm{ed},\alpha}\cdot s_{\mathrm{ed}}\le\ell(S_{\mathrm{nd}}). dist G ∖ F ( V ( u nd ) , V ( v nd )) ≤ 2 η + h ed , α ⋅ s ed ≤ ℓ ( S nd ) .
and the proof completes.
Therefore, it remains to determine V u , θ , η V_u,\theta,\eta V u , θ , η for ( u n d , S n d ) (u_{\mathrm{nd}},S_{\mathrm{nd}}) ( u nd , S nd ) in different types. In fact, for all types, we will pick a V u ⊆ S V_u\subseteq S V u ⊆ S , so we can safely set θ = 0 \theta=0 θ = 0 .
( u n d , S n d ) (u_{\mathrm{nd}},S_{\mathrm{nd}}) ( u nd , S nd ) is type-2. Let V u : = V ( u n d ) V_u:=V(u_{\mathrm{nd}}) V u := V ( u nd ) and η = 0 \eta=0 η = 0 . In this case, u n d u_{\mathrm{nd}} u nd must be a subtree node τ n d \tau_{\mathrm{nd}} τ nd where τ \tau τ is a heavy residual subtree of S S S . Thus, (a), (b) and (c) clearly follows.
( u n d , S n d ) (u_{\mathrm{nd}},S_{\mathrm{nd}}) ( u nd , S nd ) is type-3. Let V u : = A i ( S ~ ) V_u:=A_i(\widetilde{S}) V u := A i ( S ) , where S ~ ≺ S u : = cluster ( u n d ) ≺ S \widetilde{S}\prec S_u:=\operatorname{cluster}(u_{\mathrm{nd}})\prec S S ≺ S u := cluster ( u nd ) ≺ S is the unaffected cluster witnessing the adjacent-cluster A i A_i A i -denseness of the point set π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) . Let η = h d i a m , α + 2 h α \eta=h_{\mathrm{diam},\alpha}+2h_{\alpha} η = h diam , α + 2 h α , where α ~ = scale ( S ~ ) \widetilde{\alpha} = \operatorname{scale}(\widetilde{S}) α = scale ( S ) . We have (b) since Λ i ( S ~ ) ⊆ S \Lambda_i(\widetilde{S}) \subseteq S Λ i ( S ) ⊆ S . Such a η \eta η fulfills (c) since this is the bound of diam G ∖ F ( Λ ( S ~ ) ) \operatorname{diam}_{G \setminus F}(\Lambda(\widetilde{S})) diam G ∖ F ( Λ ( S )) (note that V ( u n d ) V(u_{\mathrm{nd}}) V ( u nd ) must intersect Λ ( S ~ ) \Lambda(\widetilde{S}) Λ ( S ) ).
( u n d , S n d ) (u_{\mathrm{nd}}, S_{\mathrm{nd}}) ( u nd , S nd ) is type-4. We first define V u V_u V u . Let U p t U_{\mathrm{pt}} U pt be the point set π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) . Let U p t ′ U'_{\mathrm{pt}} U pt ′ be the point set Nbr ( U p t , i , H ∖ H a f f ) \operatorname{Nbr}(U_{\mathrm{pt}}, i, H \setminus H_{\mathrm{aff}}) Nbr ( U pt , i , H ∖ H aff ) , which satisfies U p t ′ ⊆ core ( S ) U'_{\mathrm{pt}} \subseteq\operatorname{core}(S) U pt ′ ⊆ core ( S ) and ∣ U p t ′ ∣ ≥ ρ h e a v y \lvert U'_{\mathrm{pt}}\rvert\geq\rho_{\mathrm{heavy}} ∣ U pt ′ ∣ ≥ ρ heavy since U p t U_{\mathrm{pt}} U pt is upward A i A_i A i -dense. Finally, define V u V_u V u to be π v t x ( U p t ′ ) \pi_{\mathrm{vtx}}(U'_{\mathrm{pt}}) π vtx ( U pt ′ ) , which satisfies (a). Again, we have V u ⊆ S V_u \subseteq S V u ⊆ S which fulfills (b). Lastly, set θ = h d i a m , α + 2 h α \theta= h_{\mathrm{diam},\alpha} + 2h_\alpha θ = h diam , α + 2 h α , since each point in U p t ′ U'_{\mathrm{pt}} U pt ′ is adjacent to a point in U p t U_{\mathrm{pt}} U pt through an unaffected shortcut of length at most h d i a m , α + 2 h α h_{\mathrm{diam},\alpha} + 2h_\alpha h diam , α + 2 h α , which never underestimates the G ∖ F G \setminus F G ∖ F -distance.
( u n d , S n d ) (u_{\mathrm{nd}}, S_{\mathrm{nd}}) ( u nd , S nd ) is type-5. Note that u n d u_{\mathrm{nd}} u nd is a singleton node in this case, so let u p t u_{\mathrm{pt}} u pt be the point π p t ( u n d ) \pi_{\mathrm{pt}}(u_{\mathrm{nd}}) π pt ( u nd ) , and let u u u be the vertex π v t x ( u p t ) \pi_{\mathrm{vtx}}(u_{\mathrm{pt}}) π vtx ( u pt ) . To define V u V_u V u , there are two cases depending on the object witnessing the downward A i A_i A i -denseness of u p t u_{\mathrm{pt}} u pt .
Suppose the witness object is a cluster S ~ ≺ S u : = cluster ( u p t ) ⪯ S \widetilde{S} \prec S_u := \operatorname{cluster}(u_{\mathrm{pt}}) \preceq S S ≺ S u := cluster ( u pt ) ⪯ S , which is unaffected and nearby A i A_i A i -dense. Then let V u : = Λ i ( S ~ ) V_u := \Lambda_i(\widetilde{S}) V u := Λ i ( S ) . We can set η = ( h d i a m , α + 2 h α ) + ( h d i a m , α ~ + 2 h α ~ ) \eta= (h_{\mathrm{diam},\alpha} + 2h_\alpha) + (h_{\mathrm{diam},\widetilde{\alpha}} + 2h_{\widetilde{\alpha}}) η = ( h diam , α + 2 h α ) + ( h diam , α + 2 h α ) , where α ~ = scale ( S ~ ) \widetilde{\alpha} = \operatorname{scale}(\widetilde{S}) α = scale ( S ) , since each vertex in V u ∖ F V_u \setminus F V u ∖ F is connected to u u u through the unaffected cluster S ~ \widetilde{S} S plus an unaffected, non-failed shortcut connecting S ~ \widetilde{S} S and u u u .
Suppose the witness object is a upward A i A_i A i -dense residual subtree τ ~ \widetilde{\tau} τ of some affected cluster S ~ ≺ S u \widetilde{S} \prec S_u S ≺ S u . Then let V u : = Nbr ( core ( τ ~ ) , i , H ∖ H a f f ) V_u := \operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H \setminus H_{\mathrm{aff}}) V u := Nbr ( core ( τ ) , i , H ∖ H aff ) . We can set η = ( h d i a m , α + 2 h α ) + h t r e e , α ~ + ( h d i a m , α + 2 h α ) \eta= (h_{\mathrm{diam},\alpha} + 2h_\alpha) + h_{\mathrm{tree},\widetilde{\alpha}} + (h_{\mathrm{diam},\alpha} + 2h_\alpha) η = ( h diam , α + 2 h α ) + h tree , α + ( h diam , α + 2 h α ) , because each vertex u ′ u' u ′ in V u ∖ F V_u \setminus F V u ∖ F can go to u u u (avoiding failures) by first using a shortcut from u ′ u' u ′ to V t m n ( τ ~ ) V_{\mathrm{tmn}}(\widetilde{\tau}) V tmn ( τ ) , walking inside τ ~ \widetilde{\tau} τ , and lastly using a shortcut from V t m n ( τ ~ ) V_{\mathrm{tmn}}(\widetilde{\tau}) V tmn ( τ ) to u u u . Note that the term h t r e e , α ~ h_{\mathrm{tree},\widetilde{\alpha}} h tree , α comes from walking inside τ ~ \widetilde{\tau} τ as a residual subtree has diameter h t r e e , α ~ h_{\mathrm{tree},\widetilde{\alpha}} h tree , α .
Solving Downward Denseness
In this section, we will discuss our approach to implementing the interface DownwardDenseness ( u p t , τ ) \operatorname{DownwardDenseness}(u_{\mathrm{pt}}, \tau) DownwardDenseness ( u pt , τ ) in the query phase. Recall that the input satisfies that τ \tau τ is a light residual subtree of S S S , and u p t ∈ core ( τ ) u_{\mathrm{pt}} \in\operatorname{core}(\tau) u pt ∈ core ( τ ) . Let i : = level ( S ) i := \operatorname{level}(S) i := level ( S ) . Our goal is to detect an arbitrary unaffected and non-failed shortcut that satisfies Criterion 1 or Criterion 2 in Definition 5.13. We call such a shortcut a witness shortcut .
To this end, for the cluster S S S , define
region ( S ) : = ⋃ cluster S ′ ≺ S core ( S ′ ) \operatorname{region}(S) := \bigcup_{\substack{\text{cluster } S' \prec S}} \operatorname{core}(S') region ( S ) := cluster S ′ ≺ S ⋃ core ( S ′ )
to be the union of the cores of all strict descendants of S S S . Let H S H_S H S be the set consisting of all the shortcuts with their higher endpoints in core ( S ) \operatorname{core}(S) core ( S ) and lower endpoints in region ( S ) \operatorname{region}(S) region ( S ) . By definition, e s c ∗ e^*_{\mathrm{sc}} e sc ∗ must belong to H S H_S H S .
Next, we will partition H S H_S H S into three parts: the downward shortcuts H S d o w n H_S^{\mathrm{down}} H S down , upward shortcuts H S u p H_S^{\mathrm{up}} H S up and sparse shortcuts H S s p a r H_S^{\mathrm{spar}} H S spar . Then try to detect the witness shortcut from each of them separately.
Partition of H S H_S H S . Consider a shortcut e s c = ( u p t , v p t ) ∈ H S e_{\mathrm{sc}} = (u_{\mathrm{pt}}, v_{\mathrm{pt}}) \in H_S e sc = ( u pt , v pt ) ∈ H S where v p t v_{\mathrm{pt}} v pt is its lower endpoint. Thus v p t ∈ core ( S ~ ) v_{\mathrm{pt}} \in\operatorname{core}(\widetilde{S}) v pt ∈ core ( S ) for some cluster S ~ ≺ S \widetilde{S} \prec S S ≺ S .
∣ Nbr ( v p t , i , H ) ∣ ≥ λ a f f S ⋅ λ n b + ρ h e a v y . |\operatorname{Nbr}(v_{\mathrm{pt}},i,H)| \ge\lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+\rho_{\mathrm{heavy}}. ∣ Nbr ( v pt , i , H ) ∣ ≥ λ affS ⋅ λ nb + ρ heavy .
We classify e s c e_{\mathrm{sc}} e sc as a downward shortcut and put it into H S d o w n H_S^{\mathrm{down}} H S down .
(Upward Shortcuts) Suppose S ~ \widetilde{S} S is nearby A i A_i A i -dense and ∣ Nbr ( v p t , i , H ) ∣ < λ a f f S ⋅ λ n b + ρ h e a v y |\operatorname{Nbr}(v_{\mathrm{pt}},i,H)| < \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+\rho_{\mathrm{heavy}} ∣ Nbr ( v pt , i , H ) ∣ < λ affS ⋅ λ nb + ρ heavy . We classify e s c e_{\mathrm{sc}} e sc as an upward shortcut and put it into H S u p H_S^{\mathrm{up}} H S up .
We emphasize that all these shortcut sets H S H_S H S , H S s p a r H_S^{\mathrm{spar}} H S spar , H S d o w n H_S^{\mathrm{down}} H S down , H S u p H_S^{\mathrm{up}} H S up are defined independently of the query ( x , y , F ) (x,y,F) ( x , y , F ) , so we can use them to construct labels in the construction phase, as we will see.
Detect Witness Shortcuts in H S d o w n H_S^{\mathrm{down}} H S down . By the lemma below, we can simply invoke the interface FindDownwardShortcuts(u p t , S u_{\mathrm{pt}}, S u pt , S ) below.
Lemma 5.17. In the query phase, any unaffected shortcut e s c = ( u p t , v p t ) ∈ H S d o w n e_{\mathrm{sc}}=(u_{\mathrm{pt}},v_{\mathrm{pt}})\in H_S^{\mathrm{down}} e sc = ( u pt , v pt ) ∈ H S down with v p t ∉ F p t v_{\mathrm{pt}}\notin F_{\mathrm{pt}} v pt ∈ / F pt is a witness shortcut.
Proof. The lemma condition guarantees that e s c e_{\mathrm{sc}} e sc is unaffected and non-failed, so it suffices to prove that v p t v_{\mathrm{pt}} v pt satisfies either Criterion 1 or Criterion 2 in Definition 5.13.
If the cluster S ~ \widetilde{S} S with core ( S ~ ) ∋ v p t \operatorname{core}(\widetilde{S})\ni v_{\mathrm{pt}} core ( S ) ∋ v pt is unaffected, then S ~ \widetilde{S} S must be nearby A i A_i A i -dense by the definition of H S d o w n H_S^{\mathrm{down}} H S down , and thus Criterion 1 is fulfilled.
Suppose the cluster S ~ \widetilde{S} S is affected. Since v p t ∉ F p t v_{\mathrm{pt}}\notin F_{\mathrm{pt}} v pt ∈ / F pt , there must be a residual subtree τ ~ \widetilde{\tau} τ of S ~ \widetilde{S} S s.t. v p t ∈ core ( τ ~ ) v_{\mathrm{pt}}\in\operatorname{core}(\widetilde{\tau}) v pt ∈ core ( τ ) . Now, observe that
∣ Nbr ( core ( τ ~ ) , i , H ∖ H a f f ) ∣ ≥ ∣ Nbr ( core ( τ ~ ) , i , H ) ∣ − λ a f f S ⋅ λ n b ≥ ∣ Nbr ( v p t , i , H ) ∣ − λ a f f S ⋅ λ n b ≥ ρ h e a v y , \begin{aligned}
|\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}),i,H\setminus H_{\mathrm{aff}})| &\ge|\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}),i,H)|-\lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}\\
&\ge|\operatorname{Nbr}(v_{\mathrm{pt}},i,H)|-\lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}\\
&\ge\rho_{\mathrm{heavy}},
\end{aligned} ∣ Nbr ( core ( τ ) , i , H ∖ H aff ) ∣ ≥ ∣ Nbr ( core ( τ ) , i , H ) ∣ − λ affS ⋅ λ nb ≥ ∣ Nbr ( v pt , i , H ) ∣ − λ affS ⋅ λ nb ≥ ρ heavy ,
where the first inequality holds because at most λ a f f S ⋅ λ n b \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}} λ affS ⋅ λ nb points can be endpoints of affected shortcuts (see Observation 5.6), and the third inequality is by the definition of H S d o w n H_S^{\mathrm{down}} H S down . Hence, Criterion 2 is fulfilled. □
Interface FindDownwardShortcuts(u p t , S u_{\mathrm{pt}}, S u pt , S ). It receives point u p t u_{\mathrm{pt}} u pt and an affected S S S such that u p t ∈ core ( τ ) u_{\mathrm{pt}}\in\operatorname{core}(\tau) u pt ∈ core ( τ ) for a light residual subtree τ \tau τ of S S S . It determines whether there exists an unaffected and non-failed shortcut ( u p t , v p t ) ∈ H S d o w n (u_{\mathrm{pt}},v_{\mathrm{pt}})\in H_S^{\mathrm{down}} ( u pt , v pt ) ∈ H S down .
If we have a “label” of u p t u_{\mathrm{pt}} u pt , then this interface can be viewed as a “downward” version of the interface ListUpwardNeighbors(v p t , τ , i ′ v_{\mathrm{pt}},\tau,i' v pt , τ , i ′ ) in Section 5.4.3. We do not know the “unaffected” and “non-failed” information of each shortcut ( u p t , v p t ) ∈ H S d o w n (u_{\mathrm{pt}},v_{\mathrm{pt}})\in H_S^{\mathrm{down}} ( u pt , v pt ) ∈ H S down in the preprocessing phase. To address this, we use a strategy similar to the implementation of ListUpwardNeighbors. We store up to λ a f f S ⋅ λ n b + f + 1 \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+f+1 λ affS ⋅ λ nb + f + 1 shortcuts ( u p t , v p t ) ∈ H S d o w n (u_{\mathrm{pt}},v_{\mathrm{pt}})\in H_S^{\mathrm{down}} ( u pt , v pt ) ∈ H S down , and one of them must be unaffected and non-failed in the query phase. The additive term λ a f f S ⋅ λ n b \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}} λ affS ⋅ λ nb enables us to tolerate all affected shortcuts (because of Observation 5.6), while the additive term f f f enables us to tolerant all failed v p t v_{\mathrm{pt}} v pt .
To store this “label” of u p t u_{\mathrm{pt}} u pt , recall that u p t ∈ core ( τ ) u_{\mathrm{pt}}\in\operatorname{core}(\tau) u pt ∈ core ( τ ) for a light residual subtree. Therefore, we can again append u p t u_{\mathrm{pt}} u pt ’s “label” as a secondary label to the labels behind ListCorePoints(τ \tau τ ).
Detect Witness Shortcuts in H S s p a r H_{S}^{\mathrm{spar}} H S spar . Note that for a witness shortcut e s c ⋆ = ( u p t , v p t ⋆ ) e_{\mathrm{sc}}^{\star}=(u_{\mathrm{pt}},v_{\mathrm{pt}}^{\star}) e sc ⋆ = ( u pt , v pt ⋆ ) in H S s p a r H_{S}^{\mathrm{spar}} H S spar , we must have v p t ⋆ ∈ core ( τ ~ ) v_{\mathrm{pt}}^{\star}\in\operatorname{core}(\tilde{\tau}) v pt ⋆ ∈ core ( τ ~ ) for some upward A i A_i A i -dense residual subtree τ ~ \tilde{\tau} τ ~ of some affected cluster S ~ ≺ S \tilde{S}\prec S S ~ ≺ S , because e s c ⋆ e_{\mathrm{sc}}^{\star} e sc ⋆ cannot satisfy Criterion 1 (by the definition of H S s p a r H_{S}^{\mathrm{spar}} H S spar ) and it must satisfy Criterion 2. Also, the cluster S ~ \tilde{S} S ~ must be nearby A i A_i A i -sparse by the definition of H S s p a r H_{S}^{\mathrm{spar}} H S spar .
Therefore, we will check the existence of a witness shortcut by simply counting the number of witness shortcuts. Let S ~ s p a r \tilde{\mathcal{S}}_{\mathrm{spar}} S ~ spar denote the set of all clusters S ~ ≺ S \tilde{S}\prec S S ~ ≺ S that is nearby A i A_i A i -sparse, and recall from Definition 5.5 that δ ( U p t , V p t , H ′ ) \delta(U_{\mathrm{pt}},V_{\mathrm{pt}},H') δ ( U pt , V pt , H ′ ) denotes the number H ′ H' H ′ -shortcuts connecting two disjoint point sets U p t U_{\mathrm{pt}} U pt and V p t V_{\mathrm{pt}} V pt . Define
δ 0 : = \delta_0 := δ 0 := the summation of δ ( u p t , core ( S ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}},\operatorname{core}(\tilde{S}),H_{S}^{\mathrm{spar}}) δ ( u pt , core ( S ~ ) , H S spar ) over all S ~ ∈ S ~ s p a r \tilde{S}\in\tilde{\mathcal{S}}_{\mathrm{spar}} S ~ ∈ S ~ spar .
δ f a i l : = \delta_{\mathrm{fail}} := δ fail := the summation of δ ( u p t , v p t , H S s p a r ) \delta(u_{\mathrm{pt}},v_{\mathrm{pt}},H_{S}^{\mathrm{spar}}) δ ( u pt , v pt , H S spar ) over all failed points v p t ∈ F p t v_{\mathrm{pt}}\in F_{\mathrm{pt}} v pt ∈ F pt s.t. v p t ∈ core ( S ~ ) v_{\mathrm{pt}}\in\operatorname{core}(\tilde{S}) v pt ∈ core ( S ~ ) for some S ~ ∈ S ~ s p a r \tilde{S}\in\tilde{\mathcal{S}}_{\mathrm{spar}} S ~ ∈ S ~ spar .
δ t r e e : = \delta_{\mathrm{tree}} := δ tree := the summation of δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}},\operatorname{core}(\tilde{\tau}),H_{S}^{\mathrm{spar}}) δ ( u pt , core ( τ ~ ) , H S spar ) over all upward A i A_i A i -sparse residual subtrees τ ~ \tilde{\tau} τ ~ of all S ~ ∈ S ~ s p a r \tilde{S}\in\tilde{\mathcal{S}}_{\mathrm{spar}} S ~ ∈ S ~ spar .
δ a f f : = \delta_{\mathrm{aff}} := δ aff := the number of affected shortcuts ( u p t , v p t ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) ( u pt , v pt ) in H S s p a r H_{S}^{\mathrm{spar}} H S spar s.t. for some S ~ ∈ S ~ s p a r \tilde{S}\in\tilde{\mathcal{S}}_{\mathrm{spar}} S ~ ∈ S ~ spar , v p t ∈ core ( τ ~ ) v_{\mathrm{pt}}\in\operatorname{core}(\tilde{\tau}) v pt ∈ core ( τ ~ ) of some upward A i A_i A i -dense residual subtree τ ~ \tilde{\tau} τ ~ of S ~ \tilde{S} S ~ .
Then a witness shortcut in H S s p a r H_{S}^{\mathrm{spar}} H S spar exists if and only if δ 0 − δ f a i l − δ t r e e − δ a f f > 0 \delta_0-\delta_{\mathrm{fail}}-\delta_{\mathrm{tree}}-\delta_{\mathrm{aff}}>0 δ 0 − δ fail − δ tree − δ aff > 0 . To see this, roughly speaking, subtracting δ f a i l \delta_{\mathrm{fail}} δ fail and δ t r e e \delta_{\mathrm{tree}} δ tree guarantees that we only count shortcut ( u p t , v p t ) (u_{\mathrm{pt}},v_{\mathrm{pt}}) ( u pt , v pt ) with v p t ⋆ ∈ core ( τ ~ ) v_{\mathrm{pt}}^{\star}\in\operatorname{core}(\tilde{\tau}) v pt ⋆ ∈ core ( τ ~ ) for an upward A i A_i A i -dense τ ~ \tilde{\tau} τ ~ , and subtracting δ a f f \delta_{\mathrm{aff}} δ aff rules out all the affected shortcuts. Moreover, no shortcut is doubly subtracted. Next, we compute δ 0 \delta_0 δ 0 , δ f a i l \delta_{\mathrm{fail}} δ fail , δ t r e e \delta_{\mathrm{tree}} δ tree and δ a f f \delta_{\mathrm{aff}} δ aff separately with the help of some additional interfaces.
<u>Compute δ 0 \delta_0 δ 0 .</u> First, we can obtain the list of all affected clusters. Then we can obtain the list of clusters in S ~ \tilde{\mathcal{S}} S ~ by checking affected clusters one by one, since it is trivial to store and access information of affected clusters about ancestors and nearby denseness. Therefore, it suffices to invoke the following interface.
Interface CountSparseShortcuts(u p t , S , S ~ u_{\mathrm{pt}},S,\tilde{S} u pt , S , S ~ ). It receives point u p t u_{\mathrm{pt}} u pt , affected clusters S S S and S ~ \tilde{S} S ~ , such that u p t ∈ core ( S ) u_{\mathrm{pt}}\in\operatorname{core}(S) u pt ∈ core ( S ) , S ≻ S ~ S\succ\tilde{S} S ≻ S ~ and S ~ \tilde{S} S ~ is nearby A i A_i A i -sparse for i : = level ( S ) i:=\operatorname{level}(S) i := level ( S ) . It returns δ ( u p t , core ( S ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}},\operatorname{core}(\tilde{S}),H_{S}^{\mathrm{spar}}) δ ( u pt , core ( S ~ ) , H S spar ) .
The above interface is actually easy to implement because for a particular cluster S ~ \tilde{S} S ~ , the number of its ancestors S S S is small. The number of possible u p t u_{\mathrm{pt}} u pt could be large, but a u p t u_{\mathrm{pt}} u pt with non-zero δ ( u p t , core ( S ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}},\operatorname{core}(\tilde{S}),H_{S}^{\mathrm{spar}}) δ ( u pt , core ( S ~ ) , H S spar ) must belong to Λ i ( S ~ ) \Lambda_i(\tilde{S}) Λ i ( S ~ ) , and ∣ Λ i ( S ~ ) ∣ |\Lambda_i(\tilde{S})| ∣ Λ i ( S ~ ) ∣ is small since S ~ \tilde{S} S ~ is nearby A i A_i A i -sparse. Therefore, it is affordable to precompute all the answers and store them in the label of the cluster S ~ \tilde{S} S ~ .
<u>Compute δ f a i l \delta_{\mathrm{fail}} δ fail .</u> Similarly, we can enumerate all cluster S ~ ∈ S ~ \tilde{S}\in\tilde{\mathcal{S}} S ~ ∈ S ~ , then enumerate all failed points v p t ∈ F p t v_{\mathrm{pt}}\in F_{\mathrm{pt}} v pt ∈ F pt (again it is trivial to list all failed points), and lastly find those inside core ( S ~ ) \operatorname{core}(\tilde{S}) core ( S ~ ) . Then invoke the following interface.
Interface CountSparseShortcuts(u p t , S , v p t , S ~ u_{\mathrm{pt}},S,v_{\mathrm{pt}},\tilde{S} u pt , S , v pt , S ~ ). The u p t , S , S ~ u_{\mathrm{pt}},S,\tilde{S} u pt , S , S ~ in the input are as above, and the additional v p t v_{\mathrm{pt}} v pt should satisfy v p t ∈ core ( S ~ ) v_{\mathrm{pt}}\in\operatorname{core}(\tilde{S}) v pt ∈ core ( S ~ ) and v p t ∈ F p t v_{\mathrm{pt}}\in F_{\mathrm{pt}} v pt ∈ F pt . It returns δ ( u p t , v p t , H S s p a r ) \delta(u_{\mathrm{pt}},v_{\mathrm{pt}},H_{S}^{\mathrm{spar}}) δ ( u pt , v pt , H S spar ) .
Again, the answer is non-zero only when u p t ∈ Λ i ( S ~ ) u_{\mathrm{pt}} \in\Lambda_i(\widetilde{S}) u pt ∈ Λ i ( S ) by the nearby A i A_i A i -denseness of S ~ \widetilde{S} S , so just simply store all the non-zero answers in the label of point v p t v_{\mathrm{pt}} v pt .
<u>Compute δ t r e e \delta_{\mathrm{tree}} δ tree .</u> The computation of δ t r e e \delta_{\mathrm{tree}} δ tree requires some more work. Again, it is easy to list all residual subtrees of affected clusters, so now we focus on computing δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\widetilde{\tau}), H_S^{\mathrm{spar}}) δ ( u pt , core ( τ ) , H S spar ) for one τ ~ \widetilde{\tau} τ in the expression.
Interface CountSparseShortcuts( u p t , S , S ~ , τ ~ ) (u_{\mathrm{pt}}, S, \widetilde{S}, \widetilde{\tau}) ( u pt , S , S , τ ) . Inputs u p t u_{\mathrm{pt}} u pt , S S S , S ~ \widetilde{S} S are as above, and the additional τ ~ \widetilde{\tau} τ should be a upward A i A_i A i -sparse residual subtree of S ~ \widetilde{S} S . It returns δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\widetilde{\tau}), H_S^{\mathrm{spar}}) δ ( u pt , core ( τ ) , H S spar ) .
To implement the additional interface above, in fact we only rely on the fact that τ ~ \widetilde{\tau} τ is upward A i A_i A i -sparse, and the nearby A i A_i A i -denseness of S ~ \widetilde{S} S is not important. The key observation is still that δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\widetilde{\tau}), H_S^{\mathrm{spar}}) δ ( u pt , core ( τ ) , H S spar ) is non-zero only if u p t ∈ Nbr ( core ( τ ~ ) , i , H ) u_{\mathrm{pt}} \in\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H) u pt ∈ Nbr ( core ( τ ) , i , H ) . Since τ ~ \widetilde{\tau} τ is upward A i A_i A i -sparse, we know the size of Nbr ( core ( τ ~ ) , i , H ∖ H a f f ) \operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H \setminus H_{\mathrm{aff}}) Nbr ( core ( τ ) , i , H ∖ H aff ) is small (i.e. at most ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy ). Then ∣ Nbr ( core ( τ ~ ) , i , H ) ∣ ≤ ∣ Nbr ( core ( τ ~ ) , i , H ∖ H a f f ) ∣ + λ a f f S ⋅ λ n b |\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H)| \leq|\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H \setminus H_{\mathrm{aff}})| + \lambda_{\mathrm{affS}} \cdot\lambda_{\mathrm{nb}} ∣ Nbr ( core ( τ ) , i , H ) ∣ ≤ ∣ Nbr ( core ( τ ) , i , H ∖ H aff ) ∣ + λ affS ⋅ λ nb by Observation 5.6.
A small issue is that the output is no longer mergeable, so we are unable to exploit the canonical intervals. Nevertheless, we can still somehow store something in the point labels, such that in the query phase, each point u p t ∈ Nbr ( core ( τ ~ ) , i , H ) u_{\mathrm{pt}} \in\operatorname{Nbr}(\operatorname{core}(\widetilde{\tau}), i, H) u pt ∈ Nbr ( core ( τ ) , i , H ) appears in the labels of both outer endpoints of τ \tau τ . Then if we precompute two prefix-sum numbers and store them along with these two u p t u_{\mathrm{pt}} u pt in the outer endpoint labels, then the desired δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\widetilde{\tau}), H_S^{\mathrm{spar}}) δ ( u pt , core ( τ ) , H S spar ) will be the differences of these two prefix-sum numbers. See Section 5.6.5 for more details.
<u>Compute δ a f f \delta_{\mathrm{aff}} δ aff .</u> Since we can obtain all affected shortcuts, we simply check for each of them whether it contributes to δ a f f \delta_{\mathrm{aff}} δ aff . Note that checking whether a shortcut belongs to H S s p a r H_S^{\mathrm{spar}} H S spar is simple because an H H H -shortcut belongs to at most one group in { H S d o w n , H S u p , H S s p a r ∣ all clusters S } \{H_S^{\mathrm{down}}, H_S^{\mathrm{up}}, H_S^{\mathrm{spar}} \mid\text{all clusters } S\} { H S down , H S up , H S spar ∣ all clusters S } .
Detect Witness Shortcuts in H S u p H_S^{\mathrm{up}} H S up . We will use a similar counting argument. For each shortcut ( u p t , v p t ) ∈ H S u p (u_{\mathrm{pt}}, v_{\mathrm{pt}}) \in H_S^{\mathrm{up}} ( u pt , v pt ) ∈ H S up where v p t v_{\mathrm{pt}} v pt is the lower endpoint, by definition v p t v_{\mathrm{pt}} v pt must belong to one of the following: (1) core ( τ ~ ) \operatorname{core}(\widetilde{\tau}) core ( τ ) of a upward A i A_i A i -sparse residual subtree τ ~ \widetilde{\tau} τ , (2) F p t F_{\mathrm{pt}} F pt , (3) core ( τ ~ ) \operatorname{core}(\widetilde{\tau}) core ( τ ) of a upward A i A_i A i -dense residual subtree, and (4) a nearby A i A_i A i -dense unaffected cluster S ~ \widetilde{S} S . We want to detect an unaffected shortcut in H S u p H_S^{\mathrm{up}} H S up whose v p t v_{\mathrm{pt}} v pt falls in (3) or (4). To this end, define
δ 0 : = δ ( u p t , ⋅ , H S u p ) \delta_0 := \delta(u_{\mathrm{pt}}, \cdot, H_S^{\mathrm{up}}) δ 0 := δ ( u pt , ⋅ , H S up ) , i.e., the number of H S u p H_S^{\mathrm{up}} H S up -shortcuts with u p t u_{\mathrm{pt}} u pt as one of its endpoints.
δ f a i l : = \delta_{\mathrm{fail}} := δ fail := the summation of δ ( u p t , v p t , H S u p ) \delta(u_{\mathrm{pt}}, v_{\mathrm{pt}}, H_S^{\mathrm{up}}) δ ( u pt , v pt , H S up ) over all v p t ∈ F p t v_{\mathrm{pt}} \in F_{\mathrm{pt}} v pt ∈ F pt with level ( v p t ) < i : = level ( u p t ) \operatorname{level}(v_{\mathrm{pt}}) < i := \operatorname{level}(u_{\mathrm{pt}}) level ( v pt ) < i := level ( u pt ) and ∣ Nbr ( v p t , i , H ) ∣ < λ a f f S ⋅ λ n b + ρ h e a v y |\operatorname{Nbr}(v_{\mathrm{pt}}, i, H)| < \lambda_{\mathrm{affS}} \cdot\lambda_{\mathrm{nb}} + \rho_{\mathrm{heavy}} ∣ Nbr ( v pt , i , H ) ∣ < λ affS ⋅ λ nb + ρ heavy (note that the last condition is by the definition of H S u p H_S^{\mathrm{up}} H S up ).
δ t r e e : = \delta_{\mathrm{tree}} := δ tree := the summation of δ ( u p t , core ( τ ~ ) , H S u p ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\widetilde{\tau}), H_S^{\mathrm{up}}) δ ( u pt , core ( τ ) , H S up ) over all upward A i A_i A i -sparse residual subtrees τ ~ \widetilde{\tau} τ s.t. τ ~ \widetilde{\tau} τ belongs to a nearby A i A_i A i -dense cluster S ~ ≺ S \widetilde{S} \prec S S ≺ S .
δ a f f : = \delta_{\mathrm{aff}} := δ aff := the number of affected shortcuts ( u p t , v p t ) (u_{\mathrm{pt}}, v_{\mathrm{pt}}) ( u pt , v pt ) in H S u p H_S^{\mathrm{up}} H S up s.t. for some nearby A i A_i A i -dense affected cluster S ~ ≺ S \widetilde{S} \prec S S ≺ S , v p t ∈ { core ( τ ~ ) ∣ upward A i -dense residual subtree τ ~ of S ~ } v_{\mathrm{pt}} \in\{\operatorname{core}(\widetilde{\tau}) \mid\text{upward } A_i\text{-dense residual subtree } \widetilde{\tau}\text{ of } \widetilde{S}\} v pt ∈ { core ( τ ) ∣ upward A i -dense residual subtree τ of S } .
Again, it is clear that a witness shortcut in H S u p H_S^{\mathrm{up}} H S up exists if and only if δ 0 − δ f a i l − δ t r e e − δ a f f > 0 \delta_0 - \delta_{\mathrm{fail}} - \delta_{\mathrm{tree}} - \delta_{\mathrm{aff}} > 0 δ 0 − δ fail − δ tree − δ aff > 0 . Next we discuss how to compute each of them.
<u>Compute δ 0 \delta_0 δ 0 .</u> δ 0 \delta_0 δ 0 is just a number that can be precomputed in the construction phase. To see where to store it, we will exploit that the input of DownwardDenseness( u p t , τ ) (u_{\mathrm{pt}}, \tau) ( u pt , τ ) guarantees u p t ∈ core ( τ ) u_{\mathrm{pt}} \in\operatorname{core}(\tau) u pt ∈ core ( τ ) . and τ \tau τ is a light residual subtree. Recall that ListCorePoints(τ \tau τ ) can list all points in core(τ \tau τ ) for a light residual subtree. Therefore, we can store δ 0 \delta_0 δ 0 as a secondary label affiliated to labels behind ListCorePoints(τ \tau τ ). Then obtain δ 0 \delta_0 δ 0 in the query phase along with u p t u_{\mathrm{pt}} u pt .
Compute δ f a i l \delta_{\mathrm{fail}} δ fail . For this, we first enumerate all v p t ∈ F p t v_{\mathrm{pt}} \in F_{\mathrm{pt}} v pt ∈ F pt satisfying the conditions of the summation. For one such v p t v_{\mathrm{pt}} v pt , to compute δ ( u p t , v p t , H S u p ) \delta(u_{\mathrm{pt}}, v_{\mathrm{pt}}, H_{S}^{\mathrm{up}}) δ ( u pt , v pt , H S up ) , we need to exploit that ∣ Nbr ( v p t , i , H ) ∣ < λ a f f S ⋅ λ n b + ρ h e a v y |\operatorname{Nbr}(v_{\mathrm{pt}}, i, H)| < \lambda_{\mathrm{affS}} \cdot\lambda_{\mathrm{nb}} + \rho_{\mathrm{heavy}} ∣ Nbr ( v pt , i , H ) ∣ < λ affS ⋅ λ nb + ρ heavy . Note that δ ( u p t , v p t , H S u p ) \delta(u_{\mathrm{pt}}, v_{\mathrm{pt}}, H_{S}^{\mathrm{up}}) δ ( u pt , v pt , H S up ) is non-zero only when u p t ∈ Nbr ( v p t , i , H ) u_{\mathrm{pt}} \in\operatorname{Nbr}(v_{\mathrm{pt}}, i, H) u pt ∈ Nbr ( v pt , i , H ) . Hence, we can store in the label of point v p t v_{\mathrm{pt}} v pt all points u p t ′ ∈ ∣ Nbr ( v p t , i , H ) ∣ u'_{\mathrm{pt}} \in|\operatorname{Nbr}(v_{\mathrm{pt}}, i, H)| u pt ′ ∈ ∣ Nbr ( v pt , i , H ) ∣ along with the number δ ( u p t ′ , v p t , H S u p ) \delta(u'_{\mathrm{pt}}, v_{\mathrm{pt}}, H_{S}^{\mathrm{up}}) δ ( u pt ′ , v pt , H S up ) .
Compute δ t r e e \delta_{\mathrm{tree}} δ tree . This part is essentially the same as computing δ t r e e \delta_{\mathrm{tree}} δ tree for H S s p a r H_{S}^{\mathrm{spar}} H S spar . Namely, implement the interface below using the same approach, which works because it only relies on that τ ˇ \check{\tau} τ ˇ is upward A i A_i A i -sparse.
Interface CountUpwardShortcuts(u p t , S , τ ˇ , S ~ ˇ u_{\mathrm{pt}}, S, \check{\tau}, \check{\widetilde{S}} u pt , S , τ ˇ , S ˇ ). It receives point u p t u_{\mathrm{pt}} u pt , affected clusters S S S , S ~ ˇ \check{\widetilde{S}} S ˇ , and residual tree τ ˇ \check{\tau} τ ˇ of S ~ ˇ \check{\widetilde{S}} S ˇ , such that u p t ∈ core ( S ) u_{\mathrm{pt}} \in\operatorname{core}(S) u pt ∈ core ( S ) , S ≻ S ~ ˇ S \succ\check{\widetilde{S}} S ≻ S ˇ , S ~ ˇ \check{\widetilde{S}} S ˇ is nearby A i A_i A i -dense for i : = level ( S ) i := \operatorname{level}(S) i := level ( S ) , and τ ˇ \check{\tau} τ ˇ is upward A i A_i A i -sparse. It returns δ ( u p t , core ( τ ˇ ) , H S u p ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\check{\tau}), H_{S}^{\mathrm{up}}) δ ( u pt , core ( τ ˇ ) , H S up ) .
Compute δ a f f \delta_{\mathrm{aff}} δ aff . It is the same as computing δ a f f \delta_{\mathrm{aff}} δ aff for H u p s p a r H_{\mathrm{up}}^{\mathrm{spar}} H up spar .
Interfaces
In this section, we explain some of the details behind the interfaces mentioned above. In particular, we elaborate on CountSparseShortcuts(u p t , S , τ ˇ , S ~ ˇ u_{\mathrm{pt}}, S, \check{\tau}, \check{\widetilde{S}} u pt , S , τ ˇ , S ˇ ), whose technical details were previously omitted. However, all of these bottom-level interfaces have already appeared, either explicitly or implicitly, in [36 ] . Thus, we do not give fully formal arguments here.
The Euler Tours of Steiner Trees
For clarity, we restate the preliminaries on Euler tour order here.
Definition 5.18 (Euler Tours). Consider a cluster S S S and its Steiner tree T S T_S T S . We define Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) to be its Euler tour, which is an ordered list that includes all occurrences of vertices according to a DFS traversal of T S T_S T S , starting from an arbitrary root node. For convenience, we add two virtual occurrences start ( T S ) \operatorname{start}(T_S) start ( T S ) and end ( T S ) \operatorname{end}(T_S) end ( T S ) at the front and the end of Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) as the “guard occurrences”. For each vertex v ∈ V t m n ( S ) v \in V_{\mathrm{tmn}}(S) v ∈ V tmn ( S ) , the principal occurrences of v v v on Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) is its first occurrence.
Definition 5.19 (Intervals). For a cluster S S S and its Steiner tree T S T_S T S , an interval I I I on Euler ( T S ) \operatorname{Euler}(T_S) Euler ( T S ) is a consecutive subsequence. The terminal vertices of I I I , denoted by V t m n ( I ) V_{\mathrm{tmn}}(I) V tmn ( I ) , are those vertices in V t m n ( S ) V_{\mathrm{tmn}}(S) V tmn ( S ) whose principal occurrences fall in I I I . The core of I I I is the corresponding node set of V t m n ( I ) V_{\mathrm{tmn}}(I) V tmn ( I ) , i.e. core ( I ) : = { point ( v , S ) ∣ v ∈ V t m n ( I ) } \operatorname{core}(I) := \{\operatorname{point}(v,S) \mid v \in V_{\mathrm{tmn}}(I)\} core ( I ) := { point ( v , S ) ∣ v ∈ V tmn ( I )} . The left (resp. right) outer endpoints of I I I are the occurrences immediately to the left (resp. right) of I I I .
Definition 5.20 (Residual Intervals under Failures). Consider the query phase for some ( x , y , F ) (x,y,F) ( x , y , F ) . For the Steiner tree T T T of an affected cluster, we use I T \mathcal{I}_T I T to denote the residual intervals of T T T , which are intervals obtained by removing start ( T ) \operatorname{start}(T) start ( T ) , end ( T ) \operatorname{end}(T) end ( T ) and all occurrences of failed vertices from Euler ( T ) \operatorname{Euler}(T) Euler ( T ) .
Lemma 5.21. In the query phase , there is an assignment that assigns a subset of residual intervals I τ ⊆ I T \mathcal{I}_{\tau} \subseteq\mathcal{I}_T I τ ⊆ I T to each residual subtree τ ∈ T ∖ F \tau\in T \setminus F τ ∈ T ∖ F , satisfying the following.
Definition 5.22 (Canonical Intervals). Consider a Steiner tree T T T . For each occurrences v o c ∈ Euler ( T ) v_{\mathrm{oc}}\in\operatorname{Euler}(T) v oc ∈ Euler ( T ) , let I T → ( v o c ) \mathcal{I}^{\to}_{T}(v_{\mathrm{oc}}) I T → ( v oc ) denote the canonical intervals on the right side of v o c v_{\mathrm{oc}} v oc , defined as follows. Let v o c ′ ∈ Euler ( T ) v'_{\mathrm{oc}}\in\operatorname{Euler}(T) v oc ′ ∈ Euler ( T ) be the occurrence next to v o c v_{\mathrm{oc}} v oc on the right. Then I T → ( v o c ) \mathcal{I}^{\to}_{T}(v_{\mathrm{oc}}) I T → ( v oc ) includes all intervals starting from v o c ′ v'_{\mathrm{oc}} v oc ′ of size 1 , 2 , 4 , 8 , … 1,2,4,8,\ldots 1 , 2 , 4 , 8 , … until the largest such interval, namely the suffix beginning with v o c ′ v'_{\mathrm{oc}} v oc ′ . Similarly, we can define the canonical intervals I T ← ( v o c ) \mathcal{I}^{\leftarrow}_{T}(v_{\mathrm{oc}}) I T ← ( v oc ) .
Observation 5.23. In the query phase , for each residual interval I ∈ I T I\in\mathcal{I}_{T} I ∈ I T with left and right outer endpoints u o c u_{\mathrm{oc}} u oc and v o c v_{\mathrm{oc}} v oc , there exists canonical intervals I → ∈ I T → ( u o c ) I^{\to}\in\mathcal{I}^{\to}_{T}(u_{\mathrm{oc}}) I → ∈ I T → ( u oc ) and I ← ∈ I T ← ( v o c ) I^{\leftarrow}\in\mathcal{I}^{\leftarrow}_{T}(v_{\mathrm{oc}}) I ← ∈ I T ← ( v oc ) such that V t m n ( I → ) ∪ V t m n ( I ← ) = V t m n ( I ) V_{\mathrm{tmn}}(I^{\to})\cup V_{\mathrm{tmn}}(I^{\leftarrow})=V_{\mathrm{tmn}}(I) V tmn ( I → ) ∪ V tmn ( I ← ) = V tmn ( I ) .
Determine Heaviness
In what follows, for ease of presentation, we may store information in “labels of occurrences”. Formally, this means at the very end, we will further store the label of an occurrence v o c v_{\mathrm{oc}} v oc at its corresponding vertex v v v . Exceptionally, for the guard occurrences start ( T S ) \operatorname{start}(T_S) start ( T S ) and end ( T S ) \operatorname{end}(T_S) end ( T S ) which have no corresponding vertex, we will store their labels at each vertex in the cluster S S S .
Observation 5.24. In the query phase , for each residual interval I I I , we can access the labels of its left and right outer endpoints.
Proof. This is because the left and right outer endpoints of I I I are either occurrences of failed vertices, or the guard occurrences start ( T S ) \operatorname{start}(T_S) start ( T S ) , end ( T S ) \operatorname{end}(T_S) end ( T S ) . Since a residual interval I I I is defined under the affected cluster S S S , we can access the labels of start ( T S ) \operatorname{start}(T_S) start ( T S ) and end ( T S ) \operatorname{end}(T_S) end ( T S ) at any vertex in S ∩ F S\cap F S ∩ F (which is not empty by the definition of affected clusters).
<u>Labels CoreNodes(I → I^{\to} I → , v o c v_{\mathrm{oc}} v oc , T T T ) and CoreNodes(I ← I^{\leftarrow} I ← , v o c v_{\mathrm{oc}} v oc , T T T ).</u> For each Steiner tree T T T , each occurrence v o c ∈ Euler ( T ) v_{\mathrm{oc}}\in\operatorname{Euler}(T) v oc ∈ Euler ( T ) , and each canonical interval I → ∈ I T → ( v o c ) I^{\to}\in\mathcal{I}^{\to}_{T}(v_{\mathrm{oc}}) I → ∈ I T → ( v oc ) , the label CoreNodes(I → I^{\to} I → , v o c v_{\mathrm{oc}} v oc , T T T ) is a set includes as many nodes in core ( I → ) \operatorname{core}(I^{\to}) core ( I → ) as possible, up to ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy of them. CoreNodes(I ← I^{\leftarrow} I ← , v o c v_{\mathrm{oc}} v oc , T T T ) can be defined analogously. We store CoreNodes(I → I^{\to} I → , v o c v_{\mathrm{oc}} v oc , T T T ) and CoreNodes(I ← I^{\leftarrow} I ← , v o c v_{\mathrm{oc}} v oc , T T T ) in the label of the occurrence v o c v_{\mathrm{oc}} v oc .
<u>Interface ListCoreNodes(τ \tau τ , S S S ).</u> Recall that in the input, S S S is an affected cluster and τ \tau τ is a residual subtree of S S S . The goal is to either determine ∣ V t m n ( τ ) ∣ = ∣ core ( τ ) ∣ ≥ ρ h e a v y |V_{\mathrm{tmn}}(\tau)|=|\operatorname{core}(\tau)|\geq\rho_{\mathrm{heavy}} ∣ V tmn ( τ ) ∣ = ∣ core ( τ ) ∣ ≥ ρ heavy , or return core ( τ ) \operatorname{core}(\tau) core ( τ ) explicitly. By Lemma 5.21 and Observation 5.23 ,
core ( τ ) = ⋃ I ∈ I τ core ( I → ) ∪ core ( I ← ) . \operatorname{core}(\tau)=\bigcup_{I\in\mathcal{I}_{\tau}}\operatorname{core}(I^{\to})\cup\operatorname{core}(I^{\leftarrow}). core ( τ ) = I ∈ I τ ⋃ core ( I → ) ∪ core ( I ← ) .
Moreover, for each canonical interval I → I^{\to} I → (or I ← I^{\leftarrow} I ← ) in the above expression, we can either determine ∣ core ( I → ) ∣ ≥ ρ h e a v y |\operatorname{core}(I^{\to})|\geq\rho_{\mathrm{heavy}} ∣ core ( I → ) ∣ ≥ ρ heavy or obtain core ( I → ) \operatorname{core}(I^{\to}) core ( I → ) from the label CoreNodes(I → I^{\to} I → , v o c v_{\mathrm{oc}} v oc , T T T ), where v o c v_{\mathrm{oc}} v oc is the left outer endpoint of I I I and thus it can be accessed by Observation 5.24 . Therefore, we can merge the answers for all such canonical intervals to obtain the answer for τ \tau τ .
Obtain Affected Shortcuts
For ease of presentation, we may also store information in “labels of clusters”. Formally, this means at the end we will further store the label of a cluster S S S at each vertex in S S S . Note that in the query phase, we can access the label of an affected cluster S S S since S ∩ ( F ∪ { s , t } ) S \cap(F \cup\{s,t\}) S ∩ ( F ∪ { s , t }) is non-empty.
Labels Shortcuts(S S S ). For each cluster S S S , we use Shortcuts(S S S ) to denote the set of all shortcuts owned by S S S . We store Shortcuts(S S S ) at the label of the cluster S S S .
Interface ListAffectedShortcuts(). We can simply obtain the explicit set S a f f S_{\mathrm{aff}} S aff of all affected shortcuts by inspecting Shortcuts(S S S ) for all affected clusters.
Labels for Interfaces ListUpwardNeighbors and CheckAdjCluster
The following two certificates are exactly the information needed for a point v p t v_{\mathrm{pt}} v pt (in a light residual subtree) or a residual subtree. As we mentioned, we will store the following certificates AdjCluster and Upward (1) as secondary labels affiliated with elements in the above CoreNodes, and (2) for each canonical interval.
Definition 5.25 (Adjacent-Cluster Denseness Certificate). Let S S S be a cluster and K ⊆ core ( S ) K \subseteq\operatorname{core}(S) K ⊆ core ( S ) be a subset of its core nodes. For each level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , an adjacent-cluster A i ′ A_{i'} A i ′ -denseness certificate of S S S , denoted by AdjCluster(K , i ′ K,i' K , i ′ ), consists of (the identifiers of) all clusters S ~ ⪯ S \widetilde{S} \preceq S S ⪯ S s.t.
However, if there are at least λ a f f + 1 \lambda_{\mathrm{aff}} + 1 λ aff + 1 such S ~ \widetilde{S} S , then only keep arbitrary λ a f f + 1 \lambda_{\mathrm{aff}} + 1 λ aff + 1 of them in AdjCluster(S , i ′ S,i' S , i ′ ).
Lemma 5.26. In the query phase for arbitrary ( x , y , F ) (x,y,F) ( x , y , F ) , with access to AdjCluster(K , i ′ K,i' K , i ′ ) and the set S a f f S_{\mathrm{aff}} S aff of all affected clusters, one can determine whether there exists an unaffected cluster S ~ ⪯ S \widetilde{S} \preceq S S ⪯ S (as above, S S S is the cluster with core ( S ) ⊇ K \operatorname{core}(S) \supseteq K core ( S ) ⊇ K ) s.t. Λ ( S ~ ) \Lambda(\widetilde{S}) Λ ( S ) intersects core ( S ) \operatorname{core}(S) core ( S ) and S ~ \widetilde{S} S is nearby A i ′ A_{i'} A i ′ -dense.
Proof. This is because the number of affected clusters is bounded by λ a f f \lambda_{\mathrm{aff}} λ aff , and we can simply rule out all of them from AdjCluster(S , i ′ S,i' S , i ′ ) with access to S a f f S_{\mathrm{aff}} S aff .
Definition 5.27 (Upward Denseness Certificate). Consider a shortcut set H ′ ⊆ H H' \subseteq H H ′ ⊆ H . Let S S S be a cluster and K ⊆ core ( S ) K \subseteq\operatorname{core}(S) K ⊆ core ( S ) be a subset of its core nodes. For each level i ′ ≥ i : = level ( S ) i' \ge i := \operatorname{level}(S) i ′ ≥ i := level ( S ) , an upward A i ′ A_{i'} A i ′ -denseness certificate of K K K , denoted by Upward(K , i ′ , H ′ K,i',H' K , i ′ , H ′ ), is a subset of Nbr(K , i ′ , H ′ K,i',H' K , i ′ , H ′ ) of size min { λ a f f S ⋅ λ n b + ρ h e a v y , ∣ Nbr ( K , i ′ , H ′ ) ∣ } \min\{\lambda_{\mathrm{aff}}S \cdot\lambda_{\mathrm{nb}} + \rho_{\mathrm{heavy}}, \lvert\operatorname{Nbr}(K,i',H')\rvert\} min { λ aff S ⋅ λ nb + ρ heavy , ∣ Nbr ( K , i ′ , H ′ )∣} . Moreover, each node v n d ∈ Upward ( K , i ′ , H ′ ) v_{\mathrm{nd}} \in\operatorname{Upward}(K,i',H') v nd ∈ Upward ( K , i ′ , H ′ ) is associated with the number of H ′ H' H ′ -shortcuts in { v n d } × K \{v_{\mathrm{nd}}\} \times K { v nd } × K .
Lemma 5.28. In the query phase for arbitrary ( x , y , F ) (x,y,F) ( x , y , F ) , with access to
Upward(K , i ′ , H ′ K,i',H' K , i ′ , H ′ ),
the set H a f f H_{\mathrm{aff}} H aff of all affected shortcuts,
interfaces that determine whether a shortcut is inside H ′ H' H ′ and whether a node is contained by K K K .
::
one can determine whether
K K K is upward A i ′ A_{i'} A i ′ -dense w.r.t. H ′ H' H ′ , i.e. ∣ Nbr ( K , i ′ , H ′ ∖ H a f f ) ∣ ≥ ρ h e a v y |\operatorname{Nbr}(K,i',H' \setminus H_{\mathrm{aff}})| \ge\rho_{\mathrm{heavy}} ∣ Nbr ( K , i ′ , H ′ ∖ H aff ) ∣ ≥ ρ heavy , or
K K K is upward A i ′ A_{i'} A i ′ -sparse w.r.t. H ′ H' H ′ , and furthermore, obtain Nbr ( K , i ′ , H ′ ∖ H a f f ) \operatorname{Nbr}(K,i',H' \setminus H_{\mathrm{aff}}) Nbr ( K , i ′ , H ′ ∖ H aff ) explicitly.
Proof. First, observe that when ∣ Upward ( K , i ′ , H ′ ) ∣ = λ a f f S ⋅ λ n b + ρ h e a v y |\operatorname{Upward}(K,i',H')| = \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+\rho_{\mathrm{heavy}} ∣ Upward ( K , i ′ , H ′ ) ∣ = λ affS ⋅ λ nb + ρ heavy , we must have ∣ Nbr ( K , i ′ , H ′ ∖ H a f f ) ∣ ≥ ρ h e a v y |\operatorname{Nbr}(K,i',H' \setminus H_{\mathrm{aff}})| \ge\rho_{\mathrm{heavy}} ∣ Nbr ( K , i ′ , H ′ ∖ H aff ) ∣ ≥ ρ heavy since the number of distinct endpoints of affected shortcuts is bounded by λ a f f S ⋅ λ n b \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}} λ affS ⋅ λ nb .
From now, assume Upward ( K , i ′ , H ′ ) = Nbr ( K , i ′ , H ′ ) \operatorname{Upward}(K,i',H') = \operatorname{Nbr}(K,i',H') Upward ( K , i ′ , H ′ ) = Nbr ( K , i ′ , H ′ ) . Then for each node v n d ∈ Nbr ( K , i ′ , H ′ ) v_{\mathrm{nd}} \in\operatorname{Nbr}(K,i',H') v nd ∈ Nbr ( K , i ′ , H ′ ) , we can compute the number δ \delta δ of ( H ′ ∖ H a f f ) (H' \setminus H_{\mathrm{aff}}) ( H ′ ∖ H aff ) -shortcuts in { v n d } × K \{v_{\mathrm{nd}}\} \times K { v nd } × K , since it is equal to the number of H ′ H' H ′ -shortcuts in { v n d } × K \{v_{\mathrm{nd}}\} \times K { v nd } × K minus the number of ( H ′ ∩ H a f f ) (H' \cap H_{\mathrm{aff}}) ( H ′ ∩ H aff ) -shortcuts in { v n d } × K \{v_{\mathrm{nd}}\} \times K { v nd } × K . Since v n d ∈ Nbr ( K , i ′ , H ′ ∖ H a f f ) v_{\mathrm{nd}} \in\operatorname{Nbr}(K,i',H' \setminus H_{\mathrm{aff}}) v nd ∈ Nbr ( K , i ′ , H ′ ∖ H aff ) iff δ > 0 \delta> 0 δ > 0 , we obtain Nbr ( K , i ′ , H ′ ∖ H a f f ) \operatorname{Nbr}(K,i',H' \setminus H_{\mathrm{aff}}) Nbr ( K , i ′ , H ′ ∖ H aff ) explicitly.
Labels for CountSparseShortcuts(u p t , S , τ ~ , S ~ u_{\mathrm{pt}}, S, \tilde{\tau}, \tilde{S} u pt , S , τ ~ , S ~ )
Recall that u p t ∈ core ( S ) u_{\mathrm{pt}} \in\operatorname{core}(S) u pt ∈ core ( S ) is at level i i i , and τ ~ \tilde{\tau} τ ~ of S ~ \tilde{S} S ~ is at a lower level. Our goal is to return δ ( u p t , core ( τ ~ ) , H S s p a r ) \delta(u_{\mathrm{pt}}, \operatorname{core}(\tilde{\tau}), H_{S}^{\mathrm{spar}}) δ ( u pt , core ( τ ~ ) , H S spar ) . A key property is that τ ~ \tilde{\tau} τ ~ is upward A i A_i A i -sparse, and the answer is non-zero only when u p t ∈ Nbr ( core ( τ ~ ) , i , H S s p a r ∖ H a f f ) u_{\mathrm{pt}} \in\operatorname{Nbr}(\operatorname{core}(\tilde{\tau}),i,H_{S}^{\mathrm{spar}} \setminus H_{\mathrm{aff}}) u pt ∈ Nbr ( core ( τ ~ ) , i , H S spar ∖ H aff ) .
Without loss of generality, assume τ ~ \tilde{\tau} τ ~ has only one residual interval I I I . We have mentioned that we want to store a superset of Nbr ( core ( I ) , i , H S s p a r ∖ H a f f ) \operatorname{Nbr}(\operatorname{core}(I),i,H_{S}^{\mathrm{spar}} \setminus H_{\mathrm{aff}}) Nbr ( core ( I ) , i , H S spar ∖ H aff ) at both the outer endpoints of I I I , denoted by w o c w_{\mathrm{oc}} w oc and z o c z_{\mathrm{oc}} z oc , so that we can apply the prefix-sum trick. This superset can be simply a upward A i A_i A i -denseness certificate Upward ( core ( I ) , i , H S s p a r ) \operatorname{Upward}(\operatorname{core}(I),i,H_{S}^{\mathrm{spar}}) Upward ( core ( I ) , i , H S spar ) of I I I as discussed above. The difficulty, however, is that I I I is not known during the construction phase. Fortunately, the certificate Upward ( core ( I ) , i , H S s p a r ) \operatorname{Upward}(\operatorname{core}(I),i,H_{S}^{\mathrm{spar}}) Upward ( core ( I ) , i , H S spar ) (considered purely as a node set, without the associated numbers) satisfies a certain monotonicity property: fixing a left outer endpoint, when we grows the interval, we can maintain an incremental certificate (this is straightforward from the definition). Therefore, at the left endpoint u o c u_{\mathrm{oc}} u oc of I I I , we can store a maximal certificate generated by the above growing procedure, which will automatically be a superset of the certificate of I I I . Now, u p t u_{\mathrm{pt}} u pt appears in the labels of w o c w_{\mathrm{oc}} w oc and z o c z_{\mathrm{oc}} z oc , allowing us to store two prefix-sum values whose difference gives δ ( u p t , core ( I ) , H S s p a r ) \delta(u_{\mathrm{pt}},\operatorname{core}(I),H_{S}^{\mathrm{spar}}) δ ( u pt , core ( I ) , H S spar ) .
Label Size Analysis
For clarity, let us count the f f f factors in the label size, the overhead will always bounded by n O ( 1 / k ) ⋅ log O ( k ) n n^{O(1/k)}\cdot\log^{O(k)} n n O ( 1/ k ) ⋅ log O ( k ) n .
It is not hard to see that the bottleneck appears in the secondary labels affiliated to elements in each CoreNodes labels. From the definition of CoreNodes, each such label has ρ h e a v y \rho_{\mathrm{heavy}} ρ heavy many elements, incurring an f f f factor. Let us list the interfaces which store secondary labels affiliated to CoreNodes as follows.
The first one is ListUpwardNeighbors(v p t , τ , i ′ v_{\mathrm{pt}},\tau,i' v pt , τ , i ′ ), the single-point version. The affiliated information is a upward denseness certificate, which takes λ a f f S ⋅ λ n b + ρ h e a v y \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+\rho_{\mathrm{heavy}} λ affS ⋅ λ nb + ρ heavy size, incurring an f 2 f^2 f 2 factor.
The second one is CheckAdjCluster(v p t , i ′ v_{\mathrm{pt}},i' v pt , i ′ ), the single-point version. The affiliated information is (the identifiers of) λ a f f S + 1 \lambda_{\mathrm{affS}}+1 λ affS + 1 candidate clusters, which incurs one f f f factor.
The third one is FindDownwardShortcuts(u p t , S ) u_{\mathrm{pt}},S) u pt , S ) . The affiliated information is a “downward version” of upward denseness certificate. It takes λ a f f S ⋅ λ n b + f + 1 \lambda_{\mathrm{affS}}\cdot\lambda_{\mathrm{nb}}+f+1 λ affS ⋅ λ nb + f + 1 size, which incurs an f 2 f^2 f 2 factor.
We can verify that all other interfaces only store labels with f 2 ⋅ n O ( 1 / k ) ⋅ log O ( k ) n f^{2} \cdot n^{O(1/k)} \cdot\log^{O(k)} n f 2 ⋅ n O ( 1/ k ) ⋅ log O ( k ) n size. Therefore, the final label size is
f 3 ⋅ n O ( 1 / k ) ⋅ log O ( k ) n . f^{3} \cdot n^{O(1/k)} \cdot\log^{O(k)} n. f 3 ⋅ n O ( 1/ k ) ⋅ log O ( k ) n .
Improved Vertex-Failure Connectivity Labeling Schemes
Finally, let us discuss how to improve the f 3 f^{3} f 3 factor to an f 2 f^{2} f 2 factor in the connectivity setting. The key observation is that, in this setting, there is no need to store information for individual points. In other words, we will create subtree nodes for every residual subtree, regardless of whether it is light or heavy, but no singleton node. The subtree versions of the above three interfaces each incur only an f 2 f^{2} f 2 factor, and they no longer need to be affiliated with CoreNodes.
We also want to point out that, even in the distance setting, single-point versions of interfaces CheckAdjCluster and FindDownwardShortcuts are already unnecessary, because when we are checking denseness, we can always view a (no matter light or heavy) residual subtree as a whole. Hence, the real bottleneck of our distance labeling scheme is the interface ListUpwardNeighbors, which still needs to output single-point information when working with a light residual subtree.
Finally, the overhead in the connectivity setting will only be O ~ ( 1 ) \tilde{O}(1) O ~ ( 1 ) , following [36 ] . Also, when working with a (non-length-constrained) vertex expander hierarchy, we no longer need the sampling step to obtain integral versions of fractional moving cuts. This removes the only randomized step in our algorithm. Therefore, we obtain a deterministic vertex-failure connectivity labeling scheme with label size
O ~ ( f 2 ) . \tilde{O}(f^{2}). O ~ ( f 2 ) .
A Proof Sketch of thm:PolyED
The proof of polynomial-time construction of LC edge-expander decomposition in [HLRS26] (which is adapted from [30 ] ) has three building blocks.
First, the proof uses a result from [30 ] stating that the union of a sequence of sparse (edge) moving cuts always has a small size. Here we cite an analogous result in [HLSW25] for (vertex) moving cuts.
Lemma A.1 (Lemma 3.17 and Lemma 4.8 in [HLSW25]). Let G 0 G_0 G 0 be a graph, A A A be a node weighting and ( C 1 , … , C k ) (C_1, \ldots, C_k) ( C 1 , … , C k ) be a sequence of ( h s ) (hs) ( h s ) -length (vertex) moving cuts where each cut C i C_i C i is ( h , s ) (h,s) ( h , s ) -length ϕ \phi ϕ -sparse in G i = G 0 − ∑ j < i ( h s ⋅ C j ) G_i = G_0 - \sum_{j<i}(hs \cdot C_j) G i = G 0 − ∑ j < i ( h s ⋅ C j ) w.r.t. A A A . Then
∑ i ∣ C i ∣ ≤ ϕ ⋅ n O ( 1 / s ) log n ⋅ ∣ A ∣ . \sum_i |C_i| \le\phi\cdot n^{O(1/s)} \log n \cdot|A|. i ∑ ∣ C i ∣ ≤ ϕ ⋅ n O ( 1/ s ) log n ⋅ ∣ A ∣.
Second, their proof defines a “worst-case” demand D A D_A D A , called the LDD demand, for the node weighting A A A , in the sense that if D A D_A D A can be routed in G G G with low congestion and length, then A A A is LC-expanding in G G G . We point out that the LDD demand also works for vertex congestion and LC-vertex-expansion following the same proof.
Third, their proof uses a black-box algorithm from [26 ] for computing approximate multicommodity cutmatches, which either outputs a flow routing D A D_A D A in G G G with low congestion and length, or a sparse moving cut w.r.t. A A A . We note that this building block also extends to vertex moving cuts and vertex congestion, since the original result in [26 ] applies even to directed graphs and then we can apply the standard vertex-splitting reduction. We state it below in a form adapted to the undirected vertex-congestion setting (since we will use it again for expander routing).
Theorem A.2 (Theorem A.2 in [26 ] ). Let G G G be a graph with length function ℓ \ell ℓ . Given a length parameter h ≥ 1 h \ge1 h ≥ 1 , a sparsity parameter 0 < ϕ < 1 0 < \phi< 1 0 < ϕ < 1 , and a collection of k k k equal-size node weighting pairs { ( A i , A i ′ ) } i ∈ [ k ] \{(A_i,A'_i)\}_{i\in[k]} {( A i , A i ′ ) } i ∈ [ k ] , there is an algorithm that computes
For each i ∈ [ k ] i \in[k] i ∈ [ k ] , a partition of the supports of A i A_i A i and A i ′ A'_i A i ′ into the “matched” and “unmatched” parts M i ⊔ U i = supp ( A i ) M_i \sqcup U_i = \operatorname{supp}(A_i) M i ⊔ U i = supp ( A i ) and M i ′ ⊔ U i ′ = supp ( A i ′ ) M'_i \sqcup U'_i = \operatorname{supp}(A'_i) M i ′ ⊔ U i ′ = supp ( A i ′ ) .
An h h h -length flow F = ∑ i ∈ [ k ] F i F = \sum_{i\in[k]} F_i F = ∑ i ∈ [ k ] F i satisfying the following: for each i i i , F i F_i F i is a flow from M i M_i M i to M i ′ M'_i M i ′ such that the total flow value of flow paths in F i F_i F i from any vertex v ∈ M i v \in M_i v ∈ M i equals A i ( v ) A_i(v) A i ( v ) , and the total flow value of flow paths in F i F_i F i to any vertex v ′ ∈ M i ′ v' \in M'_i v ′ ∈ M i ′ equals A i ′ ( v ) A'_i(v) A i ′ ( v ) . Moreover, F F F has vertex congestion
γ = O ~ ( 1 / ϕ ) . \gamma= \widetilde{O}(1/\phi). γ = O ( 1/ ϕ ) . An h h h -length vertex moving cut C C C in G G G , such that dist G − C ( U i , U i ′ ) ≥ h \operatorname{dist}_{G-C}(U_i,U'_i) \ge h dist G − C ( U i , U i ′ ) ≥ h for all i ∈ [ k ] i \in[k] i ∈ [ k ] , and the size of C C C is at most
∣ C ∣ ≤ ϕ ⋅ ( ∑ i ∈ [ k ] ∣ A i ∣ − ∣ F i ∣ ) . |C| \le\phi\cdot\left(\sum_{i\in[k]} |A_i| - |F_i|\right). ∣ C ∣ ≤ ϕ ⋅ i ∈ [ k ] ∑ ∣ A i ∣ − ∣ F i ∣ . The algorithm runs in O ~ ( m ⋅ k ⋅ h 17 ) \widetilde{O}(m \cdot k \cdot h^{17}) O ( m ⋅ k ⋅ h 17 ) time and it is deterministic.
Lastly, providing these three building blocks, the decomposition algorithm is simply as follows. First it computes the LDD demand D A D_A D A for A A A on the current graph. Second, it tries to route D A D_A D A using Theorem A.2 . If the returned cut is empty, meaning that D A D_A D A can be routed with low congestion and length successfully, we are done. Otherwise, add the cut to the decomposition, apply the cut to the current graph, and repeat. See [HLRS26] for a detailed statement.
Proof of lemma:ExpanderRouting
We want to apply Theorem A.2 . First, we turn the demand D D D into a collection of equal-size node weighting pairs: for each ( u , v ) ∈ supp ( D ) (u,v) \in\operatorname{supp}(D) ( u , v ) ∈ supp ( D ) , create node weighting pair { A i , A i ′ } \{A_i,A'_i\} { A i , A i ′ } where A i A_i A i only assigns non-zero weight A i ( u ) = D ( u , v ) A_i(u) = D(u,v) A i ( u ) = D ( u , v ) at vertex u u u and A i ′ A'_i A i ′ only assigns non-zero weight A i ( v ) = D ( u , v ) A_i(v) = D(u,v) A i ( v ) = D ( u , v ) at vertex v v v .
Now, we apply Theorem A.2 on the node weighting pairs, with length parameter h s hs h s , sparsity parameter remaining ϕ \phi ϕ . Note that the all “unmatched” parts { U i , U i ′ } i ∈ [ k ] \{U_i,U'_i\}_{i\in[k]} { U i , U i ′ } i ∈ [ k ] must be empty, since otherwise we obtain an ( h s ) (hs) ( h s ) -length vertex moving cut which is ϕ \phi ϕ -sparse (witnessed by the unmatched parts). Therefore, the ( h s ) (hs) ( h s ) -length flow between the matched parts with vertex congestion γ = O ~ ( 1 / ϕ ) \gamma= \widetilde{O}(1/\phi) γ = O ( 1/ ϕ ) is exactly what we want.