Question: 1. [14] From the encoding table as shown below: Table 1 Symbol Frequency Codeword A B C D E F G 0.29 0.25 0.13
![1. [14] From the encoding table as shown below: Table 1 Symbol C Frequency Codeword 0.29 0 0.25 100 0.13 101 0.15 1100 0.08 1](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2022/08/6308b46dd408e_8616308b46d7a6e6.jpg)
1. [14] From the encoding table as shown below: Table 1 Symbol Frequency Codeword A B C D E F G 0.29 0.25 0.13 0.15 0.08 0.07 0.03 ABCDEFG 0 100 101 a) Is this a valid prefix code? If yes, build the prefix tree according to the table above; if no, explain why not? b) Now, use Huffman code to assign new codewords to the symbols (A-G) above. Follow the convention that the group/symbol with higher probability is assigned a '0' and that with lower probability is assigned a '1'. List out all the codewords. 1100 1101 1110 1111 Symbol Frequency Codeword (Huffman) 0.29 0.25 0.13 0.15 0.08 0.07 0.03 c) What is the average codeword length of the original coding (Table 1)? d) What is the average codeword length using Huffman code in part b)? e) What is the minimum average number of bi need to encode each symbol? f) Using a fixed-length code, what will be the minimum average number of bits needed to encode each symbol?
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
Lets tackle each part of the question step by step a Is this a valid prefix code A prefix code is one in which no codeword is a prefix of any other co... View full answer
Get step-by-step solutions from verified subject matter experts
