5.10. Trees
5.10. Trees
5.10. Trees
A connected graph that contains no cycles is called a tree. Trees were used as long ago as
1857, when the English mathematician Arthur Cayley used them to count certain types of chemical
compounds. Since that time, trees have been employed to solve problems in a wide variety of
disciplines.
Trees are particularly useful in computer science, where they are employed in a wide range of
algorithms. For instance, trees are used to construct efficient algorithms for locating items in a list.
Trees can be used to model procedures carried out using a sequence of decisions.
A tree is a connected undirected graph with no cycles.
Because a tree cannot have a cycle, a tree cannot contain multiple edges or loops.
Theorem. Let G be an undirected graph on n vertices. Then the following statements are
equivalent:
(a) G is a tree (i.e. is connected and has no cycles).
(b) G has 𝑛 − 1 edges and no cycles.
(c) G has 𝑛 − 1 edges and is connected.
(d) G is connected and every edge is a bridge.
(e) G has no cycles, but the addition of an arbitrary edge would create a cycle.
(f) G contains a unique path between any pair of vertices.
30