|
|
Personal tools |
|
Data CompressionIntroduction :: Kraft :: Optimal Codes :: Bounds :: Huffman :: Coding Huffman codes
Huffman codes are the optimal prefix codes for a given distribution.
What's more, if we know the distribution, Huffman codes are
easy to find. The code operates from the premise of assigning longer
codewords to less-likely symbols, and doing it in a tree-structured
way so that the codes obtained are prefix-free.
Codes with more than D=2 symbols can also be built, as described in the book.
Proving the optimality of the Huffman code begins with the following
simple lemma:
For a code on m symbols, assume (w.o.l.o.g.) that the probabilities
are ordered
The optimization problem on m symbols has been reduced to an optimization problem on m-1 symbols. Proceeding inductively, we get down to two symbols, for which the optimal code is obvious: 0 or 1.
Copyright 2008,
by the Contributing Authors.
Cite/attribute Resource.
admin. (2006, May 17). Data Compression. Retrieved March 21, 2010, from Free Online Course Materials — USU OpenCourseWare Web site: http://ocw.usu.edu/Electrical_and_Computer_Engineering/Information_Theory/lecture6_6.htm.
This work is licensed under a
Creative Commons License.
|
||
