Compression, Encryption and Hashing Flashcards
Define compression
A process used to reduce the storage space required by a file
State 2 advantages of compression
- 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
State 2 purposes of compression
- Reducing the size of files
- Reducing download time
- Reducing storage requirements
- To make the best use of bandwidth
Define lossy compression
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
Define lossless compressions
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
State an advantage and disadvantage of lossless compression
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
Give two examples of lossless compression files
ZIP
PNG
GIF
Why is lossless compression better suited for text documents and executable files?
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
Give two examples of lossy compression
JPEG
MP3
MPEG
State an advantage and disadvantage of lossy compression
adv
- significantly reduces file size
- suitable for images, audio and videos
Disadvs
- Some data is lost when the file is compressed