Constructing a Distance Sensitivity Oracle in O(n^2.5794M) Time

02/17/2021
by   Yong Gu, et al.
0

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.5794M) and constant query time. Previously, the best preprocessing time of DSOs for directed graphs is O(n^2.7233M), and even in the easier case of undirected graphs, the best preprocessing time is O(n^2.6865M) [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.5286M) time. This algorithm is crucial in the preprocessing algorithm of our DSO. Our solution improves the O(n^2.6865M) time bound in [Ren, ESA 2020], and matches the current best time bound for computing all-pairs shortest paths.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/22/2020

Improved Distance Sensitivity Oracles with Subcubic Preprocessing Time

We consider the problem of building Distance Sensitivity Oracles (DSOs)....
research
09/16/2019

Exact solutions for geodesic distance on treelike models with some constraints

Geodesic distance, commonly called shortest path length, has proved usef...
research
05/14/2020

Shortest Distances as Enumeration Problem

We investigate the single source shortest distance (SSSD) and all pairs ...
research
06/16/2018

Fast Distance Sensitivity Oracle for Multiple Failures

When a network is prone to failures, it is very expensive to compute the...
research
07/15/2020

Directed Shortest Paths via Approximate Cost Balancing

We present an O(nm) algorithm for all-pairs shortest paths computations ...
research
12/06/2021

Fixed-Parameter Sensitivity Oracles

We combine ideas from distance sensitivity oracles (DSOs) and fixed-para...
research
08/18/2022

Customizable Hub Labeling: Properties and Algorithms

Hub Labeling (HL) is one of the state-of-the-art preprocessing-based tec...

Please sign up or login with your details

Forgot password? Click here to reset