3.3.4

Run Length Encoding

Test yourself on Run Length Encoding

Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Run Length Encoding

One compression algorithm you need to learn is run length encoding (RLE).

Run length encoding

Run length encoding

  • Run length encoding (RLE) is a form of lossless compression that replaces repeating sequences of 0s and 1s with more efficient representations.
  • Each repeating string will be replaced by a code which represents the character and the amount of times it is to be repeated.
In images

In images

  • In images, adjacent pixels are likely to have similar but slightly different colours.
  • Image compression algorithms can group these pixels together and replace them with a single 'average' colour. This is a lossy process.
  • The RLE algorithm can then be applied to the new image.
  • While the step using RLE is still lossless, the grouping of pixels beforehand makes the whole process lossy.

Run Length Encoding

One compression algorithm you need to learn is run length encoding (RLE).

Run length encoding

Run length encoding

  • Run length encoding (RLE) is a form of lossless compression that replaces repeating sequences of 0s and 1s with more efficient representations.
  • Each repeating string will be replaced by a code which represents the character and the amount of times it is to be repeated.
In images

In images

  • In images, adjacent pixels are likely to have similar but slightly different colours.
  • Image compression algorithms can group these pixels together and replace them with a single 'average' colour. This is a lossy process.
  • The RLE algorithm can then be applied to the new image.
  • While the step using RLE is still lossless, the grouping of pixels beforehand makes the whole process lossy.
Jump to other topics
1

Problem Solving

2

Programming

3

Data

4

Computers

5

Communication & The Internet

6

The Bigger Picture

Practice questions on Run Length Encoding

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Answer all questions on Run Length Encoding

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium