The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability. Randall E. Stross
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?
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