MPN-5 run length encoding

Juan Francisco Rodríguez Herrera
Vicente González Ruiz

July 10, 2017

Contents

1 Intro
2 Codec

1 Intro

2 Codec

Example

The runs:

aaaabbbbbaaaaaabbbbbbbcccccc

are encoded as:

aaa1 bbb2 aaa3 bbb4 ccc3

Let’s go to the lab!

  1. Download http://www.ace.ual.es/~vruiz/doctorado/text-compression.tar.gz and make rle.
  2. Download The
    Image Compression Corpus
    :

    PIC PIC
    PIC PIC
  3. Encode each image using the RLE codec. Build the table:
    Codec | lena boats pepers zelda Average  
    ------+--------------------------------  
      rle | ....  ....   ....  ....    ....

    where .... is the compression ratio computes as:

    γ = X Y (1)

    where X is the size of the input (the sequence of symbols) and Y the size of the output (the code-stream).

  4. Any compression?
  5. Verify that the codecs are lossless!

References

[1]   G. Held. Data and Image Compression. Willey, 1996.