Skip to content
START WITH A QUESTION

What would you like to understand?

Find an answer. See the moment it becomes clear. Follow the idea further.

← Concept directory

Answers for “Prim 算法的时间复杂度是多少?”

1 keyword matches

Understanding your question. You can explore the search results below now.

Find a method

↗

To compute the total weight of the MST, sum the weights of all edges that were selected and added to the tree during the execution of Prim's algorithm.

Conditions: The MST edge set has been fully determined.; You have access to the weights of the selected edges.