,
Liam Roditty
Creative Commons Attribution 4.0 International license
The seminal distance oracles of Thorup and Zwick [STOC 2001, JACM 2005] provide optimal stretch/space tradeoffs. However, their O(mn^{1/k}) construction time is not optimal, and they posed the question of whether a faster construction time is possible (especially for small k). In this paper, we present the first improvement upon their construction algorithm in graphs that are not super sparse, i.e., when m = Ω(n^{1+1/k+ε}), for any ε > 0. Moreover, our construction improves upon the O(n²)-time construction of Baswana and Kavitha [FOCS 2006, SICOMP 2010], for every k > 2. By achieving the first subquadratic construction for 2 < k < 6, we resolve the open problem posed by Wulff-Nilsen [SODA 2012] of whether such subquadratic-time constructions exist.
Wulff-Nilsen [SODA 2012] targeted nearly linear construction times and presented algorithms running in Õ(m + n^{1+f(k)}) time, which is near-linear whenever the graph density m exceeds the threshold n^{1+f(k)}. We obtain improved bounds on f(k) for all k > 3, and thus expand the regime of graph densities for which nearly linear construction times are achievable.
In addition, for unweighted graphs, we present several new algorithms for constructing (2k - 1,β)-oracles that improve upon the results of Baswana, Gaur, Sen, and Upadhyay [ICALP 2008].
Our results are achieved through the development of several new algorithmic tools, which may be of independent interest. One of our main technical contributions is a hierarchy of parameterized distance oracles, which plays a central role in our fast construction algorithms.
@InProceedings{kadria_et_al:LIPIcs.ICALP.2026.121,
author = {Kadria, Avi and Roditty, Liam},
title = {{Faster Algorithms for (2k-1)-Stretch Distance Oracles}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {121:1--121:22},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.121},
URN = {urn:nbn:de:0030-drops-265105},
doi = {10.4230/LIPIcs.ICALP.2026.121},
annote = {Keywords: Fine-grained complexity, Graph algorithms, shortest cycle, girth approximations}
}