Compression Flashcards

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

What is data compression?

A

The reduction in the file size to reduce download times and storage requirements, as well as the time taken to transfer files over the internet.

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

What is lossless compression?

A

Reduces the size of a file while retaining all of the original data.

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

Lossy compression?

A

Reduces the size of a file by permanently removing some of the data.

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

Superchannel compression?

A

A form of compression where special data is selected for a special reason. This data is separated from the rest, and the rest is thrown out.

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

What is compression ratio?

A

The ratio between an uncompressed file size and the compressed file size.

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

What is the compression ratio of a 10 MB file to a 2 MB file?

A

5:1 (calculated by 10/2=5)

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

Give 3 examples of lossy file types?

A

mp3 and mp4 files and large resolution images such as jpegs

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

Give 3 examples of lossless file types?

A

text files and image files such as bmp, gif and png

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

What is run length encoding?

A

RLE is a very simple form of data compression in which runs of data (sequences of the same value) are stored in a single value and count. The run value is the actual value in the run eg. the letter A and the run count is the number of times the run value is repeated.

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

What is rrrrttxxiieeee in RLE?

A

r4t2x2i2e4

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

Pros of RLE?

A

RLE reduces file size and extra space is gained. It works best for files with long runs of data eg. bitmaps and with a few colours.

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

Cons of RLE?

A

The computer has to expend more processing power to use the file and sometimes the extra space gained is just not worth it.

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

What are lookup tables?

A

Another form of compression. We assign repeated data with a number in a table.

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

Put the ‘Happy Birthday’ song into a look up table:

Happy birthday to you,
Happy birthday to you,
Happy birthday dear name,
Happy birthday to you.

A
Number      Word in the song
      0                   Happy
       1                  birthday
      2                        to
      3                       you

We can write this out as:

0 1 2 3
0 1 2 3
0 1 dear name of person
0 1 2 3

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