Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. Brian W. Kernighan

Huffman Algorithm

Language Java | Level Intermediate | Category Data structure | September 9, 2015 9:50 am


Data structure Description

Huffman coding is a lossless data compression algorithm and derives this table based on the estimated frequency of occurrence for each possible value of the source symbol.

Write a program to implement Huffman code for given string?


Output

   					 

SYMBOL	WEIGHT	HUFFMAN CODE
o	2	00
e	1	010
d	1	011
l	3	10
 	1	1100
w	1	1101
r	1	1110
H	1	1111

				    

Comments


No comments available!

Please login to add comments.