1.3 Compression Flashcards

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

Why is compression needed?

A
  • Data files can be very large.
  • It would take too long to send an uncompressed file.
  • The compressed file will download faster.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Lossy compression

A

Lossy compression removes data from the file, resulting in loss of detail.

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

Lossless compression

A

Lossless compression reduces file size without losing any original detail. Allowing the original file to be perfectly reconstructed.

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

A program written in a high-level language.

Use Lossy or Lossless?

A

Lossless

1) All the data is needed
2) If data is lost, the program will not run.

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

A photograph emailed to a friend?

Lossy or Lossless?

A

Lossy

1) Not all the data is required.
2) Number of colours can be reduced without the user noticing.
3) Email requires a smaller file size.

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

Uploading a video to a website?

Lossy or Lossless?

A

Lossy

1) Some loss of quality will not be noticed.
2) A more significant reduction may be needed.
3) Takes a shorter time to upload.

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

How can a text file be compressed?

A

Huffman compression, repeated sequences can be represented with a variable to lower file sizes.

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

How can a Bitmap image be compressed?

A

Run-length encoding, storing the number of times each color occurs.

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

How can a sound file be compressed?

A

Lossy compression, sample resolution can be reduced so fewer bits will be used to to each sample so less data stored.

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

What is meant by Run-length encoding?

A
  • lossless form of compression.
  • reduces the physical size of a string of adjacent pixels
  • the repeating string is encoded into the frequency: notation form.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain how temporal redundancy compresses

a video.

A
  • Identifies pixels that do not change between frames.
  • Records only the differences between the frames.
  • Makes file size smaller.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly