Question: 1 Boruvka s Algorithm ( 4 0 points ) ( a ) ( 1 0 points ) This was stated in class, but let s
Boruvkas Algorithm pointsa points This was stated in class, but lets prove it formally. Let G V E be an undirected graph and let w : E R be edge weights. Prove that if all edge weights are distinct we we for all e e in E then there is a unique minimum spanning tree MST Let G V E be a connected, undirected graph and let w : E R be distinct edge weights w is injective Were going to analyze yet another MST algorithm: Boruvkas MST algorithm from which is a bit like a distributed version of Kruskal. We begin by having each vertex mark the lightest edge incident to itFor instance, if the graph were a cycle with edges of lengths and around the cycle, then two vertices would mark the edge and the other two vertices will mark the edge This creates a forest F of marked edges. Convince yourself that there wont be any cycles! In the next step, each tree in F marks the shortest edge incident to it the shortest edge having one endpoint in the tree and one endpoint not in the tree creating a new forest F This process repeats until we have only one tree. b points Show correctness of this algorithm by proving that the set of edges in the current forest is always contained in the MSTc points Show how you can run each iteration of the algorithm in Om time with just a few runs of DFS and no fancy data structures heaps unionfind remember, this algorithm was from In other words, given a current forest F of marked edges, show how to find the set of edges which consists of the shortest edge incident to each tree in F in time Omd points Prove an upper bound of Om log n on the running time of this algorithm Boruvka's Algorithm points
a points This was stated in class, but let's prove it formally. Let GV E be an undirected graph and let w: E rightarrow mathbbRgeq be edge weights. Prove that if all edge weights are distinct leftwe
eq wlefteprimerightright for all lefte
eq eprimein Eright then there is a unique minimum spanning tree MST
Let GV E be a connected, undirected graph and let w: E rightarrow mathbbRgeq be distinct edge weights w is injective We're going to analyze yet another MST algorithm: Boruvka's MST algorithm from which is a bit like a distributed version of Kruskal.
We begin by having each vertex mark the lightest edge incident to itFor instance, if the graph were a cycle with edges of lengths and around the cycle, then two vertices would mark the edge and the other two vertices will mark the edge This creates a forest F of marked edges. Convince yourself that there won't be any cycles! In the next step, each tree in F marks the shortest edge incident to it the shortest edge having one endpoint in the tree and one endpoint not in the tree creating a new forest Fprime This process repeats until we have only one tree.
b points Show correctness of this algorithm by proving that the set of edges in the current forest is always contained in the MST
c points Show how you can run each iteration of the algorithm in Om time with just a few runs of DFS and no fancy data structures heaps unionfind remember, this algorithm was from In other words, given a current forest F of marked edges, show how to find the set of edges which consists of the shortest edge incident to each tree in F in time Om
d points Prove an upper bound of Om log n on the running time of this algorithm.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
