Use Huffman coding to encode these symbols with given frequencies:
a: 0.20, b: 0.10, c: 0.15, d: 0.25, e: 0.30.
What is the average number of bits required to encode a character?
(12 Marks)
Write the code of each symbol beginning from the root of the tree. Then average length is
"\\sum l_i w_i =2.25" , where "l_i" is length of code, "w_i" is frequency.
Comments
Leave a comment