开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜