CLO4 - Lab 2 Solution
CLO4 - Lab 2 Solution
CLO4 - Lab 2 Solution
A tree because it is connected Not a tree because it is not This graph is a tree because it is
has no simple circuits. connected. connected has no simple
circuits.
Not a tree because it has a This graph is a tree because Not a tree because it has a
simple circuit. it is connected has no simple simple circuit.
circuits.
2
CLO4- Trees Worksheet 1 Solutions
3. Draw the subtree of the tree in Exercise 3 that is rooted at
a. root c:
b. root e:
4. Is the rooted tree in Exercise 2 a full m-ary tree for some positive integer m?
This m-ary tree is valid for all m ≥ 3. However, the tree is not a full m-ary tree because it has
vertices that have 3, 2, or 1 children.
Use theorem 2. A tree with n vertices has n − 1 edges. 10000 − 1 = 9999 edges.
6. How many edges does a full binary tree with 1000 internal vertices have?
A full binary tree has two edges for each internal vertex. So we’ll just multiply the number of
internal vertices by the number of edges.
1000 *· 2 = 2000 edges
3
CLO4- Trees Worksheet 1 Solutions
4
CLO4- Trees Worksheet 1 Solutions