1.3.1 Compression Flashcards

1
Q

What is compression?

A

the process of reducing the storage size required by a file.

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

how does lossy compression work?

A

lossy compression reduce the size file by removing info.
this could result in a pixelated image or unclear audio recording.
removed info cannot be recovered.

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

How does lossless compression work?

A
  • Lossless compression reduce the size of file without removing data.
  • original file can be recovered from the compressed version.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 2 methods of lossless compression?

A
  • run length encoding.
  • dictionary encoding.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is run length encoding?

A

RLE is a method of lossless compression. Where repeated values are removed and replaced with one occurrence of the data followed by the number of repetition.

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

What is dictionary encoding?

A

Dictionary encoding is a method of lossless compression where occurring data is replaced with an index and compressed data are stored in dictionary which matches the occurring data in the index.

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