Combinatorics • Topic 30

Trees

Trees are the simplest connected graphs and the backbone of many data structures.

Definition

Definition (Tree)
A tree is a connected graph with no cycles.

Equivalent Properties

For a graph with vertices, the following are equivalent:
  1. is a tree.
  2. is connected and has edges.
  3. has no cycles and has edges.
  4. There is a unique path between any two vertices.

Spanning Trees

Every connected graph contains a spanning tree (a subgraph that is a tree and includes all vertices of ).
  • Cayley's Formula: There are distinct labeled trees on vertices.

Leaves

Every tree with vertices has at least two leaves (vertices of degree 1).

Practice Problems

Exercise (Problem 1)
Draw all non-isomorphic trees with 5 vertices.
Exercise (Problem 2)
Prove that adding one edge to a tree creates exactly one cycle.
Exercise (Problem 3)
In a forest (disjoint union of trees) with vertices and components, how many edges are there?