Professional Documents
Culture Documents
Bit Map
Bit Map
Bit Map
Thus, for any given set of levels and associated probabilities, there is
an optimal encoding rule that minimizes the number of bits needed to
represent the source. This encoding rule is known as the Huffman
code, after the American D.A. Huffman, who created it in 1952. Even
more efficient encoding is possible by grouping sequences of levels
together and applying the Huffman code to these sequences.
The Lempel-Ziv algorithm
The design and performance of the Huffman code depends on the
designers’ knowing the probabilities of different levels and sequences
of levels. In many cases, however, it is desirable to have an encoding
system that can adapt to the unknown probabilities of a source. A very
efficient technique for encoding sources without needing to know their
probable occurrence was developed in the 1970s by the
Israelis Abraham Lempel and Jacob Ziv. The Lempel-
Ziv algorithm works by constructing a codebook out of sequences
encountered previously. For example, the codebook might begin with
a set of four 12-bit code words representing four possible signal levels.
If two of those levels arrived in sequence, the encoder, rather than