A discrete memoryless source emits message symbols m1 and m2 with probabilities 0.8 and 0.2 respectively. Using the Huffman source code to convert these symbols into binary codewords, the code efficiency that can be obtained is
A
72.2 %
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
50 %
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
100 %
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
66.67 %
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is A72.2 % H(m)=−0.8log20.8−0.2log20.2 =0.722 bits/symbols ¯¯¯¯L=0.8×1+0.2×1=1 bits/symbol ∵ Two symbols are there, each symbol can be represented with one bit. η=H(x)¯¯¯¯L=0.722⇒72.2%