在有向图上寻找最小生成树

编程入门 行业动态 更新时间:2024-10-26 16:21:46
本文介绍了在有向图上寻找最小生成树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我可以使用什么算法在有向图上找到最小生成树?我尝试使用Prim算法的修改,但无法使其工作。

What algorithm can I use to find a minimum spanning tree on a directed graph? I tried using a modification of Prim's algorithm, but wasn't able to make it work.

推荐答案

等价于最小生成有向图中的树被称为最优分支或最小代价树状结构。解决这个问题的经典算法是 Chu-Liu / Edmonds 算法。多年来,这种算法已经有了几种优化实现,使用更好的数据结构;我所知道的最好的一个使用斐波那契堆并且在时间O(m + n log n)中运行,并且由于 Galil等人

The equivalent of a minimum spanning tree in a directed graph is called an optimum branching or a minimum-cost arborescence. The classical algorithm for solving this problem is the Chu-Liu/Edmonds algorithm. There have been several optimized implementations of this algorithm over the years using better data structures; the best one that I know of uses a Fibonacci heap and runs in time O(m + n log n) and is due to Galil et al.

希望这有助于您!

更多推荐

在有向图上寻找最小生成树

本文发布于:2023-11-30 21:21:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1651504.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:图上   最小

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!