Difference between revisions of "Huffman coding"

From ScienceZero
Jump to: navigation, search
(Created page with 'A simple way of reducing the size of a block of data is to replace the most common words with shorter ones. If the replacement words are not used anywhere else in the data it is …')
 
Line 1: Line 1:
A simple way of reducing the size of a block of data is to replace the most common words with shorter ones. If the replacement words are not used anywhere else in the data it is possible to reconstruct the original data using a dictionary that lists the short words and the longer words they replace.
+
A simple way of reducing the size of a block of data is to replace the most common words with shorter ones that are not already used in the data. It is possible to reconstruct the original data using a dictionary that lists the short words and the longer words they replace.
 +
 
 +
The problem is to decide which codes to use, David A. Huffman found the optimal way of generating codes that guarantees the shortes possible output.

Revision as of 02:44, 25 January 2011

A simple way of reducing the size of a block of data is to replace the most common words with shorter ones that are not already used in the data. It is possible to reconstruct the original data using a dictionary that lists the short words and the longer words they replace.

The problem is to decide which codes to use, David A. Huffman found the optimal way of generating codes that guarantees the shortes possible output.