首页> 外文会议>Fifth Workshop on Algorithm Engineering and Experiments Jan 11, 2003 Baltimore, MD. >Finding the k Shortest Simple Paths: A New Algorithm and its Implementation
【24h】

Finding the k Shortest Simple Paths: A New Algorithm and its Implementation

机译:寻找k条最短的简单路径:一种新算法及其实现

获取原文
获取原文并翻译 | 示例

摘要

We describe a new algorithm to enumerate the k shortest simple (loopless) paths in a directed graph and report on its implementation. Our algorithm is based on a replacement paths algorithm proposed recently by Hershberger and Suri, and can yield a factor Θ(n) improvement for this problem. But there is a caveat: the fast replacement paths subroutine is known to fail for some directed graphs. However, the failure is easily detected, and so our k shortest paths algorithm optimistically uses the fast subroutine, then switches to a slower but correct algorithm if a failure is detected. Thus the algorithm achieves its Θ(n) speed advantage only when the optimism is justified. Our empirical results show that the replacement paths failure is a rare phenomenon, and the new algorithm outperforms the current best algorithms; the improvement can be substantial in large graphs. For instance, on GIS map data with about 5000 nodes and 12000 edges, our algorithm is 4-8 times faster. In synthetic graphs modeling wireless ad hoc networks, our algorithm is about 20 times faster.
机译:我们描述了一种新算法,用于枚举有向图中的k条最短的简单(无环)路径,并报告其实现。我们的算法基于Hershberger和Suri最近提出的替换路径算法,可以针对此问题产生因子Θ(n)的改善。但是有一个警告:快速替换路径子例程对于某些有向图是失败的。但是,很容易检测到故障,因此我们的k条最短路径算法乐观地使用了快速子例程,然后在检测到故障时切换到较慢但正确的算法。因此,仅当证明乐观是合理的时,该算法才能实现其Θ(n)速度优势。我们的实验结果表明,替换路径故障是一种罕见的现象,并且新算法的性能优于当前最佳算法。在大型图形中,改进可能非常明显。例如,在具有约5000个节点和12000条边的GIS地图数据上,我们的算法快了4到8倍。在对无线ad hoc网络进行建模的合成图中,我们的算法要快20倍左右。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号