Huffman Coding Algorithm

From GM-RKB
Jump to navigation Jump to search

A Huffman Coding Algorithm is a lossless compression algorithm that creates a (variable-length coding) Huffman tree.



References

2015

  • (Wikipedia, 2015) ⇒ http://en.wikipedia.org/wiki/Huffman_coding Retrieved:2015-2-3.
    • In computer science and information theory, a Huffman code is an optimal prefix code found using the algorithm developed by David A. Huffman while he was a Ph.D. student at MIT, and published in the 1952 paper "A Method for the Construction of Minimum-Redundancy Codes". The process of finding and/or using such a code is called Huffman coding and is a common technique in entropy encoding, including in lossless data compression. The algorithm's output can be viewed as a variable-length code table for encoding a source symbol (such as a character in a file). Huffman's algorithm derives this table based on the estimated probability or frequency of occurrence (weight) for each possible value of the source symbol. As in other entropy encoding methods, more common symbols are generally represented using fewer bits than less common symbols. Huffman's method can be efficiently implemented, finding a code in linear time to the number of input weights if these weights are sorted. However, although optimal among methods encoding symbols separately, Huffman coding is not always optimal among all compression methods.