Huffman Coding
The objective of this problem is to design Huffman codes using MATLAB. The discrete memory less source output is generated from the alphabet
with the corresponding probabilities
1. Determine the entropy of the source.
2. Design a Huffman code and sketch the corresponding code tree. Specify the code words for the six symbols in the alphabet.
3. Determine the efficiency of the Huffman code designed in Part 2.
4. Design a Huffman code for the source sequences of length 2 and sketch the code word tree. Specify the code words for the symbols of length 2 and determine the efficiency of the code. Compare the efficiency for length 2 sequences with that for length 1.