首页> 外文期刊>Information Processing Letters >The expected complexity of Prim's minimum spanning tree algorithm
【24h】

The expected complexity of Prim's minimum spanning tree algorithm

机译:Prim的最小生成树算法的预期复杂度

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

摘要

We study the expected performance of Prim's minimum spanning tree (MS) algorithm implemented using ordinary heaps. We show that this implementation runs in linear or almost linear expected time on a wide range of graphs. This helps to explain Why Prim's algorithm often beats MST algorithms which have better worst-case run times. Specifically, we show that if we start with any n node m edge graph and randomly permute its edge weights, then Prim's algorithm runs in expected O(m+n log n log (2m)) time. Note that O(m+n log n log (2m))=O(m) when m= Ω(n log n log log n).
机译:我们研究了使用普通堆实现的Prim最小生成树(MS)算法的预期性能。我们证明了该实现在各种图形上均以线性或几乎线性的预期时间运行。这有助于解释为什么Prim的算法经常击败运行时间最短的MST算法。具体来说,我们表明,如果我们从任意n个节点m边缘图开始并随机置换其边缘权重,那么Prim的算法将在预期的O(m + n log n log(2m / n))时间内运行。注意,当m =Ω(n log n log log n)时,O(m + n log n log(2m / n))= O(m)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号