Prim's Algorithm (Edexcel A-Level Further Mathematics): Flashcards
📚Flashcards
Practise the cards
10 cards from this deck
ShowHide
Practise the cards
10 cards from this deck
What does Prim's algorithm find?
What does Prim's algorithm find?
Minimum spanning tree (MST)
How does Prim's algorithm grow the MST?
How does Prim's algorithm grow the MST?
Adds the smallest connecting edge at each step
When is Prim's algorithm particularly useful?
When is Prim's algorithm particularly useful?
When graph is represented as a matrix
First step of Prim's algorithm
First step of Prim's algorithm
Select any vertex to begin the MST
When does Prim's algorithm stop?
When does Prim's algorithm stop?
When all vertices are included in the MST
What does mean in weight matrix?
What does mean in weight matrix?
No edge exists between vertices and
Time complexity of Prim's for matrix representation
Time complexity of Prim's for matrix representation
Space complexity for storing weight matrix in Prim's
Space complexity for storing weight matrix in Prim's
How many edges in spanning tree with vertices?
How many edges in spanning tree with vertices?
edges
What does MST minimize?
What does MST minimize?
Total weight of edges
