Data Compression (AQA GCSE Computer Science): Flashcards

📚Flashcards
Run-Length Encoding (RLE)
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

What does RLE stand for?

Run-Length Encoding

What does RLE store instead of repeated data?

Number of repetitions followed by the actual value

What type of data does RLE compress best?

Data with consecutive repeated elements

RLE encoding of: AAAABBBBBCCCCCCCC

(4,A)(5,B)(7,C)

Is RLE lossy or lossless?

Lossless - no data is lost

Bits for colour & count in RLE image encoding

1 bit for colour, 7 bits for count

When does RLE achieve optimal compression?

Long sequences of repeated values or solid colour areas

When does RLE fail or increase file size?

Random data with few repetitions or lots of detail

RLE advantage: Implementation

Simple to implement and understand

RLE advantage: Speed

Fast compression & decompression, minimal processing

Can RLE make files larger?

Yes, when data has few repetitions

RLE format: What comes first?

Count first, then value

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.