Minimum spanning trees

HSC Maths Standard 2 · Unit 5: Networks

Minimum spanning trees notes

Fact-checked by a second, independent AI review.

Overview of minimum spanning trees: a subgraph that connects all nodes with the smallest possible total edge weight. Key terms, how to find them, and typical exam tasks in NSW HSC Maths Standard 2 Networks.

MST (Minimum Spanning Tree)
An spanning tree of the graph that has the smallest possible total edge weight.
Spanning Tree
A connected acyclic subgraph that includes all vertices of the network.
Edge Weight
The cost or distance associated with an edge; MST minimises the sum of these.
Kruskal's Algorithm
Sort edges by weight; add them if they don’t form a cycle until all vertices are connected.
Prim's Algorithm
Grow a tree from a starting vertex by repeatedly adding the smallest edge connecting the tree to a new vertex.

Remember it: “Sort, no cycle, connect all” – Kruskal’s rule is the shortcut to remember MSTs.

Exam tip: Markers want correct algorithm choice (Kruskal or Prim), justification of minimality, correct handling of ties/multiple MSTs, and total weight calculation with clear steps.

Syllabus checklist

  • Minimum spanning trees: core ideas
  • Terms and typical exam questions for "Networks" in NSW HSC Mathematics Standard 2

Practice questions

  1. 1. Kruskal's algorithm builds the MST by adding edges in order of weight unless a cycle is formed. This describes which algorithm?

    Answer checked

    Show answer

    Answer: Kruskal. Kruskal's algorithm adds edges by increasing weight while avoiding cycles.

  2. 2. True or false: In any MST, the total weight is minimized.

    Answer checked

    Show answer

    Answer: True. An MST has the smallest possible total weight among all spanning trees.

  3. 3. To connect all nodes with minimum total edge weight, you form a ____.

    Answer checked

    Show answer

    Answer: spanning tree. A spanning tree connects all nodes with minimum total weight in a connected graph.

  4. 4. In Kruskal's algorithm, the first edge added is typically the:

    Answer checked

    Show answer

    Answer: smallest-weight edge. Kruskal's method starts with the smallest available edge that does not form a cycle.

  5. 5. If the MST consists of two edges with weights 2 and 3, its total weight is ____.

    Answer checked

    Show answer

    Answer: 5. 2 + 3 = 5.

Practise minimum spanning trees as a game

Hearts, combos, streaks and an AI tutor that explains every answer. Start free.

Start free

More from Unit 5: Networks