arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2307.09258cs.DS
收藏

快速2-近似全对最短路径

Fast 2-Approximate All-Pairs Shortest Paths

Michal Dory, Sebastian Forster, Yael Kirkpatrick, Yasamin Nazari, Virginia Vassilevska Williams, Tijn de Vos

AI总结:

本文利用快速矩形矩阵乘法改进无向图近似全对最短路径算法,在无权图和加权图中分别获得更快的时间复杂度,并构造了稀疏图中首个亚二次预处理时间的2-近似距离预言机。

摘要:

本文重新审视了无向图中经典的近似全对最短路径(APSP)问题。对于无权图,我们提出了一种算法,对于任意 $r\in[0,1]$,可在 $\tilde O(n^{2.5-r}+n^{ω(r)})$ 时间内计算 $2$-近似 APSP。利用矩形矩阵乘法 $n^{ω(r)}$ 的已知界限 [Le Gall, Urrutia, SODA 2018],该时间复杂度为 $O(n^{2.032})$。我们的结果改进了 [Roditty, STOC 2023] 的 $\tilde{O}(n^{2.25})$ 界限,并且对于边数 $m\geq n^{1.532}$ 的图,也改进了 [Baswana, Kavitha, SICOMP 2010] 的 $\tilde{O}(m\sqrt n+n^2)$ 界限。对于加权图,对于任意 $r\in [0,1]$,我们在 $\tilde O(n^{3-r}+n^{ω(r)})$ 时间内得到 $(2+ε)$-近似 APSP。利用 $ω(r)$ 的已知界限,该时间复杂度为 $O(n^{2.214})$。这改进了 [Kavitha, Algorithmica 2012] 的 $O(n^{2.25})$ 最新最优界限。我们的技术进一步在加权图的广泛密度范围内改进了界限。特别地,对于稀疏情形,我们构造了一个距离预言机(distance oracle),预处理时间为 $\tilde O(mn^{2/3})$,支持常数时间的 $2$-近似查询。对于稀疏图,该算法的预处理时间与条件性下界相匹配 [Patrascu, Roditty, Thorup, FOCS 2012; Abboud, Bringmann, Fischer, STOC 2023]。据我们所知,这是第一个在稀疏图中具有亚二次预处理时间的 $2$-近似距离预言机。我们还在无权图的近加性近似情形下获得了新的界限。对于 $k=2,4,6,8$,我们给出了更快的 $(1+ε,k)$-近似 APSP 算法。我们通过将快速矩形矩阵乘法融入多种组合算法来获得这些结果,这些算法在稀疏图的各层上仔细平衡距离计算,同时保留特定的距离信息。

英文摘要:

In this paper, we revisit the classic approximate All-Pairs Shortest Paths (APSP) problem in undirected graphs. For unweighted graphs, we provide an algorithm for $2$-approximate APSP in $\tilde O(n^{2.5-r}+n^{ω(r)})$ time, for any $r\in[0,1]$. This is $O(n^{2.032})$ time, using known bounds for rectangular matrix multiplication $n^{ω(r)}$ [Le Gall, Urrutia, SODA 2018]. Our result improves on the $\tilde{O}(n^{2.25})$ bound of [Roditty, STOC 2023], and on the $\tilde{O}(m\sqrt n+n^2)$ bound of [Baswana, Kavitha, SICOMP 2010] for graphs with $m\geq n^{1.532}$ edges. For weighted graphs, we obtain $(2+ε)$-approximate APSP in $\tilde O(n^{3-r}+n^{ω(r)})$ time, for any $r\in [0,1]$. This is $O(n^{2.214})$ time using known bounds for $ω(r)$. It improves on the state of the art bound of $O(n^{2.25})$ by [Kavitha, Algorithmica 2012]. Our techniques further lead to improved bounds in a wide range of density for weighted graphs. In particular, for the sparse regime we construct a distance oracle in $\tilde O(mn^{2/3})$ time that supports $2$-approximate queries in constant time. For sparse graphs, the preprocessing time of the algorithm matches conditional lower bounds [Patrascu, Roditty, Thorup, FOCS 2012; Abboud, Bringmann, Fischer, STOC 2023]. To the best of our knowledge, this is the first 2-approximate distance oracle that has subquadratic preprocessing time in sparse graphs. We also obtain new bounds in the near additive regime for unweighted graphs. We give faster algorithms for $(1+ε,k)$-approximate APSP, for $k=2,4,6,8$. We obtain these results by incorporating fast rectangular matrix multiplications into various combinatorial algorithms that carefully balance out distance computation on layers of sparse graphs preserving certain distance information.

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

↑