0
4.5kviews
Find the Huffman code

Find the Huffman code for the following message.

"COLLEGE OF ENGINEERING"

Mumbai University > Computer Engineering > Sem 4 > Analysis of Algorithm

Marks: 10 M

Year: May 2015

1 Answer
0
89views

The following table shows all the symbols with their frequencies in ascending order:

C E F G I L N O R
1 5 1 3 2 2 3 2 1

The following are the different stages of construction of Huffman tree:

enter image description here enter image description here

Hence, the Huffman tree is constructed as shown in the last figure.

Please log in to add an answer.