Run-length encode AAAABBBCC.
- Count each run.
- A×4, B×3, C×2.
- 4A 3B 2C.
Answer 4A3B2C
A-level Computer Science revision · Exchanging data
Lossy compression permanently removes data that humans are unlikely to notice (as in JPEG or MP3), giving smaller files. Lossless compression keeps all data so the original can be rebuilt exactly. Run-length encoding stores a value and how many times it repeats. Dictionary coding replaces repeated patterns with short references.
Watch out Program code and text must use lossless compression, or the file would be corrupted.
Run-length encode AAAABBBCC.
Answer 4A3B2C
A run of 20 identical pixels is stored by run-length encoding as one count and one colour value. How many values are stored?
Which file must be compressed losslessly?
Which compression method replaces repeated words or patterns with references?
A-level Computer Science Pro, OCR H446
£119 once
Price rises to £199 on 1 January. Save £80 by joining before then.
At least 12 months of access
No VAT is charged.