arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1401.4609cs.DScs.AI
收藏

利用低树宽计算所有对最短路径

Computing All-Pairs Shortest Paths by Leveraging Low Treewidth

Delft University of Technology(代尔夫特理工大学);University College Cork(科克大学学院)

Léon R. Planken, Mathijs M. de Weerdt, Roman P. J. van der Krogt

摘要:

本文提出了两个新的有效的计算所有对最短路径的算法。该算法在具有实(可能为负)权重的有向图上操作。它们利用沿顶点排序d的有向路径一致性。这两个算法的运行时间都是O(n^2 w_d),其中w_d是由顶点排序引起的图的宽度。对于树宽恒定的图,这会产生O(n^2)时间,这是最优的。在弦图上,算法运行时间为O(nm)。此外,我们还提出了一个变体,它利用图分隔符在一般图上达到O(nw_d^2 + n^2 s_d)的运行时间,其中s_d和lt = w_d是顶点排序d所导致的最大最小分隔符的大小.我们的经验表明,在构造和现实的基准测试,在许多情况下,该算法优于Floor-Warshalls以及约翰逊算法,这代表了目前的最先进的运行时间的O(n^3)和O(nm + n^2 log n),分别。我们的算法可用于空间和时间推理,如简单的时间问题,强调其相关的规划和调度社区。

英文摘要:

We present two new and efficient algorithms for computing all-pairs shortest paths. The algorithms operate on directed graphs with real (possibly negative) weights. They make use of directed path consistency along a vertex ordering d. Both algorithms run in O(n^2 w_d) time, where w_d is the graph width induced by this vertex ordering. For graphs of constant treewidth, this yields O(n^2) time, which is optimal. On chordal graphs, the algorithms run in O(nm) time. In addition, we present a variant that exploits graph separators to arrive at a run time of O(n w_d^2 + n^2 s_d) on general graphs, where s_d andlt= w_d is the size of the largest minimal separator induced by the vertex ordering d. We show empirically that on both constructed and realistic benchmarks, in many cases the algorithms outperform Floyd-Warshalls as well as Johnsons algorithm, which represent the current state of the art with a run time of O(n^3) and O(nm + n^2 log n), respectively. Our algorithms can be used for spatial and temporal reasoning, such as for the Simple Temporal Problem, which underlines their relevance to the planning and scheduling community.

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

↑