Manuscript Offprint
arXiv:2610.29624Tight Space Bounds for Pivot-Based Distance Oracles in Sparse Graphs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
A Tight Space Lower Bound for Pivot-Based Distance Oracles
Avi Kadria
Liam Roditty
Abstract
An approximate distance oracle (ADO) is a compact data structure that answers distance queries within a multiplicative stretch . The classical oracle of Thorup and Zwick [STOC'01, JACM'05] has stretch and uses space, for every integer , and this trade-off is optimal for dense graphs under the Erdős girth conjecture. However, for sparse graphs ( ), their lower bound yields nothing beyond space.
A pivot-based 1-hop ADO gives every vertex pivots and returns as an estimate the length of a walk of the form , where is a pivot of , is a pivot of , and is a stored distance. We observe that all the state-of-the-art ADOs with query time are in fact pivot-based 1-hop ADOs.
Our main result is that, under the Erdős girth conjecture for graphs with constant degree, there are sparse graphs on which every pivot-based 1-hop ADO with stretch requires space, for every real . This lower bound matches the best known upper bounds with query time at every stretch where the trade-off is attained, up to polylogarithmic factors.
We also extend our lower bound to pivot-based ADOs with any constant number of hops, showing that they require space. In addition, we obtain a tight lower bound for two-hop hopsets. Under the Erdős girth conjecture, for every integer , -hopsets on sparse graphs require size , which matches a construction based on the oracles of [Kadria and Roditty, ISAAC'25]. Moreover, using the recent explicit construction of high-girth constant-degree graphs by Double Agent [doubleAI'26], we obtain unconditional versions of our 1-hop and -hop lower bounds, with the exponent above 1 multiplied by 4/5.
*Department of Computer Science, Bar-Ilan University, Ramat Gan 5290002, Israel. E-mail: avi.kadria3@gmail.com.
Department of Computer Science, Bar-Ilan University, Ramat Gan 5290002, Israel. E-mail: liam.roditty@biu.ac.il.
The central goal in the study of distance oracles is to understand the trade-off between stretch, space, and query time. Simply storing the graph takes space, but answering a query by a shortest-path search may require time in the worst case, and ADO research focuses on answering queries much faster. We focus on ADOs with query time for general sparse graphs , and study the trade-off between their stretch and space.
The seminal oracle of Thorup and Zwick [TZ05] achieves stretch , space , and query time , for every integer . They also prove a matching lower bound for dense graphs, assuming the Erdős girth conjecture. However, in terms of , their lower bound yields only , leaving open whether sparse graphs admit substantially smaller oracles with query time.
For sparse graphs, the best known ADOs with query time attain the following stretch-space trade-off for various stretches:
This includes the Thorup–Zwick oracle [TZ05] for odd integer stretches, the oracle of Pătrașcu and Roditty [PR14] for stretch 2, and the oracles of Pătrașcu, Roditty, and Thorup [PRT12] for every even integer stretch and infinitely many fractional stretches. We refer to this trade-off as the stretch-space curve. Whether this curve is optimal for ADOs with query time on sparse graphs is a central open question. To approach it, we look at how the oracles on the curve work.
These oracles, and in fact all the best known ADOs with query time, share a common structure: each vertex has fixed pivots, and upon a query, the oracle returns the length of a walk , where is a pivot of and is a pivot of . We call and pivot jumps, and a hop.
We call such oracles pivot-based 1-hop ADOs. (See Figure 1(a) for an illustration, Definition 2 for the formal definition, and Section A and Table 3 for details on how the known oracles fit this model.) The shared structure of these constructions leads to a natural question:
Question 1. Is the stretch-space curve optimal for pivot-based 1-hop ADOs?
Assuming the Erdős girth conjecture for constant-degree graphs (Conjecture 1), we answer this question in the affirmative: every pivot-based 1-hop ADO with real stretch requires space, matching the stretch-space curve. Formally, we prove the following theorem, where is the maximum number of pivots per vertex.
The notation suppresses factors polylogarithmic in n.
The Erdős girth conjecture states that for every integer there are graphs with girth at least and edges.
This observation also applies to ADOs with efficient construction times [RTZ05, BS06, BK10, Wul12, KR26] and to those with faster query times [Wul13, Che14, Che15].
Notice that every pivot-based 1-hop ADO trivially yields an ADO with query time: a query simply looks up each of the pairs in a hash table of the stored hops and returns the minimum.
We measure space in words, assuming that vertex identifiers and stored distances fit in a word. In the pivot model, we count stored weighted edges, each requiring words.

(a) :

(b) :
Figure 1: The pivot model. (a) A walk of a p-pivot 1-hop ADO (Definition 2). (b) A walk with two hops of a p-pivot -hop ADO (Definition 3).
Theorem 1. Fix a real . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that, for every integer , every -pivot 1-hop -stretch ADO for requires space.
The lower bound holds even on constant-degree graphs. It depends only on the form of the returned estimates and holds regardless of query time. For the stretches attained by the known -query-time constructions [TZ05, PR14, PRT12], this matches their space up to polylogarithmic factors.
Using the graphs of [Dou26], we obtain an unconditional version of the same bound, with the exponent above 1 multiplied by 4/5, so the space remains polynomially superlinear for every fixed stretch. Our lower bound for more hops (Theorem 2) also assumes Conjecture 1 and admits an unconditional version using these graphs with the same change to the exponent. All the graphs in our lower bounds are unweighted, so the bounds hold even for unweighted graphs.
1.1 Beyond Polylogarithmic Query Time: More Hops
Allowing polynomial query time makes it possible to use space below the stretch-space curve [AGH11, KR25]. For example, on sparse graphs, the oracle of Agarwal [Aga14] has stretch , uses space, and has query time, for every integer and every . To capture the near-exact oracle of [Aga14], as well as the oracles of [AGH11, KR25], we extend the model to p-pivot -hop k-stretch ADOs, in which each returned estimate uses at most stored hops, together with pivot jumps at the endpoints and between consecutive hops.
Between consecutive hops, two pivots of the same vertex may be connected by two pivot jumps through , at a cost of . For example, a two-hop estimate can be obtained from the walk
where and are the two hops. The remaining steps are pivot jumps: they contribute to the length of the walk, but do not count as hops. See Definition 3 for a formal definition and Figure 1(b) for an illustration.
The oracles of Kadria and Roditty [KR25] in Table 3 use only two hops in this model. The same two-hop representation underlies the main estimates of the batch algorithms for n-pairs shortest paths of [KRV26, CHL25]. Agarwal's stretch- oracle [Aga14] admits a representation with two pivots per vertex and at most 2t hops.
Our next result gives a space lower bound for every fixed hopbound.
Theorem 2. Fix a real and an integer . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that, for every integer , every -pivot -hop -stretch ADO for requires space. For , the lower bound improves to .
For , the bound is : the exponent above 1 is times that of the one-hop bound, so the required space remains polynomially superlinear for every fixed and .
Two-hop pivot-based constructions achieve stretch using space for [AGH11] and [KR25]. Kadria and Roditty [KR25] ask whether this trade-off is achievable for every . Since Theorem 2 requires stretch at least with space for , a positive answer would match our lower bound for two-hop pivot-based ADOs up to an additive 1 in the stretch.
1.2 Hopsets and Approximate Hub Labelings
Setting gives the hopset model, since every vertex is a pivot of itself. A -hopset is a set of edges weighted by their exact distances in , such that every pair has a path in of at most edges and length at most times its distance (Definition 1). Its size, which we also refer to as its space, is . The edges of are not counted, so the size of a hopset and the space of the corresponding pivot-based ADO differ by at most .
Theorem 2 already implies that hopsets require polynomially more space than the input graph, even on constant-degree graphs, for every fixed stretch and hopbound. Using a different approach, we manage to obtain the following tight lower bound:
Theorem 3. Fix an integer . Under the Erdős girth conjecture, for arbitrarily large there are -vertex graphs with edges on which every -hopset has size
For every integer , the oracles of Kadria and Roditty [KR25] give -hopsets of size on sparse graphs (Section A), so this bound is tight. For a general hopbound, we obtain the following bound.
Theorem 4. Fix integers and . Under the Erdős girth conjecture, for arbitrarily large there are -vertex graphs with edges on which every -hopset has size
For , this is Theorem 3. Whether it is also tight for is open (see Problem 1).
Given an n-vertex graph G and n vertex pairs , , the n-pairs shortest paths problem asks for the distances for all i.
| Reference | Size | Stretch | Hopbound | Conjecture | Comment |
|---|---|---|---|---|---|
| [KUV19] | None | ||||
| [NS22] | None | ||||
| This work | Erdős girth | Also for every . Tight | |||
| This work | Erdős girth | Also for every | |||
| [KR25] | None | Upper bound (Section A) |
Table 1: Size bounds for hopsets with stretch and hopbound . All rows except the last are lower bounds, and is an integer. Unless stated otherwise, the bounds hold for graphs with .
In a hub labeling, each vertex stores distances to selected hubs, and a query is answered through a hub common to the labels of its endpoints. Stretch- hub labelings correspond to -hopsets, up to constant factors and an additive term in total size (see Section 7). Hence, by Theorem 3, for every integer , every stretch- hub labeling of the graphs of that theorem has total label size . Table 1 compares the hopset bounds with previous results.
1.3 Related Work
Known lower bounds for distance oracles. Sommer, Verbin, and Yu [SVY09] prove a cell-probe space lower bound of for stretch and query time . It applies to arbitrary representations, but it is far from matching the known upper bounds, and it does not rule out even linear space and logarithmic query time.
Under the set-intersection hypotheses, Pătrașcu and Roditty [PR14] and Pătrașcu, Roditty, and Thorup [PRT12] give space lower bounds for ADOs with constant query time and stretches below 3 (see Table 2). The lower bound of Pătrașcu, Roditty, and Thorup [PRT12] is , the same as ours, but only for specific stretches below 3, namely for an integer , whereas our lower bound holds for every real . Moreover, their lower bounds assume the set-intersection hypotheses and apply only to oracles with query time, whereas ours holds for every pivot-based ADO, regardless of its query time.
Hopsets and labels. Earlier lower bounds address exact and near-exact distances, both for hopsets [ABP18, KP22] and for hub labelings and distance labelings [KUV19, GPPR04].
For arbitrary stretch, Neiman and Shabat [NS22, Theorem 5] show that a hopset of size must satisfy . For fixed stretch and hopbound, their counting argument gives only an lower bound on the number of added edges in their hard graphs. In contrast, our lower bounds are polynomially superlinear in , even on constant-degree graphs. Even in terms of , our lower bounds are stronger. For example, for stretch 3 and hopbound 2, their bound is , while ours is conditionally (Theorem 3) and unconditionally (Lemma 8 on the graphs of Lemma 5).
Kopelowitz, Korin, and Roditty [KKR24] show that stretch requires space even on graphs of polylogarithmic maximum degree, allowing any constant additive error.
| Reference | Space LB | Stretch | Query time | Conjecture | Comment |
|---|---|---|---|---|---|
| [TZ05] | Any | Erdős girth | |||
| This work | Any | Erdős girth* | -pivot 1-hop ADO | ||
| This work | Any | Erdős girth* | -pivot 2-hop ADO | ||
| This work | Any | Erdős girth* | -pivot -hop ADO | ||
| [SVY09] | None | Cell-probe model, | |||
| [PR14] | Set-intersection | ||||
| [PRT12] | Set-intersection |
Table 2: Space lower bounds for approximate distance oracles for various stretches. Unless stated otherwise, the bound holds for graphs with . The ‘*” denotes the conjecture for constant-degree graphs (Conjecture 1). The and notations omit polylogarithmic factors.
Preprocessing and query-time lower bounds. Abboud, Bringmann, Khoury, and Zamir [ABKZ22], Abboud, Bringmann, and Fischer [ABF23], and Jin and Xu [JX23] establish trade-offs between preprocessing time and query time for sparse-graph distance oracles under fine-grained hypotheses. These time bounds apply to arbitrary data structures and complement our space bounds for pivot-based representations.
Organization. Sections 2 and 3 give the preliminaries and proof overview. Section 4 develops robust hopset lower bounds on constant-degree graphs, starting with an exact two-hop warmup. Section 5 extends these arguments to pivot-based ADOs, first for one hop and then for general hopbound. Section 6 gives stronger hopset lower bounds using a different graph construction. Section 7 discusses applications, girth assumptions, and open questions. Section A explains how known oracles fit the pivot-based ADO model.
2 Preliminaries
Let be an undirected, unweighted graph on vertices and edges. We denote by the shortest-path distance between and in . We denote by a fixed shortest path between and , chosen so that is the reverse of (for example, break ties lexicographically, reading the path from the endpoint with the smaller identifier). We write if is a vertex of . The length of the path is its number of edges, so .
For and , we denote by the ball around with radius , i.e., . The girth is the length of a shortest cycle in . For a set , we denote by the subgraph of induced by , i.e., the graph whose vertex set is and whose edge set consists of all the edges of with both endpoints in .
We now define hopsets.
Definition 1 ((k, β)-hopset). Let be an integer, and let be a real number. -hopset for is a set of edges on , where each edge has weight , such that for all
where is the minimum weight of a path between and in that uses at most edges. The empty path gives . The size of the hopset is .
Next, we define the hop graph of , where and for every , and we write . We call the edges of hops. Since hop weights never underestimate distances, the triangle inequality gives
Our proofs use only these inequalities and the fact that for every hop, so they also apply to ADOs that store overestimates of the distances rather than exact distances.
Our proofs give a lower bound on . Throughout the paper, we consider sparse graphs with edges. Since , every superlinear lower bound on is also a lower bound on the size of the hopset.
Hops are undirected. We write a hop as an ordered pair when the endpoint matters (as when charging pairs to hops in our proofs). Thus each unordered edge yields the two ordered hops and , and there are ordered hops in total.
2.1 High-Girth Graphs
The lower bounds of Sections 4 and 5 use -regular graphs whose girth is large. By the Moore bound, a -regular graph of girth on vertices satisfies . For constant this gives . We need graphs whose girth almost matches this bound. We assume the following conjecture.
Conjecture 1 (Erdős girth conjecture for constant-degree graphs [EJ13]). There are constants and such that for infinitely many n some d-regular graph on n vertices has girth .
Unconditionally, Erdős and Sachs [ES63] proved that -regular graphs of girth exist for every , and the Ramanujan graphs of Lubotzky, Phillips, and Sarnak [LPS88] achieve girth . The best construction to date is due to Double Agent [Dou26] and gets four fifths of the way to the Moore bound:
Lemma 5 (Explicit high-girth graphs [Dou26]). Let for a prime power . There is a constant such that for arbitrarily large there is an explicit -regular graph on vertices with girth .
The lower bounds of Sections 4 and 5 are stated under Conjecture 1. Running the same proofs on the graphs of Lemma 5 instead yields unconditional lower bounds, with the exponent above 1 multiplied by .
On any such d-regular high-girth graph, our arguments rely on one simple structural property: every ball of radius up to roughly half the girth is a tree. Consequently, shortest paths are locally unique, and the number of vertices at each distance depends only on the degree.
For example, the ADO of Baswana and Kavitha [BK10].
Lemma 6 (Local tree structure). Let be a -regular graph of girth , let , let , and let . Then induces a tree. Consequently, if , then is the unique shortest path from to , and the number of vertices at distance exactly from is for (and 1 for ). Moreover, for vertices and an integer with , the number of vertices with and (the vertices at distance from in the subtree hanging off away from ) is .
Proof. Let be a BFS tree of the subgraph induced by , rooted at . Suppose that there is an edge of that does not belong to . Then this edge, together with the paths from to and from to in , contains a cycle of length at most
contradicting the assumption that has girth . Hence is a tree, and therefore every shortest path of length at most is unique.
Next, in this tree the root has children, while every other vertex at depth less than has exactly children, since one incident edge leads to its parent. Thus, for every , the number of vertices at distance exactly from is .
For the last part, apply the above with root . A vertex with and satisfies , so it is a descendant of at depth below in the tree , and conversely. Since , the vertex and each of its descendants at depth less than have exactly children, so there are exactly such vertices.
3 Technical Overview
The proofs of all our lower bounds follow a common charging framework on high-girth graphs with edges. We fix a distance with , where is the girth of the graph, and consider a family of vertex pairs at distance exactly . Then, for such a pair , a path that approximates its distance has length at most , and together with the shortest path , whose length is , it is too short to contain a cycle. Hence the approximating path must walk along . This is the one idea behind all of our proofs.
Each such pair is charged to one hop of a path with at most hops that approximates its distance. We then prove an upper bound on the number of pairs that can be charged to any fixed hop. Dividing the number of pairs by this bound gives a lower bound on the number of hops, that is, on . Since on these graphs, bounds in terms of and of are equivalent. In Sections 4 and 5, we count in terms of .
Our main result concerns pivot-based ADOs, but we build up to it through hopsets, the special case in which the only pivot of a vertex is the vertex itself.
We start with the exact case, , in Section 4.1, and illustrate the charging argument in its simplest form. Here the condition allows . Consider a pair with , and let its distance be realized by two hops through a vertex . Since the path is exact and hop weights never underestimate distances, we have . Thus lies on the shortest path , which is unique since .
Assume, without loss of generality, that . Then , and we charge the pair to the ordered hop . Since , every pair charged to must have its second endpoint at distance exactly from , in the subtree hanging off away from . By the local tree structure of Lemma 6, there are at most such choices for . On the other hand, there are pairs at distance . Therefore:
where the last equality uses .
In Section 4.2, we prove a lower bound for -hopsets on constant-degree graphs. The charging framework is the same as in the exact case, but allowing stretch introduces a new difficulty: the intermediate vertex is not necessarily on the shortest path . As before, if the pair is approximated using the hops and , and , then we charge the pair to the ordered hop .
The main point is to show that this hop is still charged by only a few pairs. Let be the midpoint of the shortest path, so that .
We prove that, even when is not on , the high girth of the graph forces to be on whenever . Indeed, the paths , , and have fewer than edges together, so their union is a tree. In this tree, branching toward before would make farther from than from , contradicting the choice of hop. See Figure 3(a). Thus, for a fixed hop , the midpoint is fixed. Every vertex whose pair charges must then lie at distance exactly from this fixed vertex , in the subtree hanging off away from , since . By Lemma 6, there are at most such choices for . Since there are pairs at distance , we obtain
where the last equality uses . This is the same counting as in the warmup. The only difference is that stretch forces a smaller , namely instead of , and this is where the exponent comes from.
In Section 4.3, we extend the argument to -hopsets. When , the charged hop may be incident to neither u nor v, so fixing it no longer fixes either query endpoint. Moreover, the hop no longer determines the midpoint of , so the midpoint cannot anchor the counting as in the two-hop case.
The key is that the hops together must trace all of , so one hop covers a contiguous segment of length at least . We select a segment of edges, called a window, and charge the pair to the hop together with this window. See Figure 4. Fixing the window and its position in limits the choices for both endpoints: only the edges outside the window remain free, leaving at most pairs. For a fixed hop, there are only polylogarithmically many choices of the window and its position. Comparing with the pairs at distance gives:
where .
Next, in Section 5.1, we prove the main theorem, a lower bound for pivot-based ADOs in sparse
We choose c to be even, so that c/2 is an integer.
graphs that matches the stretch-space curve. Recall that a pivot-based 1-hop ADO estimates by a walk , which makes a pivot jump from to one of its pivots , takes a single hop , and makes a pivot jump from a pivot of to (see Definition 2 and Figure 1). As in Section 4.3, this walk traces , and we charge the pair to its single hop . The pivot jumps are not counted as hops, but each vertex has only of them, and a pivot of lets the walk skip a long prefix of only if follows that prefix. We say that a pivot of is aligned with if follows the first edges of , where is chosen such that . By the tree structure, a single pivot of is aligned with at most a fraction of the vertices . Summing over the at most pivots of and of , fewer than half of the pairs have an aligned pivot, so we can discard these pairs and still keep at least half of the pairs.
For every remaining pair, the hop covers all of except for fewer than edges at each end. See Figure 5. Hence the hop determines the middle part of up to its possible positions on , and then there are at most choices for each of and . Thus a hop is charged by pairs, and therefore:
where we use . The difference from the two-hop argument is that the single hop covers almost all of , and not only half of it. Hence, for , a hop is charged by only polylogarithmically many pairs, which gives a lower bound that matches the stretch-space curve.
In Section 5.2, we extend the result to p-pivot -hop ADOs by adapting the window argument to pivots. A walk now makes up to pivot jumps (see Definition 3). The jumps at intermediate vertices may start anywhere in the graph, so discarding pairs with an aligned endpoint pivot no longer suffices.
To handle these jumps, we again use the window argument: fixing a long segment shared by a pivot jump and limits the choices for both u and v. The pivot jumps are part of the oracle and do not depend on the query, so there are at most np of them in the entire graph. Hence we can choose a threshold such that the pairs for which some pivot jump shares at least r edges with are only a small fraction of all pairs. We discard these pairs, along with those with aligned endpoint pivots. For every remaining pair, the pivot jumps cover only short portions of , leaving the rest to the at most hops. Thus some hop covers a window of length , and we charge the pair to this hop and window as before. This gives
where is now smaller than because of the portions covered by pivot jumps, and this contributes the factors and in the denominator. For , every hop touches a pivot of or of , so its window starts within edges of that endpoint, and this improves the logarithmic factors to .
Finally, in Section 6, we prove hopset lower bounds that are stronger than those of Section 4, on sparse graphs that are not of constant degree. Under the Erdős girth conjecture, for fixed integers and , there are such graphs on which every -hopset with has size . For , the stretch is , and the bound is tight, since the stretch- oracle of Kadria and Roditty [KR25] yields a -hopset of size (Section A).
The construction starts from a dense base graph with vertices, edges, and girth at least , whose degrees are all for . We replace every base edge by a path of constant length , and attach private leaves to every base vertex (see Figure 7). The resulting graph is sparse, with , and its girth is at least . Let . For every path of base edges, the demands are the pairs of a leaf of and a leaf of (see Figure 9). The natural exact route uses hops, one more than allowed. There are such demands, each at distance .
The stretch enters through the girth, as in Section 4. Since , for a large enough constant we have , so the hops of an answer to a demand trace , and together they cover its subdivided base edges. There are at most hops. If the first or the last hop enters a base edge, then it fixes its leaf and the base edge next to it, leaving choices for the other base vertices and the other leaf. Otherwise, the at most internal hops cover the base edges, so one of them passes through a junction and fixes the two base edges around it, even if it traverses only part of each (see Figure 10). This leaves choices for the other base vertices and the two leaves. Hence every hop is charged by demands. Dividing the number of demands by this bound gives
where the last step uses and , which follows from .
Unlike the arguments above, this construction does not extend to pivot-based ADOs. If every leaf has its parent as a pivot, then all the selected demands have exact answers with hops, using only linear space (Remark 2).
4 Robust Hopset Lower Bounds
In this section, we develop our charging framework on hopsets, the special case of pivot-based ADOs in which the only pivot of a vertex is the vertex itself. The resulting lower bounds hold on high-girth constant-degree graphs, and they are not the strongest hopset lower bounds we know. Section 6 gives stronger ones, on sparse graphs that are not of constant degree. We present the framework on hopsets because there it is simplest, and because it is robust to pivot jumps. In Section 5, we extend it to pivot-based ADOs by discarding the few pairs for which a pivot jump covers a long segment of the demand path. We start with exact two-hop hopsets, then allow stretch, and then extend the argument to general hopbound.
4.1 Warmup: Exact Two-Hop Hopsets
We begin with the exact case, namely . The resulting lower bound is not new and is in fact far weaker than the near-quadratic lower bound of Kosowski, Uznański, and Viennot [KUV19] for exact hub labelings on sparse graphs. We include it because its short proof is the skeleton of all our later proofs, starting with the proof of Lemma 8.

There are at most choices for at the fixed depth .
Figure 2: The charging argument of Lemma 7: at most pairs can charge the hop .
Lemma 7 (Exact 2-hopsets). Under the Erdős girth conjecture for constant-degree graphs (Conjecture 1), for arbitrarily large n there are constant-degree n-vertex graphs G with edges such that every -hopset for G, i.e., every exact 2-hopset, requires space.
Proof. Let be the graph guaranteed by Conjecture 1. Thus has constant degree , girth , and edges. Let . Note that:
Let be a -hopset for , and let be its hop graph. We show that , which implies .
The proof contains three steps, which are also the steps of all our later proofs. First, for a pair at distance c, we locate the path that realizes its distance estimate, relative to , and charge the pair to one of its hops. Second, we bound the number of pairs that charge a single hop. Third, we count the pairs and divide by this bound.
Let be a pair with . Consider a path with at most two hops in that realizes , and let be the intermediate vertex (if this path consists of the single hop , set ). First, we show that is on the shortest path , and charge the pair to a hop. Since hop weights never underestimate distances, and since is a -hopset, we have . By the triangle inequality, we get that . Hence lies on a shortest path between and . Since , by Lemma 6 this path is . Assume w.l.o.g. that . Since , we have . We charge the pair to the ordered hop .
Second, we show that each ordered hop is charged by at most pairs. Fix an ordered hop with , and let be a vertex such that charges it. Then, since , , and , we have that . See Figure 2 for an illustration. Since , , and , by Lemma 6 there are at most choices for (the vertices at distance from in the subtree hanging off away from ).
Third, since , by Lemma 6 there are pairs at distance , each pair charged to one of hops (two directions per hop). Since each hop is charged at most times, we get:
as required.
4.2 Two Hops with Stretch
In this subsection, we prove Lemma 8: on high-girth constant-degree graphs, every -hopset requires space. The same exponent also holds for two-hop pivot-based ADOs (Theorem 2). Notice that unlike in the warmup, since stretch is allowed, we can no longer use the fact that lies on the shortest path between and . Instead, we show that the longer of the two hops still “goes through” the midpoint of . We show that if , then lies on (Claim 8.1), and use this fact to prove our lower bound.
Lemma 8. Fix a real . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that every -hopset for requires space.
Proof. Let be the graph guaranteed by Conjecture 1. Thus has constant degree , girth , and edges. Set and . Then, for large enough, is an even positive integer and . Consequently, . Hence, by Lemma 6, balls of radius at most induce trees, and shortest paths between vertices at distance at most are unique. Note that:
Let be a -hopset for , and let be its hop graph. We show that , which implies .
The proof contains the same three steps as the proof of Lemma 7, and only the first two change. The vertex may now be outside , so in the first step we only bound , and in the second step we use the midpoint of . Let be a pair with . Consider a path with at most two hops in that realizes , and let be the intermediate vertex (if this path consists of the single hop , set ). Assume w.l.o.g. that . First, we show that . Since hop weights never underestimate distances, we have . By the triangle inequality, , and we get that . For the upper bound, the triangle inequality gives . Together with , we get that , i.e., . Since distances are integers, . Thus, is a hop with , and we charge the pair to it.
Second, we bound the number of pairs that charge a single hop.
Claim 8.1. Each hop such that is charged at most times.

: contradiction
(a) Proving

(b) counting the charged pairs
Figure 3: The two parts of the charging argument in Claim 8.1. (a) If , the two shortest paths trace , so , a contradiction. (b) Hence is fixed by the hop, leaving at most choices for .
Proof. Let be a vertex such that the pair charges the hop . Thus , , and . Since is even, has a midpoint , i.e., the vertex with . The proof contains two steps.
First, we show that . See Figure 3(a). Assume for the sake of contradiction that . Both and start at and, since and , lie in the ball , which induces a tree by Lemma 6. Hence they share a common prefix, whose last vertex we denote by . As , we have , so . Since , we also have .
Because lies on both and , the walk has length . We claim that this walk is a shortest path. Suppose otherwise, i.e., . Then the walk together with a shortest path contains a cycle, so
Since , this gives , contradicting . Hence , and since ,
contradicting . Therefore .
Second, we bound the number of vertices that charge . See Figure 3(b). Since , the path has a unique vertex at distance from . By the first step this vertex is , which is therefore the same for every that charges . Each such satisfies and , so by Lemma 6 (applied with ) it is one of the vertices at distance from in the subtree hanging off away from . Hence is charged at most times, as required.
Third, since , by Lemma 6 there are pairs at distance , each pair charged to one of at most hops (two directions per hop). Since each hop is charged at most hop : covers edges of

Figure 4: The charging argument of Lemma 9 (Claim 9.3): at most pairs can be charged to the hop through the window .
times (Claim 8.1), we get:
as required.
4.3 General Hopbound
In this subsection, we prove Lemma 9, which generalizes Lemma 8 to every , at the cost of a factor. Its window argument is the one we adapt to pivot jumps in Section 5. Notice that unlike in the case , a path with hops may contain hops that are not incident to u or to v, so we can no longer charge a pair to a hop that starts at one of its endpoints. Instead, we show that the path traces , and hence one of its hops covers at least consecutive edges of . We charge the pair to this hop together with a window, which is a subpath of with edges, taken with a direction that tells which of its ends is closer to u.
Lemma 9. Fix a real and an integer . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that every -hopset for requires space.
Proof. Let be the graph guaranteed by Conjecture 1. Thus has constant degree , girth , and edges. Set and . Then, for large enough, , , and . In particular, , so by Lemma 6 balls of radius at most induce trees, and shortest paths between vertices at distance at most are unique. Note that:
Let be a -hopset for , and let be its hop graph. We show that , which implies .
The proof contains the same three steps as the previous proofs. In the first step we show that the hops trace , and charge the pair to a hop together with a window. In the second step we bound the number of windows of a hop, and the number of pairs charged to it through each window. Let be a pair with . Let , with , be the hops of a path realizing , and denote by the walk from to obtained by concatenating the shortest paths of these hops. Since hop weights never underestimate distances, this walk has at most edges. First, we show that the walk traces , that is, it covers every edge of .
Claim 9.1.
Proof. The edge set has at most edges. Hence it contains no cycle, so it forms a tree . In a tree there is a unique simple path, and is a simple path contained in , so it is that unique path. Finally, every walk in a tree traverses every edge of the unique simple path. Since is a walk from to inside , it traverses every edge of . Thus , as required.
By Claim 9.1, the shortest paths of the hops together cover all edges of . Moreover, the edges of covered by the shortest path of a single hop form a contiguous segment of , since and the shortest path of the hop are both simple paths in the tree of Claim 9.1, and the intersection of two paths in a tree is a path. As , some hop covers a contiguous segment of of length at least . Note that , since the walk has at most edges. Let be the first edges of that segment, ordered from , so that and . We charge the pair to the hop through the window .
Second, we bound the number of pairs that can charge a single hop, in two parts: a hop is charged through only a few windows, and through each window it is charged by only a few pairs. We first bound the windows.
Claim 9.2. Each hop with is charged through at most distinct windows .
Proof. A window charged to is a subpath with edges of the shortest path , whose length is . Such a subpath of a fixed path of length at most is determined by its starting offset and its direction, giving at most choices.
Next, we bound the number of pairs that are charged to a hop through a fixed window.
Claim 9.3. Every hop is charged through every window by at most pairs.
Proof. Let and be the first and the last vertices of , so and . Since is fixed, so are and . If is charged to through , then , and with .
Since , by Lemma 6, there are at most choices for (the vertices at distance from in the subtree hanging off away from ). Symmetrically, there are at most choices for . As , for each fixed value of the number of charging pairs is at most
Since ranges over , the total is at most , as required. See Figure 4 for an illustration.
Third, since , by Lemma 6 there are pairs at distance , each charged to one of the hops through one of at most windows (Claim 9.2), and each hop is charged through each window by at most pairs (Claim 9.3). Since , both and are , so we get:
as required.
5 Lower Bounds for Pivot-Based ADOs
We now extend the charging arguments of Section 4 to pivot-based ADOs. We first prove a tight lower bound for one hop, and then generalize it to any hopbound.
5.1 One Hop
In this subsection, we prove the main result of the paper, a tight lower bound for pivot-based 1-hop ADOs. A pivot-based 1-hop ADO estimates by the weight of a walk , where is a pivot of , is a pivot of , and is a stored hop. See Figure 1(a). The steps and are pivot jumps: they do not count as hops, but their stored distances count toward the space. Formally:
Definition 2 (p-pivot 1-hop k-stretch ADO). Let be an integer, and let . A p-pivot 1-hop k-stretch ADO for consists of a weighted undirected graph with for every , and a fixed set of at most pivots for every vertex , such that and for every . We consider walks in from to of the form , where and (a step between two equal vertices is omitted). The first and the last steps of such a walk are its pivot jumps, and the middle

(a) an aligned pivot

(b) charging a non-aligned pair
Figure 5: The charging argument of Theorem 1. (a) An aligned pivot (Claim 1.1). (b) The hop covers Q (Claims 1.2 and 1.3).
step is its hop. Its weight is , where Define
For all , we require . The space of the oracle is .
Note that the oracle is not required to compute the minimum in (5.1). We only require that such a walk of weight at most exists. Hence, our lower bound holds no matter how the query algorithm searches for such a walk or how much time the search takes.
Theorem 1. Fix a real . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that, for every integer , every -pivot 1-hop -stretch ADO for requires space.
This model captures the constructions attaining the best known stretch-space trade-offs for general sparse graphs with query time (see Section A). For example, the Thorup–Zwick oracle [TZ05] with stretch is an -pivot 1-hop ADO that uses space. On sparse graphs with , Theorem 1, with and , shows that this is optimal within a factor of among such oracles.
Proof. Let be the graph guaranteed by Conjecture 1. Thus has constant degree , girth , and edges. Set and . Then . In particular , so , and by Lemma 6 shortest paths between vertices at distance at most are unique. Note that:
A pivot jump is charged the exact distance , although the stored weight may be larger. This only makes the lower bound stronger.
Let be a -pivot 1-hop -stretch ADO for . We show that . Since , this implies the theorem. The proof contains the same three steps as the previous proofs, preceded by a new preliminary step, which discards the pairs with an aligned pivot. The three steps are then carried out only for the remaining pairs. We may assume . Otherwise, (5.2) and (5.3) give , so the claimed bound is and follows from , since every vertex must be incident to an edge of .
In the preliminary step, we discard the few pairs for which a pivot shortcuts a long prefix (or suffix) of . Let be a pair with . We say that a pivot is aligned with if and share their first edges, and that the pair is non-aligned if no pivot of is aligned with and no pivot of is aligned with . See Figure 5(a).
Claim 1.1. There are at least non-aligned pairs.
Proof. By Lemma 6, there are pairs at distance . Fix a vertex and a pivot with , and let be the vertex of at distance from . If is aligned with , then and , so by Lemma 6 there are at most such vertices (the vertices at distance from in the subtree hanging off away from ). Summing over all choices of an endpoint and one of its at most pivots other than itself, and using (5.3), the number of pairs with an aligned pivot at either endpoint is at most
Hence at least pairs are non-aligned, as required.
First, we charge every non-aligned pair to a hop. Let be a non-aligned pair. By Definition 2, is realized by a walk in , where , , and either or . Since has stretch , we have that:
Hence the edge set has at most edges. Since has girth , contains no cycle, and since it is connected, it is a tree. Therefore, each of the four paths is the unique path in between its endpoints. In particular, and share a prefix and are disjoint after it. Let be the last vertex of this prefix, and define similarly for and . Since is non-aligned, and . Let be the vertices with and , and let be the subpath of between them. As , we have .
Claim 1.2. .
Proof. Since and , the vertex precedes , and follows on . By the choice of and , the subpath of from to meets only at , and the subpath of from to meets only at . These two subpaths are disjoint, as otherwise, together with the subpath of between and , they would close a cycle in . Hence the walk that goes from to , then along to , and then to , is a simple path in , and thus it is . This path contains , as required.
We charge the non-aligned pair to the hop . See Figure 5(b).
Second, we bound the number of non-aligned pairs that charge a single hop.
Claim 1.3. Each hop is charged by at most non-aligned pairs.
Proof. Fix the hop . We count the non-aligned pairs that charge it. We first bound the number of choices for and , and then, given and , the number of choices for and .
By Claim 1.2, , so and are two vertices of . By (5.4), has at most edges, so there are at most choices for , and given , at most two choices for (one in each direction along ).
Now fix and . Since and , by Lemma 6 there are at most choices for (the vertices at distance from in the subtree hanging off away from ). Symmetrically, there are at most choices for . Hence is charged at most
times, as required.
Third, by Claim 1.1, there are at least non-aligned pairs, each charged to one of the hops, and by Claim 1.3 each hop is charged at most times. Since , we get:
as required.
5.2 General Hopbound
We now define the -hop model of the introduction formally. Its design follows the known constructions with non-constant query time: for each of them, we distinguish the hops of an answer from its pivot jumps. For example, the main estimates of the n-PSP algorithms of [CHL25, KRV26] use walks of the form , for some vertex . The steps and are hops, while consists of two pivot jumps through and uses only the stored distances from to its pivots. We therefore count only two hops in this walk, and allow a walk to move between two pivots of the same vertex without spending a hop. Formally:
Definition 3 (p-pivot -hop k-stretch ADO). Let be an integer, and let , and be as in Definition 2. We consider walks in from to of the form
Definition 2 also allows a walk with , which has no hop. This case cannot occur here: by Claim 1.2, contains , which has at least one edge, so and .
for some , where , , and are two pivots of a vertex , for every (a pivot jump between two equal vertices is omitted). Writing and , the steps , for , are edges of (or , in which case the step has weight , as in Definition 2), and they are the hops of the walk. All the other steps are pivot jumps. The weight of the walk is
A walk with 0 hops has the form with , and its weight is . Define
For all , we require . The space of the oracle is .
Thus a walk jumps from to a pivot , and then alternates between hops and pivot jumps. Each hop except the last one ends at a pivot of some vertex , and the walk then makes two pivot jumps, from to and from to another pivot of , at a cost of (see Figure 1(b)). These jumps use the stored distances from to its pivots, and they are not counted as hops. A walk with hops makes at most pivot jumps: one at each endpoint, and two at each of the intermediate vertices. Hence, every walk with at most hops makes at most pivot jumps.
Since , a walk may also skip some of these jumps. Taking leaves only the jump from to its pivot , taking leaves only the jump from the pivot to , and taking leaves no jump at all. For , there are no intermediate vertices, and Definition 3 coincides with Definition 2 (the case of 0 hops corresponds to ).
Allowing intermediate jumps captures more oracles. With them, the Kadria–Roditty oracles [KR25] of Table 3 use only two hops, and so do the earlier ADOs with polynomial query time of [AGH11, DJVW22] (see Section A) and the main estimates of the n-PSP algorithms of [KRV26, CHL25]. Hence our lower bound with applies to these two-hop representations. Including the exceptional distance-3 routine of [KRV26] gives a three-hop representation, to which the bound with applies.
Theorem 2. Fix a real and an integer . Under Conjecture 1, for arbitrarily large there are constant-degree -vertex graphs with edges such that, for every integer , every -pivot -hop -stretch ADO for requires space. For , the lower bound improves to .
For , Theorem 1 gives a stronger bound, and for , Theorem 2 recovers Lemma 9 up to polylogarithmic factors.
The proof follows that of Lemma 9. We discard the few pairs for which some pivot jump covers a long segment of . Since there are at most pivot jumps, few pairs are discarded. For every remaining pair, the at most pivot jumps of the walk cover only a few edges of , so one of its at most hops covers almost a fraction of , and we charge the pair to that hop together with a window, as in the proof of Lemma 9. A pivot jump at an intermediate vertex covers fewer than edges of , and, as in the proof of Theorem 1, a charged hop : covers edges of

Figure 6: The charging argument of Theorem 2 with : the hop covers a window of edges of .
pivot jump at an endpoint covers fewer than edges. For , every hop touches a pivot of a query endpoint, so its window starts close to that endpoint, and this saves another logarithmic factor.
Proof. Let be the graph guaranteed by Conjecture 1. Thus has constant degree , girth , and edges. Set , , , , and . Then . In particular , so , and by Lemma 6 shortest paths between vertices at distance at most are unique. Note that:
where the bound on holds since by (5.5). Let be a p-pivot -hop k-stretch ADO for . We show that , and that for , . Since , this implies the theorem. We may assume . Otherwise , and (5.5), (5.6), and (5.7) give
The general bound, and the improved bound when , are then and follow from .
The proof contains the same preliminary step and three steps as the proof of Theorem 1. In the preliminary step, we discard the few pairs for which a single pivot jump covers a long segment of . We denote the pivot jump between a vertex and one of its pivots by
. There are at most pivot jumps. Let be a pair with . We say that a pivot is aligned with if and share their first edges. We say that the pair is bad if there is a pivot jump with such that and share at least edges, or if a pivot of is aligned with , or a pivot of is aligned with . Otherwise, the pair is good. Note that for a pivot jump with , the edge set has at most edges, and thus contains no cycle, so the edges shared by the two paths form a contiguous segment of both.
Claim 2.1. There are at least good pairs.
Proof. By Lemma 6, there are pairs at distance . Fix a pivot jump with . We bound the number of pairs at distance for which and share at least edges. If , there are no such pairs. Otherwise, the first shared edges of any such pair, ordered from , form a window: a subpath of with edges, together with a direction. Since has at most edges, a window is determined by its starting offset and its direction, so has at most windows. Fix a window, and let and be its first and last vertices. If it is contained in , in this direction, then and . By Lemma 6, for each value of there are at most choices for and at most choices for . Since ranges over , each window is contained in , in this direction, for at most pairs . Since there are at most pivot jumps, by (5.7) the number of such pairs is at most
Moreover, fix a vertex and a pivot with , and let be the vertex of at distance from . If is aligned with , then and , so by Lemma 6 there are at most such vertices . Summing over all choices of an endpoint and one of its at most pivots other than itself, and using (5.6), the number of pairs with an aligned pivot at either endpoint is at most
Thus fewer than pairs are bad, and at least pairs are good, as required.
First, we charge every good pair to a hop. Let be a good pair. By Definition 3, is realized by a walk with at most hops, and hence with at most pivot jumps. Since hop weights never underestimate distances, and every pivot jump contributes its exact distance to the weight of the walk, we have that:
Replacing every step of this walk by the shortest path in G, in order, gives a walk
W in G from u to v. By (5.9), W has at most kc edges, so the edge set has at most edges. Hence T contains no cycle, and since it is connected, it is a tree. Thus is the unique simple u-v path in T, and the walk W from u to v in T traverses every edge of it. That is, , and the walk covers all c edges of . Moreover, the shortest path of each step is a path in T, so the edges of that it covers form a contiguous (possibly empty) segment of .
By (5.9), every pivot jump of the walk has , and since is good, it covers at most edges of . The two pivot jumps at the endpoints cover even fewer edges: and are paths of the tree that start at , so they share a prefix and are disjoint after it, and since is not aligned with , this prefix has at most edges. The same holds for the jump at . Hence the pivot jumps of the walk cover at most edges of in total.
The hops of the walk cover the remaining edges of , of which there are at least . As , this number is positive, so the walk has at least one hop. Since it has at most hops, some hop covers a contiguous segment of of length at least , and hence, as this length is an integer, at least . Since , this hop is not a degenerate step, so . If , then every hop of the walk has an endpoint that is the pivot or the pivot used by the walk. In this case, we orient the hop so that . If , then , and we swap the names of and , and of and . This is possible since the pair is unordered and the definition of a good pair is symmetric in and . Hence, for , we have from now on. We fix this orientation before choosing the window , which is ordered from .
Let be the first edges of that segment, ordered from , so that and . We charge the good pair to the hop through the window . See Figure 6, which shows a walk with pivot jumps only at the endpoints.
Second, we bound the number of good pairs that charge a single hop through a single window.
Claim 2.2. Each hop is charged through at most windows , and through each window it is charged by at most good pairs. Moreover, if , then each hop is charged through each window by at most good pairs.
Proof. By (5.9), every charged hop has , and a window charged to it is a subpath of with edges, together with a direction. Such a window is determined by its starting offset and its direction, which gives at most windows.
For the second part, fix the hop and the window , and let and be the first and the last vertices of . If a good pair is charged to through , then and . By Lemma 6, for each value of there are at most choices for and at most choices for . See Figure 6. Since ranges over , the hop is charged through at most times, as required.
Finally, let , so that . Let be the last vertex of the common prefix of and . As is not aligned with , we have . In the tree , every path from to a vertex of passes through , so the segment of that is covered by has as one of its endpoints. Hence this segment, and with it , starts at distance at most from . Thus ranges only over , and the hop is charged through at most times, as required.
Third, by Claim 2.1, there are at least good pairs, each charged to one of the hops through one of at most windows, and by Claim 2.2 each hop is charged through each window at most times. Since , both and are . Moreover, by (5.6) and (5.7), and , and we get:
as required. For , each hop is charged through each window at most times (Claim 2.2), where , and the same calculation gives:
as required.
6 Stronger Lower Bounds for -Hopsets
In this section, we prove lower bounds for -hopsets that are stronger than Lemmas 8 and 9, on sparse graphs that are not of constant degree. We use the Erdős girth conjecture, which states that for every integer there are graphs with girth at least and edges, to obtain a dense base graph, which we transform into a sparse graph by subdivision and the addition of private leaves. Unlike the arguments of Section 4, this technique does not extend to pivot-based ADOs: already two pivots per vertex allow all the selected demands to be answered in linear space (Remark 2). We first prove the two-hop bound, which is tight by the conversion in Section A, and then extend it to general hopbound.
6.1 Two Hops
The idea is as follows. We write for the numbers of vertices and edges of a dense base graph , and for those of the final graph . We subdivide each base edge into a path of constant length and attach private leaves to every base vertex. The resulting graph has , so it is sparse. Every base edge gives demands, namely the pairs of a leaf of and a leaf of . The natural exact route of such a demand uses three hops. With only two hops, one of the hops must start at a leaf, say , and enter the subdivided edge . Such a hop fixes and the base edge , so it serves at most demands, one for each leaf of . Dividing the demands by this bound gives a lower bound on the size of the hopset .

Figure 7: The construction of Theorem 3, with a demand of the base edge ab.
Theorem 3. Fix an integer . Under the Erdős girth conjecture, for arbitrarily large there are -vertex graphs with edges on which every -hopset has size
The proof below gives the same bound for every integer and every real stretch with , and the theorem is the case . For every real , this bound is stronger than Lemma 8. Indeed, the smallest integer with satisfies , so the exponent above 1 is larger than from Lemma 8. For example, at stretch with , Lemma 8 gives the exponent , while the bound here gives . For the bound is , while Lemma 8 gives . For the two bounds coincide. The price is that the graphs do not have constant degree, since every base vertex has leaves. In particular, under the girth conjecture, a -hopset of size cannot exist for every sparse graph when .
Proof. We prove the bound for every integer and every real with . Set and . Since , we have . By the girth conjecture, there are arbitrarily large -vertex base graphs with girth at least and edges. Since , we may choose an even constant such that
This is the girth inequality needed for the tree argument below.
The graph. Let . We obtain from by replacing each base edge with a path of edges through new vertices, and by attaching private leaves to each base vertex (see Figure 7). Since and , the graph has
The leaves lie on no cycle, and every cycle of G is a subdivided cycle of B. Hence G has girth at least , and it is bipartite since L is even. It is 2-degenerate since the base vertices are independent and every other vertex has degree at most 2.
The demands. For every base edge ab, we take the pairs where is a leaf of and is a leaf of . Every other path in is a subdivided path of with at least base edges, so its length is at least . Hence , and consists of the leaf edge , the subdivided edge , and the leaf edge . Let , so that . A demand determines its base edge, so there are distinct demands.
Let F be a -hopset for G, and let H be its hop graph. The rest of the proof follows the three steps of the proof of Lemma 7.
First, we charge each demand to a hop. Let be a demand of the base edge . Consider a path with at most two hops in that realizes , and let be its intermediate vertex ( for a single hop). Since hop weights never underestimate distances, the walk formed by and has at most edges. Together with , it has at most edges, so it forms a tree. Hence, as in the proof of Claim 9.1, the walk covers every edge of . Moreover, each of and meets in a contiguous segment, since two paths in a tree intersect in a path.
In particular, one of the two hops covers an edge of the subdivided edge ab. Exchanging the names of u, v and of a, b if necessary, we may assume that this is the hop and that u is the leaf of a. The segment contains u, so it is a prefix of . Since it reaches into ab, it contains the leaf edge ua and the first edge of the subdivided edge ab (see the following Figure 8). We charge the demand to the ordered hop . Since , this hop is not an edge of G, so it is a hop of F.

q leaves of b
Figure 8: The first two edges of determine the parent a of u and the base edge ab, so v is one of the q leaves of b.
Second, we bound the number of demands that charge a single hop.
Claim 3.1. Each ordered hop is charged by at most q demands.
Proof. The hop fixes the path . If a demand charges , then the first edge of is the leaf edge , and its second edge is the first edge of the subdivided edge . This edge lies on only one subdivided base edge, so the hop fixes . Hence is one of the leaves of .
Third, each of the demands charges one of the ordered hops of F, and each of them is charged at most q times (Claim 3.1). Hence
It remains to express this bound in terms of m. Since , we have
. Together with , this gives
as required.
Remark 1. The graphs of Theorem 3 are bipartite and 2-degenerate, as shown in the proof, and so are the graphs of Theorem 4. Hence these lower bounds hold even for bipartite 2-degenerate graphs, so such structural restrictions do not allow smaller hopsets.
6.2 Extension to General Hopbound
We extend Theorem 3 to every fixed hopbound . The demands of Theorem 3 become cheap with three hops, since the route needs only the hops . Therefore, the parents of the two demand leaves are now base edges apart, along a path of . The natural exact route then uses hops, one more than allowed, just as the route does for . For , the bound below recovers Theorem 3.
Theorem 4. Fix integers and . Under the Erdős girth conjecture, for arbitrarily large n there are n-vertex graphs with edges on which every -hopset has size
As for Theorem 3, the proof below gives the same bound for every integer and every real stretch with , and the theorem is the case . Here, and throughout the proof, the hidden constants depend on , , and , but not on . For fixed and , this bound applies to every integer , and in particular to some . Hence the exponent above 1 is at least . For every , this is larger than from Lemma 9. For example, for and stretch with , Lemma 9 gives the exponent , while the bound here gives . For the two exponents are equal, but the bound here has no loss. As in Theorem 3, the graphs here are not of constant degree.
The idea extends the proof of Theorem 3 as in Section 4.3. The hops of an answer must cover the subdivided base edges between u and v (see the following Figure 9). If the first or the last hop enters one of them, then it fixes a leaf and the first base edge, exactly as in the proof of Theorem 3. Otherwise, at most internal hops cover the base edges, so one of them passes a junction and fixes the two base edges around it (see Figure 10). This pair of base edges plays the role of the window of Section 4.3.

Figure 9: A demand in the proof of Theorem 4 with . The parents and of and are base edges apart.
Proof. We prove the bound for every integer and every real with . We first make the degrees of the base graph almost equal, then define the graph and the demands, and finally charge every demand either to an endpoint hop or to an internal hop. Set , , and . Then , since . Moreover, since , we have , so and . By the girth conjecture, there are arbitrarily large -vertex base graphs with girth at least and edges.
Almost equal degrees. We need the base degrees to differ by at most a factor of 2, and obtain this by deleting low-degree vertices and splitting the remaining vertices. Let , which tends to infinity, so . We repeatedly delete vertices of degree less than . Each deletion removes fewer than edges, so fewer than edges are deleted, and at least edges remain. Next, we split every remaining vertex into copies, and partition the edges of among its copies into groups of sizes between and . This is possible since . The resulting graph is simple since is, and all its degrees are in . It has edges, and hence vertices, since . Its girth is still at least , since a cycle of maps to a closed trail of with distinct edges, which contains a cycle of that is not longer. Thus we have a base graph with
The graph. Since , we may choose an even constant such that
We construct from as in the proof of Theorem 3, with . That is, we subdivide every base edge into a path of edges and attach private leaves to every base vertex. As there, is bipartite and 2-degenerate, it has girth at least , and since , it has
The demands. For every path with edges in , we take the pairs where is a leaf of and is a leaf of . The subdivided edges are the base edges of the demand (see Figure 9). Every other path in has at least edges, since together with it contains a cycle. Its subdivision therefore has length more than . Hence , and consists of the two leaf edges and the base edges. Let , so that . A demand determines and , and hence its base path, so the demands are distinct. Since , every walk with edges in that never returns along the edge it just used is a path. There are choices for , at least for , and at least for each of . Every path is counted twice, once from each end. Since , the number of demands is at least
Let be a -hopset for , and let be its hop graph. As before, the rest of the proof has three steps.
First, we charge each demand to a hop. Let be a demand with base path . As in Section 4.3, let , with , be the hops of a path realizing , and let be the concatenation of . It has at most edges. Since , the proof of Claim 9.1 applies, and gives . Moreover, as in the paragraph after Claim 9.1, each path meets in a contiguous segment. We say that a hop touches a base edge if its shortest path contains an edge of that subdivided base edge. There are two cases.
Case 1: an endpoint hop touches a base edge. This case is the argument of Theorem 3, with and . Reversing the demand path if necessary, we may assume that the first hop touches a base edge. As there, the segment contains , so it is a prefix of . Hence it contains the leaf edge and the first edge of the base edge . As there, we charge the demand to the ordered hop . We call this an endpoint charge.
Case 2: no endpoint hop touches a base edge. Then the internal hops cover all edges of the base edges, so and this case occurs only for . Each of the base edges is touched by one of the at most internal hops. By the pigeonhole principle, some internal hop touches two distinct base edges. It meets in a contiguous segment, so it touches two consecutive base edges and , possibly only parts of them. Thus contains the junction as an internal vertex, together with the two edges of at (see the following Figure 10). We charge the demand to the hop , and call this an internal charge. Since has at most edges, .
hop

Figure 10: The path identifies the two base edges and even though it traverses only part of each.
In both cases, the shortest path of the charged hop contains two edges of . Hence the charged hop is not an edge of G, so it is a hop of F.
Second, we bound the number of demands that charge a single hop, separately for Cases 1 and 2.
Claim 4.1. Each ordered hop receives at most endpoint charges.
Proof. Let be an ordered hop. Exactly as in Claim 3.1, the path fixes the leaf , its parent , and the base edge . Each of is a neighbor of the previous base vertex in , so there are fewer than choices for each of them. Finally, there are choices for the leaf of . Hence there are at most such demands.
Claim 4.2. Each hop with receives at most internal charges.
Proof. For there are no internal charges, so assume . The path has at most vertices, so there are at most choices for the junction . The two edges of at lie on two subdivided base edges, which are therefore fixed, and there are 2 choices for which of them is . There are choices for the index . Then, as in Claim 4.1, there are fewer than 2D choices for each of the other base vertices, and choices for each of the two leaves. Hence there are at most such demands.
Third, each demand charges a hop of F. An unordered hop gives two ordered hops, so by Claim 4.1 and Claim 4.2 it is charged at most
times. Since , , and are fixed, so are and , and this is . Thus the choices of a junction and its position cost only a constant factor, whereas the corresponding factors in Section 4.3 depend on . Comparing with the number of demands, we get
It remains to express this bound in terms of . Since , we have . As in the proof of Theorem 3, gives . Together with , this yields
as required.
Remark 2 (Scope of the reduction). Theorems 3 and 4 concern -hopsets only. Suppose that every leaf has its parent as a pivot, in addition to itself. Then every demand of these families has an exact answer with two pivot jumps, from to and from to , and one hop per base edge, that is, hops. Storing the base-edge shortcuts and the leaf-to-parent distances takes only space. This linear-space construction answers all the selected demands. Thus these charging arguments give no superlinear lower bound for p-pivot -hop ADOs (Definition 3) with , so the technique does not improve Theorems 1 and 2.
7 Discussion
Hub labelings. A stretch-k hub labeling of assigns to each vertex a label , stored together with the distances for , such that for all . Stretch-k hub labelings and -hopsets are the same object, up to a constant factor and an additive term in size. Given a labeling, the set is a -hopset of size . Given a -hopset with hop graph , the labels , where is the set of neighbors of in , form a stretch-k hub labeling of total size (a path with the two hops and gives the common hub , and a single hop gives the common hub ). Hence, by Lemma 8, every stretch-k hub labeling of the graphs of that lemma has total label size , and unconditionally, on the graphs of Lemma 5, . On the sparse graphs of Theorem 3, the same equivalence gives the stronger lower bound on total label size for every stretch , where is an integer.
Intermediate pivot jumps. Definition 3 allows pivot jumps at intermediate vertices, and not only at the endpoints. Restricting pivot jumps to the endpoints, i.e., taking for every , can only weaken an oracle, so Theorem 2 applies to that restricted model as well. On the other hand, setting for every pivot edge , which changes neither the space nor noncontraction, and then counting the two pivot jumps at each intermediate vertex as hops, turns a walk with hops into a walk with at most hops and pivot jumps only at the endpoints. Hence a -hop ADO is also a -hop ADO of the restricted model, but the lower bound obtained this way is weaker than Theorem 2. For example, the two-hop representations of Table 3 would become four-hop representations, with a correspondingly smaller exponent.
Hops versus spanners. Our lower bounds concern structures that answer a query by combining a bounded number of stored distances, such as hopsets, hub labelings, and pivot-based ADOs. Spanners and emulators are different in this respect. A spanner also compresses the graph, but extracting a distance from it requires a shortest-path computation over the stored subgraph, which may take linear time. The bounds reflect this difference. The graph G itself is an exact spanner with edges, whereas on sparse graphs hopsets with any constant hopbound require superlinear size (Lemma 9).
On the girth hypothesis. The stronger hopset bounds of Section 6 use the standard form of the girth conjecture, described below.
Remark 3 (The standard Erdős girth conjecture). Previous lower bounds, such as the lower bound of Thorup and Zwick [TZ05], rely on the standard Erdős girth conjecture, which states that for every integer there are graphs with girth at least and edges. By the Moore bound, a graph with girth at least has edges. Hence the standard conjecture is closely related to Conjecture 1, as both state that the Moore bound is tight. The difference is that the standard conjecture gives graphs of degree , that is, graphs with edges for some , and not sparse graphs.
The arguments of Sections 4 and 5 also yield lower bounds under the standard conjecture, on graphs with edges for an arbitrarily small . Fix a sufficiently large integer , and let be a graph given by the standard conjecture. By the regularization lemma of Erdős and Simonovits [ES70], in the form of Jiang and Seiver [JS12, Proposition 2.7], contains a subgraph on vertices with edges and maximum degree at most a constant times its minimum degree. As a subgraph of , it has girth . The Moore bound and almost regularity give and .
Set , so that and . Local tree structure gives pairs at distance . A pivot jump of length at most contains edges, and each such edge lies on at most shortest paths of length , by fixing its position on the path and extending in both directions. Since there are at most pivot jumps, discarding all pairs whose shortest path shares an edge with any such jump removes at most pairs. For constant , their fraction is . Thus we may take : every pivot jump used by a remaining pair covers no edge of its shortest path.
The proposition is stated for an input density coefficient at least 1, but its proof in [JS12, Appendix B] works for any fixed positive coefficient a. Retaining the factor 1/a in the bound on the number of iterations changes the resulting order bound only by a constant factor. In particular, still holds.
The hops must therefore cover all edges, so one hop covers a window of edges. For a fixed hop there are windows, each contained in at most of these paths. Dividing the pair count by this bound gives stored edges. Since , every such oracle requires space, where . Finally, , so expressing the bound in terms of costs another in the exponent. Both losses tend to zero as grows.
Open problems. For every integer , -hopsets of size exist on sparse graphs (Section A), so Theorem 3 is tight. For , we do not know whether the lower bound of Theorem 4 is tight.
Problem 1. For integers and , is there a -hopset of size for every graph with ?
For pivot-based ADOs, the stretch-space curve is tight for one hop (Theorem 1), but two hops can improve upon it. For , there are two-hop pivot-based ADOs that use space, by Agarwal, Godfrey, and Har-Peled [AGH11] and by Kadria and Roditty [KR25], and . For integer , achieving space for every sparse graph remains open, as asked by Kadria and Roditty [KR25].
A similar question arises for pivot-based ADOs with more hops. For , constructions on the stretch-space curve match our lower bound at the known achievable stretches. For , the corresponding space bound remains open.
Problem 2. For every real and integer , does every graph with edges admit a p-pivot -hop k-stretch ADO with and space ?
Even for the picture is not complete. Theorem 1 holds for every real , while matching ADOs are known for every integer stretch, by Thorup–Zwick for odd integers [TZ05] and Pătrașcu–Roditty–Thorup for even integers [PRT12], and for their fractional stretches , where are integers [PRT12].
Problem 3. Is there, for every real , an -pivot 1-hop ADO with stretch that uses space? Equivalently, is every point of the stretch-space curve achievable?
For , Pătrașcu and Roditty [PR14] show, under a set-intersection hypothesis, that oracles with stretch below 2 and query time require space on graphs with edges. This does not settle the problem. Their bound is conditional, and it applies only to query time, whereas a pivot-based ADO may have pivots, and hence query time.
Use of AI. ChatGPT and Claude were used to assist with drafting and revising the exposition, proofreading, checking mathematical arguments, and verifying references. The authors reviewed the suggestions and take full responsibility for the final content, including all results, proofs, and citations.
References
[ABF23] Amir Abboud, Karl Bringmann, and Nick Fischer. Stronger 3SUM lower bounds for approximate distance oracles via additive combinatorics. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 391–404, 2023.
[ABKZ22] Amir Abboud, Karl Bringmann, Seri Khoury, and Or Zamir. Hardness of approximation in P via short cycle removal: Cycle detection, distance oracles, and beyond. In Proceedings of the 54th Annual ACM Symposium on Theory of Computing (STOC), pages 1487–1500, 2022.
[ABP18] Amir Abboud, Greg Bodwin, and Seth Pettie. A hierarchy of lower bounds for sublinear additive spanners. SIAM Journal on Computing, 47(6):2203–2236, 2018.
[Aga14] Rachit Agarwal. The space-stretch-time tradeoff in distance oracles. In Proceedings of the 22nd Annual European Symposium on Algorithms (ESA), volume 8737 of Lecture Notes in Computer Science, pages 49–60. Springer, 2014.
[AGH11] Rachit Agarwal, P. Brighten Godfrey, and Sariel Har-Peled. Approximate distance queries and compact routing in sparse graphs. In Proceedings of the 30th IEEE International Conference on Computer Communications (INFOCOM), pages 1754–1762, 2011.
[BK10] Surender Baswana and Telikepalli Kavitha. Faster algorithms for all-pairs approximate shortest paths in undirected graphs. SIAM Journal on Computing, 39(7):2865–2896, 2010.
[BS06] Surender Baswana and Sandeep Sen. Approximate distance oracles for unweighted graphs in expected time. ACM Trans. Algorithms, 2(4):557–577, 2006.
[Che14] Shiri Chechik. Approximate distance oracles with constant query time. In David B. Shmoys, editor, Symposium on Theory of Computing, STOC 2014, New York, NY, USA, May 31 - June 03, 2014, pages 654–663. ACM, 2014.
[Che15] Shiri Chechik. Approximate distance oracles with improved bounds. In Rocco A. Servedio and Ronitt Rubinfeld, editors, Proceedings of the Forty-Seventh Annual ACM Symposium on Theory of Computing, STOC 2015, Portland, OR, USA, June 14-17, 2015, pages 1–10. ACM, 2015.
[CHL25] Shiri Chechik, Itay Hoch, and Gur Lifshitz. New approximation algorithms and reductions for n-pairs shortest paths and all-nodes shortest cycles. In Proceedings of the 36th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 5207–5238, 2025.
[DJVW22] Mina Dalirrooyfard, Ce Jin, Virginia Vassilevska Williams, and Nicole Wein. Approximation algorithms and hardness for n-pairs shortest paths and all-nodes shortest cycles. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 290–300, 2022.
[Dou26] Double Agent. d-regular graphs of girth . doubleAI technical report, 2026. Available at https://www.doubleai.com/research/advancing-a-decades-old-problem-in-extremal-graph-theory.
[EJ13] Geoffrey Exoo and Robert Jajcay. Dynamic cage survey. The Electronic Journal of Combinatorics, 2013. Dynamic Survey DS16.
[ES63] Paul Erdős and Horst Sachs. Reguläre Graphen gegebener Taillenweite mit minimaler Knotenzahl. Wissenschaftliche Zeitschrift der Martin-Luther-Universität Halle-Wittenberg, Mathematisch-Naturwissenschaftliche Reihe, 12:251–257, 1963.
[ES70] Paul Erdős and Miklós Simonovits. Some extremal problems in graph theory. In Combinatorial Theory and Its Applications I, volume 4 of Colloquia Mathematica Societatis János Bolyai, pages 377–390. North-Holland, 1970.
[GPPR04] Cyril Gavoille, David Peleg, Stéphane Pérennes, and Ran Raz. Distance labeling in graphs. Journal of Algorithms, 53(1):85–112, 2004.
[JS12] Tao Jiang and Robert Seiver. Turán numbers of subdivided graphs. SIAM Journal on Discrete Mathematics, 26(3):1238–1255, 2012.
[JX23] Ce Jin and Yinzhan Xu. Removing additive structure in 3SUM-based reductions. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 405–418, 2023.
[KKR24] Tsvi Kopelowitz, Ariel Korin, and Liam Roditty. On the space usage of approximate distance oracles with sub-2 stretch. In Proceedings of the 51st International Colloquium on Automata, Languages, and Programming (ICALP), volume 297 of LIPIcs, pages 101:1–101:18, 2024. Full version: https://arxiv.org/abs/2310.12239.
[KP22] Shimon Kogan and Merav Parter. Having hope in hops: New spanners, preservers and lower bounds for hopsets. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 766–777, 2022.
[KR25] Avi Kadria and Liam Roditty. New approximate distance oracles and their applications. In Proceedings of the 36th International Symposium on Algorithms and Computation (ISAAC), volume 359 of LIPIcs, pages 43:1–43:17, 2025.
[KR26] Avi Kadria and Liam Roditty. Faster algorithms for -stretch distance oracles. In 53rd International Colloquium on Automata, Languages, and Programming, ICALP 2026, volume 374 of LIPIcs, pages 121:1–121:22. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2026.
[KRV26] Avi Kadria, Liam Roditty, and Virginia Vassilevska Williams. Improved approximation algorithms for n-pairs shortest paths. In Proceedings of the 34th Annual European Symposium on Algorithms (ESA), volume 388 of LIPIcs, pages 66:1–66:23, 2026.
[KUV19] Adrian Kosowski, Przemysław Uznański, and Laurent Viennot. Hardness of exact distance queries in sparse graphs through hub labeling. In Proceedings of the 38th ACM Symposium on Principles of Distributed Computing (PODC), pages 272–279, 2019.
[LPS88] Alexander Lubotzky, Ralph Phillips, and Peter Sarnak. Ramanujan graphs. Combinatorica, 8(3):261–277, 1988.
[NS22] Ofer Neiman and Idan Shabat. A unified framework for hopsets. In Proceedings of the 30th Annual European Symposium on Algorithms (ESA), volume 244 of LIPIcs, pages 81:1–81:13, 2022.
[PR14] Mihai Pătrașcu and Liam Roditty. Distance oracles beyond the Thorup–Zwick bound. SIAM Journal on Computing, 43(1):300–311, 2014.
[PRT12] Mihai Pătrașcu, Liam Roditty, and Mikkel Thorup. A new infinity of distance oracles for sparse graphs. In Proceedings of the 53rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 738–747, 2012.
[RTZ05] Liam Roditty, Mikkel Thorup, and Uri Zwick. Deterministic constructions of approximate distance oracles and spanners. In Luís Caires, Giuseppe F. Italiano, Luís Monteiro, Catuscia Palamidessi, and Moti Yung, editors, Automata, Languages and Programming, 32nd International Colloquium, ICALP 2005, Lisbon, Portugal, July 11-15, 2005, Proceedings, volume 3580 of Lecture Notes in Computer Science, pages 261–272. Springer, 2005.
[SVY09] Christian Sommer, Elad Verbin, and Wei Yu. Distance oracles for sparse graphs. In Proceedings of the 50th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 703–712, 2009.
[TZ05] Mikkel Thorup and Uri Zwick. Approximate distance oracles. Journal of the ACM, 52(1):1–24, 2005.
[Wul12] Christian Wulff-Nilsen. Approximate distance oracles with improved preprocessing time. In Yuval Rabani, editor, Proceedings of the Twenty-Third Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2012, Kyoto, Japan, January 17-19, 2012, pages 202–208. SIAM, 2012.
[Wul13] Christian Wulff-Nilsen. Approximate distance oracles with improved query time. In Sanjeev Khanna, editor, Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2013, New Orleans, Louisiana, USA, January 6-8, 2013, pages 539–549. SIAM, 2013.
A Known Oracles in the Pivot Model
In this section, we show that several known distance oracles are p-pivot -hop ADOs (Definitions 2 and 3) with the parameters of Table 3.
Thorup–Zwick [TZ05]. The oracle of Thorup and Zwick [TZ05] has stretch and uses space. It samples sets , and throughout this section, denotes the vertex of closest to , and denotes the bunch of , i.e., the set of vertices whose distances from the oracle stores [TZ05]. It returns an estimate of the form
| Reference | Stretch | Pivots | Hops | Space for | Comments |
|---|---|---|---|---|---|
| [TZ05] | |||||
| [PR14] | |||||
| [PRT12] | |||||
| [KR25] | |||||
| [KR25] | |||||
| [KR25] | |||||
| [CHL25] | , unweighted | ||||
| [KRV26] | , unweighted | ||||
| [Aga14] |
Table 3: Known upper bounds for pivot-based ADOs. The Kadria–Roditty [KR25] and Agarwal [Aga14] representations include additional local distances and are stated for constant-degree graphs (Section A). *With an additive error of . †The main estimates use two hops, and the exceptional distance-3 routine uses three.
where and , or the same with the roles of and exchanged. Thus, with , this is a 1-hop estimate: is a pivot jump, and the stored distance from to is the hop.
Pătrașcu–Roditty [PR14]. The oracle of Pătrașcu and Roditty [PR14] has stretch 2 and uses space. It returns either a stored distance or an estimate of the form
where is the landmark closest to . Hence, with , this is a 1-hop estimate.
Pătrașcu–Roditty–Thorup [PRT12]. For integers , these oracles have stretch and space when [PRT12, Sections II–III]. The construction combines generalized Thorup–Zwick [TZ05] structures, each with fixed pivots per vertex. An estimate is either a stored distance, a one-pivot estimate as above, or an expression of the form
where and are fixed pivots supplied by these structures and the middle distance is stored (or with exchanged). Taking all these pivots, together with the vertex itself, gives an -pivot 1-hop representation. The case with the minus sign recovers stretch . Taking gives every even integer stretch.
Kadria–Roditty [KR25]. The oracles of Kadria and Roditty [KR25] have stretches and and use space. We obtain a two-hop representation on constant-degree graphs as follows. Let and , where is the set of vertices adjacent to . Their choice of ensures , so constant degree gives . Add the distances for all to , using additional space.
Besides one-hop estimates, the query uses estimates of the form
where and the other hop distance is stored in a bunch, or with exchanged. With , each estimate uses two hops and the indicated pivot jump. The cluster-intersection branch uses two stored hops with . The pivot-to-pivot branch uses one stored hop between endpoint pivots. Replacing local search estimates by exact stored distances can only decrease the answer while preserving noncontraction. Thus the stretch and asymptotic space are preserved. The same argument applies to their stretch-4 oracle with space.
Avi: Especially in here, make sure to write -pivot 2-hop ADO (and not just mention the hops), since we say sometimes hopset which does not allow... In addition, I think a one-line here about the fact that this is tight for hopsets is nice. For , the stretch- oracle also gives a -hopset of size when . Its analysis shows that one of the paths with , with and , or with and has stretch at most . We additionally store for every , which replaces the prefix by a single hop, so each of these paths uses at most two stored hops. Without assuming constant degree, the size is still . Since implies , we have . Only the total size matters for a hopset, not the query time. In the Thorup-Zwick sampling, every bunch has expected size at most [TZ05], so some choice of the sampled sets gives total size , which is when .
The earlier oracles of Agarwal, Godfrey, and Har-Peled [AGH11] and of Dalirrooyfard, Jin, Vassilevska Williams, and Wein [DJVW22] are very similar to those of Kadria and Roditty [KR25], which improve upon them, so we do not convert them explicitly. The same argument shows that they are 2-hop ADOs as well. Moreover, the stretch-2 oracle of Agarwal, Godfrey, and Har-Peled [AGH11] gives a -hopset of size . If the bunches of u and v intersect at a vertex w, it uses , and otherwise it uses or .
n-PSP algorithms [CHL25, KRV26]. For unweighted graphs, the n-PSP algorithm of Chechik, Hoch, and Lifshitz [CHL25] returns estimates that are at most , that is, it has stretch with an additional additive error of , and the algorithm of Kadria, Roditty, and Vassilevska Williams [KRV26], which simplifies it, has stretch . Both run in time. Apart from the short-distance cases described below, the stretch analysis of [KRV26] uses only estimates of the form
Our lower bounds also hold for oracles with an additive error independent of . The proofs of Sections 4 and 5 only use pairs at distance , and replacing the condition by decreases by . In Section 6, it suffices to choose the constant such that . This changes the resulting space bounds by only a constant factor.
where is a vertex, and , , , and are Thorup–Zwick [TZ05] pivots of , , , and , respectively (possibly the vertex itself). Hence, with , the stored distances between and and between and are the only hops of the displayed estimate, so it uses at most 2 hops. Note that the estimate moves between two pivots and of the same vertex , which is the reason that Definition 3 allows pivot jumps at intermediate vertices. Including the short-distance routine gives a 3-hop representation of [KRV26]. It uses the Thorup–Zwick distances and the original edges, so the space is .
Agarwal [Aga14]. The oracle of Agarwal [Aga14, Theorem 1] has stretch and space , for every integer and parameter . It stores distances from landmarks to all vertices. Let be the nearest landmark to . Its vicinity consists of the vertices closer to than , together with their neighbors. On constant-degree graphs, each vicinity has vertices. Storing all vertex-to-vicinity distances therefore gives total space , since .
The stretch analysis guarantees a suitable estimate represented by a walk of the form
where , in the first form, and in the second (or with exchanged). Consecutive vertices of the local chain are in one another's vicinity in at least one direction. This includes the final step to only in the first form. Replacing local candidate distances by exact stored distances preserves noncontraction and can only improve the estimate. With , the landmark step is a pivot jump, so both forms use at most hops. Taking gives the -space representation in Table 3.
For adjacent pairs, check whether . For the exceptional distance-3 case, let , let , and set . The additional query in [KRV26, Appendix B, Claim 20.4.3] minimizes over and , where is the Thorup–Zwick bunch. In the exceptional case, a shortest path satisfies these conditions. Each distance is stored in a bunch or its reverse cluster, so this routine uses three hops.