Computer Science for IGCSE & O level - Data Representation (Section 13 - No. 46)

If you are compressing a text file using RLE and encounter the string "AAAAABBBCC", how would the string likely be represented after compression?
A4B3C2
5A3B2C
AAAAABBBCC
A5B3C2

Explanation

RLE counts consecutive instances of the same character.

Comments (0)

Advertisement