compression Flashcards

AS-level

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

why do we need to compress a file

A

– the data files are very large
–it would take a long time to send the non compressed file//compressed files will download faster
–a higher bandwidth would be needed to transmit the uncompressed file

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

what are the two types of compressions and define them

A

lossless file compression– in this technique the data is not lost ,and the compressed file can be decompressed as the original

lossy file compression– in this technique the data is lost and the decompressed file is not same as the original

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

application of lossy and lossless

A

lossy: accuracy of data is not important
smaller file size needed =>lossy reduces file size more than lossless

lossless: accuracy of data is important

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

abdullah wants to compress the source code, identify the most appropriate compression technique he should use.

A

lossless:-
– in this technique data is not lost
–any lost data will mean that program will not work

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

photograph is to be emailed to a friend .

A

lossy:-
– all the data is not required
–the number of colors can be reduced without the user noticing
–email requires a significantly smaller file size
–takes a shorter time to transmit

OR

lossless:-
–a high quality image may be needed.
–all of the data is needed and cannot afford to lose any data

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

how an bitmap image can be compressed

A

RLE(run length encoding) is lossless compression
–looks for runs of consecutive pixel of the same color
– store the color value once and the number ,of times it occurs
– lossless method of compression
–reference to the given image

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