Hop-Sets in Graph Algorithms
- Hop-sets are sets of weighted shortcut edges added to a graph that approximate shortest-path distances within a specified hop limit.
- They are constructed using hierarchical sampling and Thorup–Zwick clustering to optimize tradeoffs between stretch, hopbound, and size.
- Hop-sets enable efficient algorithms in parallel, distributed, dynamic, and streaming models, underpinning routing schemes and metric compression.
A hopset for a graph is a set of weighted shortcut edges such that in the augmented graph, all pairwise (or specified) shortest-path distances can be approximated to within a desired stretch using a path of at most a specified number of hops. Hopsets have become foundational primitives in parallel, distributed, dynamic, and streaming graph algorithms, enabling a diverse array of efficient approximate distance computations, metric compression, routing schemes, and graph sparsification.
1. Definition and Basic Properties
Let be a (weighted or unweighted) graph. A -hopset, or more generally, an -hopset, is a set , where each edge is assigned weight , such that for every :
or, in the case of multiplicative stretch,
Here, 0 is the minimum length of a 1–2 path in 3 using at most 4 edges (hops) (Łącki et al., 2020, Neiman et al., 2021).
Exact hopsets correspond to 5 stretch, preserving all distances exactly but forcing all shortest paths to have hop-count at most 6. Exact hopsets are tightly connected to the classical notion of shortcut sets for reachability and diameter reduction (Bodwin et al., 2023).
2. Classical and Modern Constructions
Hierarchical Sampling and Thorup–Zwick–Type Constructions
The dominant paradigm constructs hopsets via random sampling and Thorup–Zwick–style clustering:
- Build a sequence 7 where each 8 is a random sample of 9.
- For each 0, define the bunch 1.
- Add weighted shortcut edges 2 for 3, each weighted by 4 (Neiman et al., 2021, Huang et al., 2017).
This “generalized TZ” framework allows recovering all state-of-the-art tradeoffs between stretch 5, hopbound 6, and size 7 by appropriate choice of cluster selection and sampling parameters. For example:
| Parameters | Stretch (8) | Hopbound (9) | Size (0) | Reference |
|---|---|---|---|---|
| 1-level, multiplicative | 2 | 2 | 3 | (Neiman et al., 2021) |
| 4-stretch, near-additive | 5 | 6 | 7 | (Huang et al., 2017) |
| Hybrid 8 | 9 | 0 | 1 | (Neiman et al., 2021) |
These bounds are essentially optimal; for any 2-hopset of size 3, one must have 4 (Neiman et al., 2021).
Linear-Size, Polylog-Hopbound Constructions
A major breakthrough demonstrated constructions of linear-size hopsets (5 edges) with polylogarithmic hopbound:
- Setting 6 in the above TZ framework achieves size 7, hopbound 8, stretch 9 (Elkin et al., 2017).
- This nearly exponentially improved previous linear-hopset constructions (which required 0 hopbound).
3. Algorithmic and Computation Models
Parallel, Distributed, and Streaming
Hopsets are efficiently computable in a variety of algorithms models:
- PRAM: Hopsets of size 1, hopbound 2, in polylog time and near-linear work (Elkin et al., 2017).
- Congested Clique: Algorithms yielding 3-size hopsets with polylogarithmic hopbound in polylogarithmic rounds. Sparse, low-hopbound hopsets are constructed via a combination of limited neighborhood covers, clustering, and inter-cluster linking (Nazari, 2019).
- Dynamic/Decremental: Near-optimal decremental hopset algorithms with polylogarithmic hopbound for weighted graphs under deletions, matching static size-hopbound tradeoffs. This enabled (2k−1)(1+ε)-approximate decremental APSP and MSSP oracles with nearly optimal bounds in both update and query time (Łącki et al., 2020).
- Streaming: Hopsets can be constructed with 4 space in 5 streaming passes (Elkin et al., 2016).
Practical Distance Oracles and Routing Schemes
Hopsets directly support the construction of low-space, low-latency routing algorithms and distance oracles:
- Compact distributed routing schemes with per-node memory 6, table size 7, stretch 8, and near-optimal construction time, via hopset-based preprocessing (Elkin et al., 2017).
- Centralized distance oracles in graphs of low highway or skeleton dimension using 3-hopsets, achieving lower shortcut count than classical 2-hop hub-labeling with similar or better query times (Gupta et al., 2018).
4. Lower Bounds and Sensitivity
Hopbound vs. Size
The central tradeoff is: for 9-vertex graphs, achieving hopset size 0 with 1-stretch requires 2; and for linear-size hopsets, 3 cannot be improved below 4 (Elkin et al., 2017, Huang et al., 2017, Kogan et al., 2022). For exact hopsets 5, recent lower bounds show that any 6-size hopset requires hopbound 7 (Bodwin et al., 2023), confirming the classical folklore barrier.
Sensitivity and Robustness
Recent work has introduced vertex/edge sensitivity as a quality measure for hopsets, defined as the maximum number of times a vertex (or edge) is bypassed by any hopset edge. The Greedy-Hopset achieves 8-hopsets with 9 sensitivity, improving bounds for differentially private range query algorithms, but it is shown that 0 for any such construction (Ashvinkumar et al., 2024). Analogous trade-offs are matched for directed graphs and for 1-hopsets.
5. Directed Hopsets, Shortcut Sets, and Nonlinear Tradeoffs
A shortcut set for a directed graph is a collection of edges that preserves reachability by bounding the diameter after augmentation. There is now a tight relationship between linear-size directed hopsets (approximate or reachability) and shortcut sets:
- Kogan and Parter [SODA'22] proved that 2-size shortcut sets with hopbound 3 exist; subsequently, approximate 4 hopsets with 5 size and 6 hopbound were shown, closing the gap between shortcut sets and hopsets in the directed setting (Bernstein et al., 2022).
- The Greedy-Hopset matches existential size-optimality (up to subpolynomial factors) for exact hopsets compared to known lower bounds, and specialized deterministic algorithms can now construct 7-size, 8-hopbound shortcut sets/directed hopsets in 9 time (Bals et al., 25 Nov 2025).
6. Hopsets, Spanners, Emulators, and Metric Compression
Hopsets form a bridge between spanners/emulators and distance preservers:
- Any hopset-based compression can be converted to an “0-missing 1-spanner,” and further reduced to pairwise preservers and near-additive spanners, via a general black-box reduction (Kogan et al., 2022).
- Thorup–Zwick’s additive emulators are also universally optimal hopsets, with 2 parameters and 3 size, matching known lower bounds (Huang et al., 2017).
- Lower bounds on hopset parameters thus feed directly into the limitations for sparse spanners and metric emulators.
7. Open Problems and Research Directions
- Closing Gaps: Is it possible to obtain linear-size hopsets with hopbound 4, or are the lower bounds tight? Can the 5 lower bound for exact hopsets be improved or circumvented in restricted settings?
- Directed and Hybrid Models: Extending the full suite of hopset techniques to directed or mixed-metric graphs remains challenging (Elkin et al., 2017).
- Dynamic and Streaming Maintenance: Efficient dynamic maintenance of small hopbound, linear-size hopsets remains largely open (Łącki et al., 2020).
- Sensitivity/Robustness: Can the lower sensitivity guarantees be improved for hopsets with better hop/stretch parameters (Ashvinkumar et al., 2024)?
- Metric Compression: Deepening the connection between hopset-based and spanner-based metric compression, and determining more general reverse reductions, is a proposed direction (Kogan et al., 2022).
Hopsets remain a central graph-theoretic and algorithmic primitive with fundamental roles in distance approximation, parallel and distributed computation, graph compression, and modern shortest-path algorithms. The rich space of parameter tradeoffs, sensitivity criteria, and algorithmic models continues to drive theoretical advances and practical applications.