Skip to main content

Free IB Maths AI HL lesson: Minimum spanning trees (Kruskal's & Prim's algorithms)

A ready-to-teach IB Maths AI HL lesson on Minimum spanning trees (Kruskal's & Prim's algorithms) (Unit 3 · Geometry & Trigonometry): editable slides and teacher notes, free; a printable worksheet in 3 levels with answers for school plans. About 55 minutes.

IB Maths AI HL lesson slides on Minimum spanning trees (Kruskal's & Prim's algorithms): title slide, learning objectives, a worked example and the exit ticket
Preview of the Minimum spanning trees (Kruskal's & Prim's algorithms) slides (IB Maths AI HL).

Free with a teacher account. Sign in with Google, Microsoft or email and download the slides and teacher notes.

What's inside

Learning objectives

Key ideas on the slides

By the end of the lesson, students should be able to answer a question like: Use Kruskal's algorithm to find the minimum spanning tree and its weight.

Key vocabulary

Common mistakes this lesson tackles

The worked example

A connected, weighted graph has edges with the following weights: AB=4, AC=5, BC=6, BD=3, CD=4, CE=7, DE=2. Using Kruskal's algorithm, find the total weight of the minimum spanning tree.

  1. List all edges in ascending order of their weights: DE (2), BD (3), AB (4), CD (4), AC (5), BC (6), CE (7).
  2. Select the smallest edge, DE, with weight 2.
  3. Add the next smallest edges, BD (3) and AB (4), as they do not form cycles.
  4. Reject the edge CD (4) because connecting C, D, and B would form a closed cycle.
  5. Add edge AC (5) to connect vertex C to the tree without forming a cycle. All 5 vertices (A, B, C, D, E) are now connected.
  6. Sum the selected edge weights: 2 + 3 + 4 + 5. The total weight of the minimum spanning tree is 14.

Tip: Always physically cross out edges that form a cycle on your working paper so you do not accidentally include them in your final minimum spanning tree sum.

Calculator tips

Lesson plan

0–5 minDo now: students write down what they remember about Route inspection & the Chinese postman problem and Eigenvalues & PageRank-style centrality
5–8 minShare the learning objective and success criteria
8–20 minTeach: the worked example, step by step; students copy the method
20–25 minYour turn: 1 mini-whiteboard question; check every board before moving on
25–42 minPractise: the worksheet (6 questions in 3 levels, with school plans and the teacher trial) or the topic's practice questions online; move up a level after two right in a row
42–47 minPlenary: 1-question exit ticket; collect it to plan the next lesson

For students: practise this topic

The worksheet's QR code opens the IB Maths AI HL Unit 3: Graph Theory practice questions.

What schools get

School licences from €490 a year. Try everything free for 30 days as a teacher: no card.

See school prices

Questions teachers ask

Is this lesson free?

The slides and the teacher notes are free to download with a free IB Math Revision teacher account (sign in with Google, Microsoft or email); no card. The printable worksheet in three levels and its answers are included with school plans and the free 30-day teacher trial.

Can I edit the slides?

Yes. The slides are an ordinary PowerPoint file: change, add or delete anything. They also open in Google Slides and Keynote. The logo and web address sit on the slide master, so your edits do not move them.

What do students use for homework?

The practice slide's QR code and web address take students to the IB Maths AI HL Unit 3: Graph Theory practice questions on ibmathrevision.com, where the free questions are open and the full bank comes with a plan.

More free IB Maths AI HL lessons