Question: 1 . [ 1 0 ] From the encoding table as shown below: Symbol Frequency Codeword A 1 0 5 0 B 5 0 1

1.[10] From the encoding table as shown below:
Symbol Frequency Codeword
A 1050
B 50100
C 65101
D 601100
E 111101
F 61110
G 31111
Table 1
a)[1] Build the prefix tree according to the Table 1 above.
b)[3.5] 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 in
Table 2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!