0 votes
Consider problem similar to a minimum spanning tree, but instead we want to find the maximum spanning tree, that is, a tree that maximums the sum of weight of the edges. Describe an efficient algorithm to find the maximum spanning tree.
in Greedy Algorithms by AlgoMeister (684 points)

2 Answers

0 votes
sort the edges in the graph, greedy method choose the longest until the edges in the domain make a path from start to the end. delete the edge cannot be used and get the max spanning tree.
by AlgoMeister (964 points)
0 votes

Sort all the edges in descending order based on their weights.

Start with an empty graph, which will become the Maximum Spanning Tree.

Iterate through the sorted edges. For each edge, if adding it to the current Maximum Spanning Tree doesn't create a cycle, add it to the tree. Continue this process until the Maximum Spanning Tree has (n-1) edges, where n is the number of vertices.

 

by (212 points)

Related questions

+1 vote
2 answers
asked Mar 3, 2018 in Greedy Algorithms by jmlitfi AlgoMeister (684 points)
0 votes
4 answers
asked Mar 3, 2018 in Greedy Algorithms by jmlitfi AlgoMeister (684 points)
0 votes
3 answers
asked Mar 3, 2018 in Greedy Algorithms by jmlitfi AlgoMeister (684 points)
+1 vote
2 answers
asked Mar 3, 2018 in Greedy Algorithms by jmlitfi AlgoMeister (684 points)
+1 vote
2 answers
asked Mar 3, 2018 in Greedy Algorithms by jmlitfi AlgoMeister (684 points)
The Book: Analysis and Design of Algorithms | Presentations on Slideshare | Lecture Notes, etc
...