Lossy and Lossless (RLE) Compression Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is compression?

A

Reducing file size while retaining the core infomation
Means fewer bits are needed to convey the original infomation. Storage and upload, download and file transfer times can be reduced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Lossy Compression?

A
  • Some of the original data is removed from the file
  • Not used where all data is important(E.G code), but where the only consequence is loss of quality(E.G images and video)
  • After a file is decompressed the file isn’t the same as the original
  • JPEG and MP3 are two lossy compression algorithms - partly work by moving sounds / colours we recognise least
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is lossless compression?

A
  • No data is removed, but it’s rearanged to become more efficient
  • Can be done with Run Length Encoding(RLE)
  • Replaces repeated data(“run”) with frequency/data pairs
  • Works best with data likely to have lots of repeats
  • If there are few repeats(E.G random text), then RLE may add to the file size. Longer the run = most compression
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which compression type is more effective?

A

Lossy is usually more effective

How well did you know this?
1
Not at all
2
3
4
5
Perfectly