Next: About this document ...
MATH/CSCI 2113
Assigment 7
Due Wednesday, March 13.
Read Sections 12.2, 12.3 and 12.4 of the text book.
- Do problem 12.2.6, page 579, of the text book.
- Do problem 12.2.18 on page 570 of the text book.
- Given is the following adjacency matrix of a graph
,
where
(rows are columns correspond to
vertices in order of increasing indices) :
(a) Find a dept-first spanning tree and a breadth-first spanning tree for
this graph, with the given vertex order.
(b) Find a breadth-first spanning tree for this graph
when the vertices are ordered
.
- Do problem 12.3.2 on page 574 of the text book.
- Use Huffman coding to construct an optimal prefix code for the
symbols
that occur with respective frequencies
. Calculate the average length of your
Huffman code.
- For each of the following sequences of lengths, does there exist
a prefix code with the codewords of the following prescribed lengths?
If so, give such a code. If not, give proof that it doesn't exist.
(a)
.
(b)
.
(c)
.
Next: About this document ...
Jeannette Janssen
2002-03-01