Compression: basics



Compression modes



Source Coding



Compression Techniques



Huffman Coding



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 ...



Run-Length Encoding (RLE)