A row of 12 pixels alternates black, white, black, white to the end. Each pixel uses 1 byte. RLE stores each run as a 1-byte count and a 1-byte colour. Is RLE useful for this row?
- Uncompressed size = 12 pixels × 1 byte = 12 bytes.
- No two neighbouring pixels match, so there are 12 runs, each of length 1.
- RLE size = 12 runs × 2 bytes = 24 bytes.
Answer: No. RLE needs 24 bytes instead of 12, so the row becomes twice as large.