Problem Solving

Minimum Spanning Tree

Pupils compare lengths of threads beside model villages.

Minimum Spanning Tree definition

A minimum spanning tree is a spanning tree of a connected weighted graph with the smallest possible total edge weight.

In Spanish
árbol de expansión mínima
Topic
Graph theory

Minimum Spanning Tree in a picture

Minimum Spanning Tree diagramThe two least costly edges in this triangle already connect all three vertices.Edge weights: 2, 3, 6A triangle with three verticesKeep the weights 2 and 3Together they connect all verticesTotal weight: 5The minimum spanning tree
The two least costly edges in this triangle already connect all three vertices.

How it works

It connects every vertex using edges from the original graph and contains no cycles. Kruskal’s algorithm considers edges in order of increasing weight and keeps an edge only when it does not create a cycle. When several edges tie, different minimum spanning trees can have the same total weight.

Worked examples

How many edges are in a minimum spanning tree on seven vertices?

Six.

A triangle has weights 1, 4, and 5. What is the minimum tree weight?

1 + 4 = 5.

Why skip an edge that closes a cycle?

A spanning tree must remain acyclic, and the existing edges already connect its endpoints.

Common mistake

Minimize the total of the edges that connect all vertices. This can differ from minimizing the distance between one particular pair.

Quick check

What does the tree span?

Show answer

All vertices.

Can minimum spanning trees tie?

Show answer

Yes.

What does Kruskal’s algorithm avoid adding?

Show answer

An edge that creates a cycle.

Sources

Flashcard

Minimum Spanning Tree

Reveal the definition

A minimum spanning tree is a spanning tree of a connected weighted graph with the smallest possible total edge weight.

Effortless Math. “Minimum Spanning Tree.” Math Dictionary.