UcenlyOpen in the app

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.

Open the interactive lesson

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

Practice with worked solutions

Question 1

How many edges has a tree with 14 vertices?

Worked solution

Answer: 13

  1. Atreeisconnectedandacyclic.A tree is connected and acyclic.
  2. Itsedgecountis14−1=13.Its edge count is 14−1=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

  1. Threeentriesequal1.Three entries equal 1.
  2. Thusthereare3leaves.Thus there are 3 leaves.

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

  1. n=12.n=12.
  2. Everyspanningtreehas11edges.Every spanning tree has 11 edges.

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: