[Paper Review] Constructing a Distance Sensitivity Oracle in O(n^2.5794 M) Time
This paper presents a new distance sensitivity oracle (DSO) for directed graphs with edge weights in {1, 2, ..., M}, achieving a preprocessing time of O(n^2.5794 M) and constant query time. The method relies on a novel algorithm for inverting degree-d polynomial matrices modulo x^r, accelerated using faster rectangular matrix multiplication, and enables unique shortest path computation in O(n^2.5286 M) time, improving prior bounds.
We continue the study of distance sensitivity oracles (DSOs). Given a directed graph G with n vertices and edge weights in {1, 2, … , M}, we want to build a data structure such that given any source vertex u, any target vertex v, and any failure f (which is either a vertex or an edge), it outputs the length of the shortest path from u to v not going through f. Our main result is a DSO with preprocessing time O(n^2.5794 M) and constant query time. Previously, the best preprocessing time of DSOs for directed graphs is O(n^2.7233 M), and even in the easier case of undirected graphs, the best preprocessing time is O(n^2.6865 M) [Ren, ESA 2020]. One drawback of our DSOs, though, is that it only supports distance queries but not path queries. Our main technical ingredient is an algorithm that computes the inverse of a degree-d polynomial matrix (i.e. a matrix whose entries are degree-d univariate polynomials) modulo x^r. The algorithm is adapted from [Zhou, Labahn and Storjohann, Journal of Complexity, 2015], and we replace some of its intermediate steps with faster rectangular matrix multiplication algorithms. We also show how to compute unique shortest paths in a directed graph with edge weights in {1, 2, … , M}, in O(n^2.5286 M) time. This algorithm is crucial in the preprocessing algorithm of our DSO. Our solution improves the O(n^2.6865 M) time bound in [Ren, ESA 2020], and matches the current best time bound for computing all-pairs shortest paths.
Motivation & Objective
- To design a faster preprocessing algorithm for distance sensitivity oracles (DSOs) in directed graphs with bounded integer edge weights.
- To reduce the preprocessing time below the previous O(n^2.7233 M) bound for directed graphs and O(n^2.6865 M) for undirected graphs.
- To develop an efficient algorithm for computing unique shortest paths in O(n^2.5286 M) time, which supports the DSO construction.
- To adapt polynomial matrix inversion techniques to achieve faster matrix operations in the context of shortest path computation.
Proposed method
- The core method involves computing the inverse of a degree-d polynomial matrix modulo x^r using a modified algorithm from Zhou et al. (2015).
- The algorithm replaces certain intermediate steps with faster rectangular matrix multiplication algorithms to improve asymptotic complexity.
- The DSO is constructed using this matrix inversion technique to support constant-time distance queries under vertex or edge failures.
- The shortest path computation relies on a new algorithm that computes unique shortest paths in O(n^2.5286 M) time, which is used during DSO preprocessing.
- The approach leverages algebraic structures over polynomials to encode and query alternative paths efficiently under failures.
Experimental results
Research questions
- RQ1Can the preprocessing time of distance sensitivity oracles for directed graphs be improved below O(n^2.7233 M)?
- RQ2Is it possible to achieve a faster algorithm for computing unique shortest paths in directed graphs with small integer weights?
- RQ3Can polynomial matrix inversion be optimized using advanced rectangular matrix multiplication techniques for graph algorithms?
- RQ4Does the new matrix inversion method enable a faster DSO construction while maintaining constant query time?
Key findings
- The paper achieves a preprocessing time of O(n^2.5794 M) for constructing a distance sensitivity oracle with constant query time, improving upon the prior O(n^2.7233 M) bound.
- The algorithm for computing unique shortest paths runs in O(n^2.5286 M) time, matching the current best bound for all-pairs shortest paths.
- The use of rectangular matrix multiplication in polynomial matrix inversion leads to a significant asymptotic improvement in the preprocessing phase.
- The DSO construction supports distance queries only, not path reconstruction, which remains a limitation of the current approach.
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.