File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ We try to add every edge that is not already in the MST.
36362 . For each edge $e$ not already in the MST, temporarily add it to the MST, creating a cycle.
37373 . Find the edge $k$ with maximal weight in the cycle that is not equal to $e$.
38384 . Remove $k$ temporarily, creating a new spanning tree.
39- 5 . Compute the weight difference $\delta = weight(e) − weight(k)$, and remember it together with the changed edge.
39+ 5 . Compute the weight difference $\delta = weight(e) - weight(k)$, and remember it together with the changed edge.
40406 . Repeat step 2 for all other edges, and return the spanning tree with the smallest weight difference to the MST.
4141
4242The time complexity of the algorithm depends on how we compute the $k$s, which are the maximum weight edges in step 2 of this algorithm.
You can’t perform that action at this time.
0 commit comments