开发者

Is there an algorithm to compute shortest tree (not path)?

开发者 https://www.devze.com 2023-03-08 18:55 出处:网络
Greetings Overflowers, I have a weighted directed graph and I want the lowest cost tree that covers all nodes where the root is a specific given node of the graph. I do not know if I can also set a d

Greetings Overflowers,

I have a weighted directed graph and I want the lowest cost tree that covers all nodes where the root is a specific given node of the graph. I do not know if I can also set a different 开发者_开发技巧maximum branching on each node where the number of branches from this node to other nodes (outward edges) is equal or less to that maximum ?

So what is the most suitable algorithm for my needs to start reading ? I hope it is fast enough :)

Many thanks !


You're looking for a directed minimum spanning tree (arborescence), which is an optimum branching.

http://en.wikipedia.org/wiki/Chu%E2%80%93Liu/Edmonds_algorithm

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号