[Paper Review] Fully-Dynamic All-Pairs Shortest Paths: Improved Worst-Case Time and Space Bounds
This paper presents the first deterministic fully-dynamic all-pairs shortest paths data structure that breaks Thorup's 15-year-old $ ilde{O}(n^{2+3/4})$ worst-case update time bound, achieving $ ilde{O}(n^{2+5/7})$ for general graphs and $ ilde{O}(n^{2+3/5})$ for unweighted graphs. It uses a hierarchical decomposition with level-specific data structures and background rebuilding to ensure worst-case efficiency and $ ilde{O}(n^2)$ space usage.
Given a directed weighted graph $G=(V,E)$ undergoing vertex insertions \emph{and} deletions, the All-Pairs Shortest Paths (APSP) problem asks to maintain a data structure that processes updates efficiently and returns after each update the distance matrix to the current version of $G$. In two breakthrough results, Italiano and Demetrescu [STOC '03] presented an algorithm that requires $ ilde{O}(n^2)$ \emph{amortized} update time, and Thorup showed in [STOC '05] that \emph{worst-case} update time $ ilde{O}(n^{2+3/4})$ can be achieved. In this article, we make substantial progress on the problem. We present the following new results: (1) We present the first deterministic data structure that breaks the $ ilde{O}(n^{2+3/4})$ worst-case update time bound by Thorup which has been standing for almost 15 years. We improve the worst-case update time to $ ilde{O}(n^{2+5/7}) = ilde{O}(n^{2.71..})$ and to $ ilde{O}(n^{2+3/5}) = ilde{O}(n^{2.6})$ for unweighted graphs. (2) We present a simple deterministic algorithm with $ ilde{O}(n^{2+3/4})$ worst-case update time ($ ilde{O}(n^{2+2/3})$ for unweighted graphs), and a simple Las-Vegas algorithm with worst-case update time $ ilde{O}(n^{2+2/3})$ ($ ilde{O}(n^{2 + 1/2})$ for unweighted graphs) that works against a non-oblivious adversary. Both data structures require space $ ilde{O}(n^2)$. These are the first exact dynamic algorithms with truly-subcubic update time \emph{and} space usage. This makes significant progress on an open question posed in multiple articles [COCOON'01, STOC '03, ICALP'04, Encyclopedia of Algorithms '08] and is critical to algorithms in practice [TALG '06] where large space usage is prohibitive. Moreover, they match the worst-case update time of the best previous algorithms and the second algorithm improves upon a Monte-Carlo algorithm in a weaker adversary model with the same running time [SODA '17].
Motivation & Objective
- To overcome the longstanding $ ilde{O}(n^{2+3/4})$ worst-case update time bound for fully-dynamic all-pairs shortest paths.
- To design a deterministic data structure with truly subcubic update time and $ ilde{O}(n^2)$ space usage, addressing a critical open problem in dynamic algorithms.
- To achieve worst-case update time improvements over previous randomized and amortized algorithms while maintaining exactness and space efficiency.
- To construct a data structure that works against a non-oblivious adversary, ensuring robustness under adaptive input.
- To provide the first space-efficient exact dynamic APSP algorithm with $ ilde{O}(n^2)$ space, resolving a long-standing open question in the field.
Proposed method
- Employ a hierarchical clustering approach where vertices are partitioned into levels $C_0, C_1, \dots, C_{\lceil \lg h \rceil + 1}$, with $C_0 = V$ and decreasing sizes.
- Maintain a data structure $\mathcal{D}_i$ at each level $i$ that computes shortest paths avoiding vertices in $C_{i+1}$, using a modified Bellman-Ford procedure.
- Set dynamic update thresholds $\Delta_i = n^{2/3} / (2^i \log n)$ to control rebuild frequency and ensure worst-case update bounds.
- Use background rebuilding of data structures to deamortize the process, ensuring worst-case performance without sacrificing efficiency.
- Handle vertex deletions by computing shortest paths in $G \setminus D$ via $\mathcal{D}_1$, then recursively combining paths through $C_i$ avoiding $C_{i+1}$, and reinserting vertices using Johnson’s algorithm.
- Optimize the parameter $h = n^{1/3} (\log n)^2$ to balance the trade-off between rebuild cost and update time, minimizing total update time.
Experimental results
Research questions
- RQ1Can a deterministic fully-dynamic APSP data structure achieve worst-case update time below $\tilde{O}(n^{2+3/4})$, breaking Thorup's 15-year-old bound?
- RQ2Is it possible to design a fully-dynamic APSP algorithm with truly subcubic update time and $\tilde{O}(n^2)$ space usage?
- RQ3Can such a data structure be made robust against a non-oblivious adversary, i.e., one that observes internal randomness?
- RQ4Can the worst-case update time of $\tilde{O}(n^{2+2/3})$ be achieved deterministically, matching the best randomized bounds?
- RQ5Can space-efficient dynamic APSP algorithms be constructed that maintain exact distances while using only $\tilde{O}(n^2)$ space?
Key findings
- The paper presents the first deterministic data structure that breaks Thorup's $\tilde{O}(n^{2+3/4})$ worst-case update time bound, achieving $\tilde{O}(n^{2+5/7})$ for general edge-weighted graphs.
- For unweighted graphs, the update time is improved to $\tilde{O}(n^{2+3/5})$, further advancing the state of the art.
- A simple deterministic algorithm with $\tilde{O}(n^{2+3/4})$ worst-case update time and $\tilde{O}(n^2)$ space is presented, matching the best previous bounds but with full determinism.
- A Las-Vegas algorithm with $\tilde{O}(n^{2+2/3})$ worst-case update time and $\tilde{O}(n^2)$ space is designed, working against a non-oblivious adversary.
- For unweighted graphs, the Las-Vegas algorithm achieves $\tilde{O}(n^{2+1/2})$ worst-case update time, improving upon prior randomized algorithms.
- All proposed data structures use $\tilde{O}(n^2)$ space, marking the first exact dynamic APSP algorithms with such space efficiency, resolving a long-standing open problem.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.