A Randomized Linear-Time Algorithm to Find Minimum .ppt
《A Randomized Linear-Time Algorithm to Find Minimum .ppt》由会员分享,可在线阅读,更多相关《A Randomized Linear-Time Algorithm to Find Minimum .ppt(47页珍藏版)》请在麦多课文档分享上搜索。
1、A Randomized Linear-Time Algorithm to Find Minimum Spanning Trees,David R. Karger Philip N. Klein Robert E. Tarjan,Talk Outline,Objective & related work from literatures Intuition Definitions Algorithm Proof & Analysis Conclusion and future work,Objective,A minimum spanning tree is a tree formed fro
2、m a subset of the edges in a given undirected graph, with two properties:1. it spans the graph, i.e., it includes every vertex in the graph, and2. it is a minimum, i.e., the total weight of all the edges is as low as possible.,Find a minimum spanning tree for a graph by linear time with very high pr
3、obability!,Related Work,Boruvka 1926, textbook algorithms Yao 1975 Cheriton and Tarjan 1976 Fredman and Tarjan 1987 Gabow 1986 Chazelle 1995 ,Deterministic results! How about the randomized one?,Intuition,Cycle Property Cut Property Randomization,Intuition,For any cycle C in a graph, the heaviest ed
4、ge in C does not apper in the minimum spanning tree.,Cycle Property,Cycle Property,For any graph, find all possible cycles and remove the heaviest edge from each cycle. Then we can get a minimum spanning tree?How about the time complexity?How to detect the cycles in the graph?,Cut Property,For any p
5、roper nonempty subset X of the vertices, the lightest edge with exactly one endpoint in X belongs to the minimum spanning tree.,Cut Property,Boruvka Algorithm,For each vertex, select the minimum-weight edge incident to the vertex. Contract all the selected edges, replacing by a single vertex each co
6、nnected component defined by the selected edges and deleting all resulting isolated vertices, loops (edges both of whose endpoints are the same), and all but the lowest-weight edge among each set of multiple edges.,O(m log n),Randomization,How the randomization can help us to achieve our goal?Boruvk
7、a + Cycle Property + Randomization= Linear time with very high probability,Definition,Definition,Let G be a graph with weighted edges. w(x, y) : the weight of edge x, y If F is a forest of a subgraph in G, F(x, y) : the path (if any) connecting x and y in F, : the maximum weight of an edge on F(x, y
8、), with the convention that if x and y are not connected in F.,Definition,F-heavyOtherwise, x, y is F-light.,F-heavy & F-light,F-light,F-heavy,F-heavy & F-light,Note that the edges of F are all F-light.For any forest F, no F-heavy edge can be in the minimum spanning forest of G.,Cycle Property!,Recu
9、rsive function call:Input: A undirected graph Output: A minimum spanning forest Time: for the worst caseO(m) with very high probability,Algorithm,Algorithm,Step 1. Apply two successive Boruvka steps to the graph, thereby reducing the number of vertices by at least a factor of four.,Algorithm,Algorit
10、hm,Step 2. In the contracted graph, choose a subgraph H by selecting each edge independently with probability 1/2. Apply the algorithm recursively to H, producing a minimum spanning forest F of H. Find all the F-heavy edges (both those in H and those not in H) and delete them.,Algorithm,Back to anal
11、ysis,Algorithm,Step 3. Apply the algorithm recursively to the remaining graph to compute a spanning forest . Return those edges contracted in Step 1 together with the edges of .,Algorithm,Back to analysis,Algorithm,Those not in H,F - light,F - heavy,Edges of H,Analysis,Correctness? Worst-case time c
12、omplexity? Expected time complexity?,Correctness,CompletenessBy the cut property, every edge contracted during Step 1 is in the minimum spanning forest. Hence the remaining edges of the minimum spanning forest of the original graph form a minimum spanning forest of the contracted graph.,Correctness,
13、SoundnessBy the cycle property, the edges deleted in Step 2 do not belong to minimum spanning forest. By the inductive hypothesis, the minimum spanning forest of the remaining graph is correctly determined in recursive call of Step 3.,Worst-case time complexity,The worst-case running time of the min
14、i-spanning forest algorithm is , the same as the bound for Boruvkas algorithm.Count the total number of edges. Step 1 reduces the size to as its original. A subproblem at depth d contains at most edges. Summing all subproblems gives an bound on the total number of edges.,Worst-case time complexity,P
15、arent: E(G) Left child: E(H) Right child:Number of edges in next recursion level = E(G*) + E(F)= E(G) V(G)/2 + V(G)/4,Worst-case time complexity,m edges,Worst-case time complexity,The total time spent in Steps 1-3 is linear in the number of edges: Step 1 is just two steps of Boruvkas algorithm. Step
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ARANDOMIZEDLINEARTIMEALGORITHMTOFINDMINIMUMPPT

链接地址:http://www.mydoc123.com/p-373179.html