Discrete Mathematics and Graphs · BE5B01DMG · Topic 12 of 12
Trees, spanning trees and Euler trails
Use structural criteria for trees, a greedy rule for minimum spanning trees and parity for Euler trails.
Key ideas
Tree criteria
A tree is connected and has no cycle. For a finite connected simple graph, being a tree is equivalent to having |V|−1 edges and to having a unique path between every pair of vertices.
Spanning trees
A spanning tree keeps every vertex and chooses some edges. Every finite connected simple graph has one: repeatedly remove an edge of a cycle while preserving connectivity.
Kruskal’s rule
Sort weighted edges by increasing cost. Start with no edges, add an edge exactly when it creates no cycle, and stop after |V|−1 accepted edges. Ties may give different minimum spanning trees.
Euler parity
In a finite connected graph without loops, an Euler circuit uses every edge once and returns to its start; it exists iff all degrees are even. An open Euler trail exists iff exactly two vertices have odd degree, and these are its endpoints.
In one line: For trees check connectedness; for Euler traversal count odd-degree vertices.
Formulas
- Tree criteria
- Spanning trees
- Kruskal’s rule
- Euler parity
Practice with worked solutions
Question 1
How many edges has a tree with 14 vertices?
Worked solution
Answer: 13
A tree with n vertices has n−1 edges.
Question 2
A tree has degrees (3,2,1,1,1). How many leaves has it?
Worked solution
Answer: 3
Leaves are degree-one vertices.
Question 3
How many edges has any spanning tree of a connected graph with 12 vertices?
Worked solution
Answer: 11
A spanning tree contains all vertices and has n−1 edges.
More Discrete Mathematics and Graphs practice in Ucenly
Sources
Written by Ucenly. Based on the BE5B01DMG course materials:
- 6 Graphs, p. 9, 10, 11, 12