Truly Subquadratic Time Algorithms for Diameter and Related Problems in Graphs of Bounded VC-dimension
Timothy M. Chan, Hsien-Chih Chang, Jie Gao, Sándor Kisfaludi-Bak, Hung Le, Da Wei Zheng
Abstract
We give the first truly subquadratic time algorithm, with running time, for computing the diameter of an n-vertex unit-disk graph, resolving a central open problem in the literature. Our result is obtained as an instance of a general framework, applicable to different graph families and distance problems. Surprisingly, our framework completely bypasses sublinear separators (or r-divisions) which were used in all previous algorithms. Instead, we use low-diameter decompositions in their most elementary form. We also exploit bounded VC-dimension of set systems associated with the input graph, as well as new ideas on geometric data structures. Among the numerous applications of the general framework, we obtain:1)An time algorithm for computing the diameter of m-edge sparse unweighted graphs with constant VC-dimension d. The previously known algorithms by Ducoffe, Habib, and Viennot [SODA 2019] and Duraj, Konieczny, and Potępa [ESA 2024] are truly subquadratic only when the diameter is a small polynomial. Our result thus generalizes truly subquadratic time algorithms known for planar and minor-free graphs (in fact, it slightly improves the previous time bound for minor-free graphs).2)An time algorithm for computing the diameter of intersection graphs of axis-aligned squares with arbitrary size. The best-known algorithm by Duraj, Konieczny, and Potępa [ESA 2024] only works for unit squares and is only truly subquadratic in the low-diameter regime.3)The first algorithms with truly subquadratic complexity for other distance-related problems, including all-vertex eccentricities, Wiener index, and exact distance oracles. In particular, we obtain the first exact distance oracle with truly subquadratic space and query time for any sparse graph with bounded VC-dimension, again generalizing previous results for planar and minor-free graphs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 27ea97ad-b019-4603-accf-597b583e2cf7Cited by top-tier papers1
Ask how each one uses itBuilds on5
- More Asymmetry Yields Faster Matrix MultiplicationJosh Alman, Ran Duan, Virginia Vassilevska Williams, Yinzhan Xu et al.SODA 2025 · 35 citations
- Negative-Weight Single-Source Shortest Paths in Near-linear TimeAaron Bernstein, Danupon Nanongkai, Christian Wulff-NilsenFOCS 2022 · 24 citations
- Optimal Approximate Distance Oracle for Planar GraphsHung Le, Christian Wulff-NilsenFOCS 2021 · 7 citations
- VC Set Systems in Minor-free (Di)Graphs and ApplicationsHung Le, Christian Wulff-NilsenSODA 2024
- Subquadratic algorithms in minor-free digraphs: (weighted) distance oracles, decrementai reachability, and moreAdam Karczmarz, Da Wei ZhengSODA 2025
Related papers
- Diameter computation on H-minor free graphs and graphs of bounded (distance) VC-dimensionGuillaume Ducoffe, Michel Habib, Laurent ViennotSODA 2020 · 19 citations
- Constant Approximation of Min-Distances in Near-Linear TimeShiri Chechik, Tianyi ZhangFOCS 2022 · 1 citation
- Certificates in P and Subquadratic-Time Computation of Radius, Diameter, and all Eccentricities in GraphsFeodor F. Dragan, Guillaume Ducoffe, Michel Habib, Laurent ViennotSODA 2025
- Quasilinear-time eccentricities computation, and more, on median graphsPierre Bergé, Guillaume Ducoffe, Michel HabibSODA 2025
- Finding Triangles and Other Small Subgraphs in Geometric Intersection GraphsTimothy M. ChanSODA 2023 · 4 citations
