Lempel-Ziv Coding

  1. find a sequence s of bits (length l > 0) not in the dictionary
  2. subsequence of length l - 1 must be in dictionary
  3. encode s as the position of the left substring, plus the new bit
  4. number of bits to encode position is log2 (|dictionary|)
  5. decoding consists of following pointer



Lempel-Ziv Example

1110 1101 000 11 ...



Differential Pulse Code Modulation



DCPM Characteristics



GIF image compression



JPEG image compression



JPEG DCT



JPEG Quantization



JPEG Encoding