Problem 19
Draw all nonisomorphic binary trees having four vertices.
Problem 21
Draw all nonisomorphic full binary trees having nine vertices.
Problem 24
Draw a graph having the given properties or explain why no such graph exists. Acyclic; four edges, six vertices
Problem 25
Show that the height \(h\) of an \(n\) -vertex balanced binary tree satisfies \(h=O(\lg n) .\) This result shows that the worst-case time to search in an \(n\) -vertex balanced binary search tree is \(O(\lg n)\)
Problem 25
Construct an optimal Huffman code for the set of letters in the table. $$ \begin{array}{cr|cr} \hline \text { Letter } & \text { Frequency } & \text { Letter } & \text { Frequency } \\ \hline \text { I } & 7.5 & \text { C } & 5.0 \\ \text { U } & 20.0 & \text { H } & 10.0 \\ \text { B } & 2.5 & \text { M } & 2.5 \\ \text { S } & 27.5 & \text { P } & 25.0 \\ \hline \end{array} $$
Problem 29
Explain why if we allow cycles to repeat edges, a graph consisting of a single edge and two vertices is not acyclic.
Problem 30
Explain why a forest is a union of trees.
Problem 30
Show that a tree is a planar graph.
Problem 31
If a forest \(F\) consists of \(m\) trees and has \(n\) vertices, how many edges does \(F\) have?
Problem 31
Show that any tree with two or more vertices has a vertex of degree 1 .