Data Compression Flashcards

1
Q

What is lossless compression?

A

No data is removed when the file is compressed. Used on data that needs to be fully recovered to make sense.

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

What is lossy compression?

A

Data is permanently removed when the file is compressed, likely to achieve higher rates of compression.

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

When is lossy compression used?

A

Images and audios like .jpg, .mp3. When data loss isn’t completely noticeable.

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

When is lossless compression used?

A

RLE on text files. Dictionary encoding on large text files.

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

What are the benefits of compression?

A

Storage space - can fit more on the divide, therefore save money.
Bandwidth - reduces the time to download files, reduces data usages.

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

How is text compressed?

A

Lossless - Dictionary coding, with a table of contents and a regarding bit value.
Lossy - not appropriate as important data will be deleted, unreadable on the other end.

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

How are images compressed?

A

Lossless - RLE for a black and white image, dictionary coding can be used.
Lossy - Adjacent colours are grouped and given a common byte value.

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

How are audios compressed?

A

Lossless - RLE used for silence, doesn’t compress much.
Lossy - Removes the sounds the human ear cannot hear. Loud out plays the quiet so the quiet sound gets removed.

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

How are videos compressed?

A

Lossless - rare as it doesn’t achieve high enough compression rates.
Lossy - relative (differential) encoding is used and higher compression rates can be achieved.

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

What is relative (differential) encoding?

A

Can be lossless or lossy depending on whether the differences between consecutive data units are encoded precisely or approximated.
Only the differences between consecutive data units is transmitted rather than all the units.

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