EppDM5eMetric 10 04
EppDM5eMetric 10 04
EppDM5eMetric 10 04
3
Example 10.4.1 – Trees and Non-trees
All the graphs shown in Figure 10.4.1 are trees, whereas
those in Figure 10.4.2 are not.
4
Example 10.4.1 – Trees and Non-trees continued
Non-trees. The graphs in (a), (b), and (c) all have circuits, and the graph in (d) is not connected.
Figure 10.4.2
5
Examples of Trees
6
Example 10.4.2 – A Decision Tree
During orientation week, a college administers a
mathematics placement exam to all entering students. The
exam consists of two parts, and placement
recommendations are made as indicated by the tree shown
in Figure 10.4.3.
Figure 10.4.3
7
Example 10.4.2 – A Decision Tree continued
Read the tree from left to right to decide what course
should be recommended for a student who scored 9 on
part I and 7 on part II.
8
Example 10.4.2 – Solution
Since the student scored 9 on part I, the score on part II is
checked.
9
Example 10.4.3 – A Parse Tree
In the last 30 years, Noam Chomsky and others have
developed new ways to describe the syntax (or
grammatical structure) of natural languages such as
English.
10
Example 10.4.3 – A Parse Tree continued
11
Example 10.4.3 – A Parse Tree continued
12
Example 10.4.3 – A Parse Tree continued
13
Example 10.4.3 – A Parse Tree continued
5. 〈article〉 → the
6. 〈adjective〉 → young
7. 〈verb〉 → caught
14
Example 10.4.3 – A Parse Tree continued
15
Example 10.4.3 – A Parse Tree continued
16
Characterizing Trees
17
Characterizing Trees
There is a somewhat surprising relation between the
number of vertices and the number of edges of a tree.
18
Characterizing Trees
It follows from these facts that if even one new edge (but
no new vertex) is added to a tree, the resulting graph must
contain a circuit.
19
Characterizing Trees
A small but very important fact necessary to derive the first
main theorem about trees is that any nontrivial tree must
have at least one vertex of degree 1.
20
Example 10.4.5 – Leaves and Internal Vertices in Trees
Find all leaves (or terminal vertices) and all internal (or
branch) vertices in the following tree:
21
Example 10.4.5 – Solution
The leaves (or terminal vertices) are v0, v2, v4, v5, v7, and
v8. The internal (or branch) vertices are v6, v1, and v3.
22
Characterizing Trees
23
Example 10.4.6 – Determining Whether a Graph Is a Tree
24
Example 10.4.6 – Solution
No. By Theorem 10.4.2, any tree with ten vertices has nine
edges, not twelve.
25
Example 10.4.7 – Finding Trees Satisfying Given Conditions
26
Example 10.4.7 – Solution
By Theorem 10.4.2, any tree with four vertices has three
edges. Thus the total degree of a tree with four vertices
must be 6. Also, every tree with more than one vertex has
at least two vertices of degree 1.
Thus the following combinations of degrees for the vertices
are the only ones possible: 1, 1, 1, 3 and 1, 1, 2, 2. There
are two nonisomorphic trees corresponding to both of these
possibilities, as shown below.
27
Characterizing Trees
28
Example 10.4.8 – A Graph with n Vertices and n − 1 Edges That Is Not a Tree
29
Example 10.4.8 – Solution
By Theorem 10.4.4, such a graph cannot be connected.
One example of such an unconnected graph is shown
below.
30
Characterizing Trees
31