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

Consider the following string: "WWWWWWBBBBBBBB" How would run-length encoding compress this string?
WWBB
6W8B
W6B8
BBBBBBBBWWWWWW

Explanation

RLE would encode the string as the number of repetitions followed by the character: 6W8B

Comments (0)

Advertisement