Chapter 5: Q15E (page 163)
We use Huffman's algorithm to obtain an encoding of alphabet with frequencies . In each of the following cases, either give an example of frequencies that would yield the specified code, or explain why the code cannot possibly be obtained (no matter what the frequencies are).
(a) Code:
(b) Code:
(c) Code:
Short Answer
- The code can be obtained for frequencies and 50.
- Code cannot be obtained from any of the frequencies, because the tree obtained is not a full binary tree
- Code cannot be obtained from any of the frequencies, because the tree obtained is not a full binary tree.