Fully Dynamic Shortest Paths in Sparse Digraphs

Adam Karczmarz,Piotr Sankowski
DOI: https://doi.org/10.4230/LIPICS.ICALP.2023.84
2024-08-27
Abstract:We study the exact fully dynamic shortest paths problem. For real-weighted directed graphs, we show a deterministic fully dynamic data structure with $\tilde{O}(mn^{4/5})$ worst-case update time processing arbitrary $s,t$-distance queries in $\tilde{O}(n^{4/5})$ time. This constitutes the first non-trivial update/query tradeoff for this problem in the regime of sparse weighted directed graphs.
Data Structures and Algorithms
What problem does this paper attempt to address?
The problem that this paper attempts to solve is to achieve efficient updates and queries of fully - dynamic shortest paths in sparse directed weighted graphs. Specifically, the authors propose a deterministic fully - dynamic data structure that can handle updates with a time complexity of \( \tilde{O}(mn^{4/5}) \) in the worst - case scenario and answer any s - t distance queries within a time complexity of \( \tilde{O}(n^{4/5}) \). This is the first time to achieve a non - trivial update/query trade - off in sparse weighted directed graphs. ### Problem Background - **Research on All - Pairs Shortest Path Problem**: Computing the shortest paths between all pairs of vertices (APSP) is one of the most fundamental algorithmic problems in directed graphs. - **Static and Dynamic Settings**: In the static case, the graph can be pre - processed to support efficient point - to - point distance or shortest - path queries. However, in the dynamic setting, the graph changes over time (insertion and deletion of edges), and data structures that can efficiently handle these changes need to be designed. - **Previous Work**: Previous work has mainly focused on dense graphs or unweighted graphs, and no significant progress has been made for sparse weighted graphs. In particular, for sparse graphs (\( m=\tilde{O}(n) \)), existing methods cannot surpass the extreme method of recomputing from scratch. ### Main Contributions of the Paper 1. **First Proposed a Fully - Dynamic Shortest - Path Data Structure Applicable to Sparse Weighted Directed Graphs**: - The update time complexity is \( \tilde{O}(mn^{4/5}) \). - The query time complexity is \( \tilde{O}(n^{4/5}) \). - It is a deterministic algorithm that can handle negative - weight edges and negative cycles. - The worst - case update time complexity, rather than the amortized complexity. 2. **Technical Overview**: - It combines the ideas of existing fully - dynamic shortest - path data structures and introduces new techniques and tools, such as the derandomization method of randomized hitting sets. - It uses a Dijkstra - like process for efficient recalculation of paths with a small number of hops and combines sparse - aware enhancement techniques. 3. **Error Correction**: - It corrects an error in the early version, especially the false statement in the fully - dynamic reachability problem. ### Formula Summary - **Update Time Complexity**: \[ \tilde{O}(mn^{4/5}) \] - **Query Time Complexity**: \[ \tilde{O}(n^{4/5}) \] - **Space Complexity**: \[ \tilde{O}(n^2) \] Through these improvements, this paper provides a new solution to the fully - dynamic shortest - path problem for sparse weighted directed graphs, significantly improving the processing efficiency and application range.