You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
A spanning tree of a connected graph is a subgraph that is a tree and includes all vertices. A minimum spanning tree (MST) is a spanning tree whose total edge weight is as small as possible. This lesson covers two classic algorithms: Kruskal's and Prim's.
| Term | Definition |
|---|---|
| Spanning tree | A connected, acyclic subgraph containing all vertices |
| Minimum spanning tree | A spanning tree with minimum total edge weight |
| Properties | A spanning tree of n vertices has exactly n−1 edges |
Applications: laying cable networks, connecting computer nodes, pipe networks — any situation where you need to connect all points at minimum cost.
Strategy: Build the MST by adding the cheapest available edge that does not create a cycle.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.