Compression, Encryption and Hashing Flashcards

1
Q

Define compression

A

A process used to reduce the storage space required by a file

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

State 2 advantages of compression

A
  • Can store more files with the same amount of storage space
  • Allows quicker transfer of files over a network or the Internet
  • Compressed files are quicker to download over the Internet
  • Compressed files are quicker to search for
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State 2 purposes of compression

A
  • Reducing the size of files
  • Reducing download time
  • Reducing storage requirements
  • To make the best use of bandwidth
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define lossy compression

A

A compression algorithm that removes non-essential date from a files leading to a noticeable decrease in the accuracy data

The data lost is unrecoverable

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

Define lossless compressions

A

A compression algorithm that retains all the data in a file by only stating the instructions needed to reconstruct the original file

No data is lost

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

State an advantage and disadvantage of lossless compression

A

Advs
- Can restore file in its original quality when uncompressed

  • Ideal for vector- style images
  • Ideal for text documents and executable programs

Disadvs
- typically less effective at reducing the file size

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

Give two examples of lossless compression files

A

ZIP
PNG
GIF

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

Why is lossless compression better suited for text documents and executable files?

A

For these files data must not be lost during compression because the file must be restored in its entirety, therefore lossless compression is more suitable

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

Give two examples of lossy compression

A

JPEG
MP3
MPEG

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

State an advantage and disadvantage of lossy compression

A

adv
- significantly reduces file size
- suitable for images, audio and videos

Disadvs
- Some data is lost when the file is compressed

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