Mathster Maths topics Free worksheets Coverage Mathster for schools

Maths topics › A level Further Maths › D1, algorithms and graphs

Find a minimum spanning tree using Prim's algorithm on a network

A level Further Maths · D1, algorithms and graphs

A question

The diagram shows a weighted graph.
Use Prim's algorithm, starting at vertex A, to find a minimum spanning tree. Show the order in which you choose the arcs, and state the total weight of the tree.

Free worksheet

10 questions on this objective, ready to print.

Download the worksheet (PDF)

We use this address to send you the answers, and for news only if you tick the box.

Worked solution

The working

  1. Tree: A. Edges from the tree to other vertices: DA (16), AE (18), AB (29). The smallest is DA (16), so add DA.
  2. Tree: A, D. Edges from the tree to other vertices: DE (9), AE (18), CD (26), AB (29). The smallest is DE (9), so add DE.
  3. The second edge added is DE.
  4. Answer: DE

Mathster is maths homework, practice and assessment for schools, with animated worked solutions. Try Mathster free for 60 days →

Objectives from the AS and A level subject content for further mathematics (Department for Education). Contains public sector information licensed under the Open Government Licence v3.0.