• Home
  • Textbooks
  • Discrete Mathematics
  • Trees

Discrete Mathematics

Richard Johnsonbaugh

Chapter 9

Trees - all with Video Answers

Educators


Section 1

Introduction

01:48

Problem 1

Which of the graphs are trees? Explain.

Chris Trentman
Chris Trentman
Numerade Educator
01:48

Problem 2

Which of the graphs are trees? Explain.

Chris Trentman
Chris Trentman
Numerade Educator
01:48

Problem 3

Which of the graphs are trees? Explain.

Chris Trentman
Chris Trentman
Numerade Educator
01:48

Problem 4

Which of the graphs are trees? Explain.

Chris Trentman
Chris Trentman
Numerade Educator
View

Problem 5

For which values of $n$ is the complete graph on $n$ vertices a tree?

Nick Johnson
Nick Johnson
Numerade Educator
View

Problem 6

For which values of $m$ and $n$ is the complete bipartite graph on $m$ and $n$ vertices a tree?

Nick Johnson
Nick Johnson
Numerade Educator
00:18

Problem 7

For which values of $n$ is the $n$ -cube a tree?

Cory Kuzinski
Cory Kuzinski
Numerade Educator
00:57

Problem 8

Find the level of each vertex in the tree shown.

Victoria Dollar
Victoria Dollar
Numerade Educator
06:30

Problem 9

Find the height of the tree of Exercise 8 .

M S
M S
Numerade Educator
02:46

Problem 10

Draw the tree $T$ of Figure 9.1 .5 as a rooted tree with $a$ as root. What is the height of the resulting tree?

Prakash Hampole
Prakash Hampole
Numerade Educator
02:46

Problem 11

Draw the tree $T$ of Figure 9.1 .5 as a rooted tree with $b$ as root. What is the height of the resulting tree?

Prakash Hampole
Prakash Hampole
Numerade Educator
03:22

Problem 12

Give an example similar to Example 9.1 .5 of a tree that is used to specify hierarchical relationships.

Chris Trentman
Chris Trentman
Numerade Educator
02:06

Problem 13

Give an example different from Example 9.1 .7 of a hierarchical definition tree.

Asma Venkitta
Asma Venkitta
Numerade Educator
02:41

Problem 14

Decode each bit string using the Huffiman code given.
$$
011000010
$$

Aaron Goree
Aaron Goree
Numerade Educator
10:42

Problem 15

Decode each bit string using the Huffiman code given.
$$
01111001001110
$$

Ibrahima Barry
Ibrahima Barry
Numerade Educator
10:42

Problem 16

Decode each bit string using the Huffiman code given.
$$
01110100110
$$

Ibrahima Barry
Ibrahima Barry
Numerade Educator
10:42

Problem 17

Decode each bit string using the Huffiman code given.
$$
1110011101001111
$$

Ibrahima Barry
Ibrahima Barry
Numerade Educator
01:03

Problem 18

Encode each word using the preceding Huffiman code.
DEN

Hunza Gilgit
Hunza Gilgit
Numerade Educator
00:43

Problem 19

Encode each word using the preceding Huffiman code.
LEADEN

Hunza Gilgit
Hunza Gilgit
Numerade Educator
01:03

Problem 20

Encode each word using the preceding Huffiman code.
NEED

Hunza Gilgit
Hunza Gilgit
Numerade Educator
01:03

Problem 21

Encode each word using the preceding Huffiman code.
PENNED

Hunza Gilgit
Hunza Gilgit
Numerade Educator
01:15

Problem 22

What factors in addition to the amount of memory used should be considered when choosing a code, such as ASCII or a Huffman code, to represent characters in a computer?

Jeff Vermeire
Jeff Vermeire
Numerade Educator
01:49

Problem 23

What techniques in addition to the use of Huffman codes might be used to save memory when storing text?

Alexa Moschella
Alexa Moschella
Numerade Educator
03:19

Problem 24

Construct an optimal Huffman code for the set of letters in the table.
$$
\begin{array}{cc|cc}
\hline \text { Letter } & \text { Frequency } & \text { Letter } & \text { Frequency } \\
\hline \alpha & 5 & \delta & 11 \\
\beta & 6 & \varepsilon & 20 \\
\gamma & 6 & & \\
\hline
\end{array}
$$

Carson Merrill
Carson Merrill
Numerade Educator
03:19

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}
$$

Carson Merrill
Carson Merrill
Numerade Educator
01:12

Problem 26

Use the code developed in Exercise 25 to encode the following words (which have frequencies consistent with the table of Exercise 25 ):
BUS, CUPS, MUSH, PUSS, SIP, PUSH,
CUSS, HIP, PUP, PUPS, HIPS.

Jeff Vermeire
Jeff Vermeire
Numerade Educator
16:16

Problem 27

Construct two optimal Huffman coding trees for the table of Exercise 24 of different heights.

Bobby Barnes
Bobby Barnes
University of North Texas
03:19

Problem 28

Construct an optimal Huffman code for the set of letters in the table
$$
\begin{array}{cc|cc}
\hline \text { Letter } & \text { Frequency } & \text { Letter } & \text { Frequency } \\
\hline a & 2 & d & 8 \\
b & 3 & e & 13 \\
c & 5 & f & 21 \\
\hline
\end{array}
$$

Carson Merrill
Carson Merrill
Numerade Educator
02:28

Problem 29

Professor Ter A. Byte needs to store text made up of the characters $\mathrm{A}, \mathrm{B}, \mathrm{C}, \mathrm{D}, \mathrm{E},$ which occur with the following frequencies:
$$
\begin{array}{cc|cc}
\hline \text { Character } & \text { Frequency } & \text { Character } & \text { Frequency } \\
\hline \text { A } & 6 & \text { D } & 2 \\
\text { B } & 2 & \text { E } & 8 \\
\text { C } & 3 & & \\
\hline
\end{array}
$$
Professor Byte suggests using the variable-length codes
$$
\begin{array}{cr}
\hline \text { Character } & \text { Code } \\
\hline \text { A } & 1 \\
\text { B } & 00 \\
\text { C } & 01 \\
\text { D } & 10 \\
\text { E } & 0
\end{array}
$$
which, he argues, store the text in less space than that used by an optimal Huffman code. Is the professor correct? Explain.

Nick Johnson
Nick Johnson
Numerade Educator
01:21

Problem 30

Show that a tree is a planar graph.

Prashant Bana
Prashant Bana
Numerade Educator
01:21

Problem 31

Show that any tree with two or more vertices has a vertex of degree 1 .

Prashant Bana
Prashant Bana
Numerade Educator
03:56

Problem 32

Show that a tree is a bipartite graph.

Victoria Dollar
Victoria Dollar
Numerade Educator
00:44

Problem 33

Show that the vertices of a tree can be colored with two colors so that each edge is incident on vertices of different colors.

Victoria Dollar
Victoria Dollar
Numerade Educator
02:44

Problem 34

Find the eccentricity of each vertex in the tree of Figure $9.1 .5 .$

Chris Trentman
Chris Trentman
Numerade Educator
00:54

Problem 35

Find the center(s) of the tree of Figure $9.1 .5 .$

Katelyn Chen
Katelyn Chen
Numerade Educator
01:21

Problem 36

Show that a tree has either one or two centers.

Prashant Bana
Prashant Bana
Numerade Educator
01:21

Problem 37

Show that if a tree has two centers they are adjacent.

Prashant Bana
Prashant Bana
Numerade Educator
01:42

Problem 38

Define the radius $r$ of a tree using the concepts of eccentricity and center. The diameter $d$ of any graph was defined before Exercise $71,$ Section $8.2 .$ Is it always true, according to your definition of radius, that $2 r=d ?$ Explain.

Sheryl Ezze
Sheryl Ezze
Numerade Educator
03:56

Problem 39

Give an example of a tree $T$ that does not satisfy the following property: If $v$ and $w$ are vertices in $T,$ there is a unique path from $v$ to $w$

Victoria Dollar
Victoria Dollar
Numerade Educator