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

计算直径多项式比APSP更快

Computing the diameter polynomially faster than APSP

Raphael Yuster

摘要:

提出了一种新的计算加权有向图直径的随机算法。该算法在$\Ot(M^{\w/(\w+1)}n^{(\w^2+3)/(\w+1)})$时间内运行,其中$\w < 2.376$是快速矩阵乘法的指数,$n$是图的顶点数,边权值是$\{-M,...,0,...,M\}$中的整数。对于有界整数权重,运行时间为$O(n^{2.561})$,如果为$\w=2+o(1)$,则为$\Ot(n^{7/3})$。这是第一个计算整数加权有向图的直径的算法,比任何已知的所有对最短路径(APSP)算法都要快。对于有界整数权重,对于$\w$的当前值,APSP的最快算法在$O(n^{2.575})$时间内运行,如果$\w=2+o(1)$,则在$\Ot(n^{2.5})$时间内运行。对于$\{1,...,M\}$中具有{ \em正}整数权重的有向图,我们得到了一个确定性算法,该算法在$\Ot(Mn^\w)$时间内计算直径。这扩展了一个简单的$\Ot(n^\w)$算法计算直径的{ \em无向}有向图的正整数加权设置,是第一个算法在此设置的时间复杂度匹配的最快已知直径算法{ \em无向}图。直径算法是更一般结果的结果。我们构造的算法,对于任何给定的整数$d$,报告所有有序的顶点对的距离{ \em最多} $d$。因此,可以使用二分法搜索最小的$d$来计算直径,其中所有对都被报告。

英文摘要:

We present a new randomized algorithm for computing the diameter of a weighted directed graph. The algorithm runs in $\Ot(M^{\w/(\w+1)}n^{(\w^2+3)/(\w+1)})$ time, where $\w < 2.376$ is the exponent of fast matrix multiplication, $n$ is the number of vertices of the graph, and the edge weights are integers in $\{-M,...,0,...,M\}$. For bounded integer weights the running time is $O(n^{2.561})$ and if $\w=2+o(1)$ it is $\Ot(n^{7/3})$. This is the first algorithm that computes the diameter of an integer weighted directed graph polynomially faster than any known All-Pairs Shortest Paths (APSP) algorithm. For bounded integer weights, the fastest algorithm for APSP runs in $O(n^{2.575})$ time for the present value of $\w$ and runs in $\Ot(n^{2.5})$ time if $\w=2+o(1)$. For directed graphs with {\em positive} integer weights in $\{1,...,M\}$ we obtain a deterministic algorithm that computes the diameter in $\Ot(Mn^\w)$ time. This extends a simple $\Ot(n^\w)$ algorithm for computing the diameter of an {\em unweighted} directed graph to the positive integer weighted setting and is the first algorithm in this setting whose time complexity matches that of the fastest known Diameter algorithm for {\em undirected} graphs. The diameter algorithms are consequences of a more general result. We construct algorithms that for any given integer $d$, report all ordered pairs of vertices having distance {\em at most} $d$. The diameter can therefore be computed using binary search for the smallest $d$ for which all pairs are reported.

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

↑