Compression Flashcards

1
Q

What is compression

A

Compression remains reducing the amount of storage space in bits that a given file takes up

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

Why do we need compression

A

1) To reduce storage requirements
2) To reduce download times
3) Make best use of bandwidth,over a network

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

What is the compression ratio

A

Compressed file size
——————————-
Original file size

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

What is lossy compression

A

The term lossy means that there will be an acceptable loss in data being compressed. Leading to uncompressed losing quality

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

How does lossy compression work

A

• The compression algorithm removes data permanently from the original file making it smaller in size (bits)
• The decompression algorithm recreates the lost data, based on the data that remains

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

When do you use lossy compression

A

1) Audio files
2) Video files
3) Images

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

What is lossless compression

A

Lossless indicates no loss of data when being compressed leading to the uncompressed version being identical to the original version

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

How does lossless compression work

A

Rewrites the code structure making it more efficient and therefore smaller in size. An index is generated containing the original details

Decompression algorithm recreates the original data using the index generated before

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

What are the 2 main examples of lossless compression

A

1) Run Length Encoding
2) Dictionary based methods

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

What is Run Length Encoding

A

Replacing repeating data with the number of times it’s repeated next to the thing it’s repeating E.G

CCFFGHKJHHFFFFFF

To

2C2FGHKJ2H6F

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

What is dictionary based coding

A

Using a dictionary it stores values to set of data and since it’s stored any repeating values aren’t added onto the end which saves storage

4 bit code | Entry
0000. | Hi
0001. | How

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