Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 636 Bytes

README.md

File metadata and controls

5 lines (5 loc) · 636 Bytes

Rle-algorithm

The Run-Length Encoding (RLE) algorithm is a simple form of data compression in which consecutive occurrences of the same data value (a run) are replaced by just one instance of the data value and a count of its occurrences. For example, the string "AAAABBBCCDAA" would be encoded as "4A3B2C1D2A" using RLE, significantly reducing the size if the runs are long. This method is most effective on data that contains many such runs, making it well-suited for compressing graphics, in which the same color often occurs in many consecutive pixels.

Usage

  1. Build and run the program
  2. Select the option that interests you