Compression Flashcards

1
Q

compression

A

A reduction in the number of bits needed to represent data

It reduces the size of the file

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

advantages of compression

A

it reduces the size of the file so

the transfer speed is quicker
uses less bandwidth, reducing internet traffic
takes up less storage space
allows large multimedia files to be streamed

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

2 types of lossless compression

A

RLE (Run Length Encoding)

Dictionary

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

Run Length Encoding

A

It uses a compression algorithm
No data is lost
Looks for repeated patterns
Replaces consecutive identical values into a code consisting of
the value of the data and a count (number of times it repeats) e.g. AAbbaaaBB = A2b2a3B2

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

Dictionary compression

A

It uses a compression algorithm
No data is lost
Looks for repeated patterns
Maintains a dictionary (index) of repeating patterns within a file.
Each pattern is given an ID/value
The patterns are replaced by their ID /value

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

lossy compression

A

It uses a compression algorithm
unnecessary data is lost(deleted) and cannot be restored
Uses perception shaping (changes that cannot be noticed)

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

describe how lossy compression could compress a music file

A

It uses a compression algorithm

Uses perception shaping
If 2 sounds played at the same time it removes the softer sound
Reduces bit rate/sample resolution
Reduces the sample rate
Removes sounds the human ear cannot hear
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

describe how lossy compression could compress an image file

A

It uses a compression algorithm

Use perception shaping
Similar colours are made the same
uses less colours (colour depth reduced)
reduce number of pixels (image resolution reduced

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

Describe how lossy compression could compress an video file

A

It uses a compression algorithm

reduce frame rate
similar colours are made the same
uses perception shaping
uses less colours (colour depth reduced)
reduce number of pixels (image resolution reduced)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What type of compression and why…

emailing a text document

A

Lossless
RLE or Dictionary would be used
No data is lost
File can be restored to it’s original state so it can be easily read

Lossy would remove data
So cannot be read when uncompressed

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

What type of compression and why…

emailing a holiday image

A

Lossy

would reduce the file size more than lossless
removes redundant/unnecessary data
images can still be of a similar quality (perception shaping)
file does not need to be restored to it’s original state
Faster to send / upload / download

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

State 4 image file formats and their type of compression

A

.bmp - uncompresssed file format
.png - lossless compression
.jpeg - lossy compression
.gif - lossless compression

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

State 2 audio file formats and their type of compression

A

,mp3 - lossy compression
.wav - lossless compression
.flac - lossless compression

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

file format for compressing documents

A

.zip

an archive that contains one or more files compressed

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