由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - A Problem on MST
相关主题
Source code for graph algorithms?一个有向图问题
[合集] 问个算法问题[合集] 两道面试题
good GUI for graph layout and flow?请教个算法问题
An interview question[合集] A google algorithm question (转载)
counting signed triad in a large-scale graph?如何在HTML里引用并设置其他标签的属性?
Weighted Graph Challenge 一道面试题请教php function在child theme中的重写
HW Question: Bipartite GraphsNewbie javascript question: change radio button updates textbox message
这个问题有什么好的解法(或现成code)吗?javascript challenge
相关话题的讨论汇总
话题: edges话题: mst话题: problem话题: tree话题: spanning
进入Programming版参与讨论
1 (共1页)
y****i
发帖数: 84
1
A graph G=(V,E) is a near-tree if it is connected and has at most n+8 edges,
where n=|V|. How to find the minimum spanning tree of G in O(n) time?
g*****u
发帖数: 298
2
从最长的边开始,如果它不破坏联通性,就删除,直到剩下n-1条边。大概就这意思吧
kb
发帖数: 73
3
find any spanning tree T first. O(n).
Suppose we have m extra edges.
For each edge, put it back into T and find the largest edge on its circle.
After we replaced all these m edges, we are done. Since we have at most 8
extra edges, it is O(n).
1 (共1页)
进入Programming版参与讨论
相关主题
javascript challengecounting signed triad in a large-scale graph?
忍不住了,说两句 (转载)Weighted Graph Challenge 一道面试题
如果用scrum做sprint plan,怎么确定user story和task?HW Question: Bipartite Graphs
HTML form: 用输入的ZIP CODE自动产生City和State名字这个问题有什么好的解法(或现成code)吗?
Source code for graph algorithms?一个有向图问题
[合集] 问个算法问题[合集] 两道面试题
good GUI for graph layout and flow?请教个算法问题
An interview question[合集] A google algorithm question (转载)
相关话题的讨论汇总
话题: edges话题: mst话题: problem话题: tree话题: spanning