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

📚Quizzes
Prim's Algorithm
Sign up to keep practising.Create a free account to play more quizzes and track your progress.

Practise the questions

10 questions from this quiz

Show

What is the primary purpose of Prim's algorithm?

Find minimum spanning tree

How does Prim's algorithm grow the MST at each step?

Adds smallest connecting edge to MST

When is Prim's algorithm particularly useful?

When graph is represented as a matrix

When does Prim's algorithm terminate?

When all vertices are included in MST

In the weight matrix, what does wij=∞w_{ij} = \infty represent?

No edge exists between ii and jj

What is the time complexity of Prim's algorithm using matrix representation?

O(v2)O(v^2)

What is the space complexity for storing the weight matrix in Prim's algorithm?

O(v2)O(v^2)

How many edges does a spanning tree have for vv vertices?

v−1v-1 edges

What should diagonal entries in the weight matrix be?

∞\infty or 00

In the worked example with vertices AA, BB, CC, DD, what is the total weight of the MST?

11

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

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