Prim's Algorithm (Edexcel A-Level Further Mathematics): Flashcards

📚Flashcards
Prim's Algorithm
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

10 cards from this deck

Show

What does Prim's algorithm find?

Minimum spanning tree (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 graph is represented as a matrix

First step of Prim's algorithm

Select any vertex to begin the MST

When does Prim's algorithm stop?

When all vertices are included in the MST

What does wij=∞w_{ij} = \infty mean in weight matrix?

No edge exists between vertices ii and jj

Time complexity of Prim's for matrix representation

O(v2)O(v^2)

Space complexity for storing weight matrix in Prim's

O(v2)O(v^2)

How many edges in spanning tree with vv vertices?

v−1v-1 edges

What does MST minimize?

Total weight of edges

Join 100,000+ A-Level students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.