arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.08569cs.DS
收藏

在$O(n^{2.5794}M)$时间内构造距离敏感Oracle

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

Yong Gu, Hanlin Ren

摘要:

我们继续研究距离灵敏度预言机(DSO)。给定一个有向图$G$,$n$的顶点和边的权重在$\{1, 2, \dots, M\}$中,我们想构建一个数据结构,使得给定任何源顶点$u$、任何目标顶点$v$和任何故障$f$(它是顶点或边),它输出从$u$到$v$的不经过$f$的最短路径的长度。我们的主要结果是一个DSO的预处理时间$O(n^{2.5794}M)$和常数查询时间。以前,有向图的DSO的最佳预处理时间是$O(n^{2.7233}M)$,即使在无向图的更简单情况下,最佳预处理时间也是$O(n^{2.6865}M)$ [Ren,ESA 2020]。然而,我们的DSO的一个缺点是,它只支持距离查询,而不支持路径查询。我们的主要技术成分是一种计算次数- $d$多项式矩阵(即,其条目是次数- $d$单变量多项式的矩阵)模$x^r$的逆的算法。该算法改编自[Zhou,Labahn和Storjohann,Journal of Complexity,2015],我们用更快的矩形矩阵乘法算法替换了它的一些中间步骤。我们还展示了如何计算唯一的最短路径,在$\{1, 2, \dots, M\}$,在$O(n^{2.5286}M)$时间边权重的有向图。该算法是DSO预处理算法的关键。我们的解决方案改进了[Ren,ESA 2020]中的$O(n^{2.6865}M)$时间界限,并匹配当前计算所有对最短路径的最佳时间界限。

英文摘要:

We continue the study of distance sensitivity oracles (DSOs). Given a directed graph $G$ with $n$ vertices and edge weights in $\{1, 2, \dots, 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, \dots, 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑