Compression, Encryption and Hashing Flashcards
What is compression?
Reducing file sizes.
What are the impacts of Compression?
Faster download times
Reduces storage requirements
Reduces network traffic
What is Loss Compression?
Permanently removing some of the original data
Impossible to reconstruct exact copy.
What is Lossless Compression?
Removes unnecessary meta data.
File can be reconstructed without any data loss.
What are the uses of Lossy Compression
When a file can “afford” to lose some data, whilst still being acceptable to the user.
For example, an image or audio file on a website
Which Image files use Lossy compression?
JPEG and GIF
Which video files use Lossy Compression?
MPEG, AVC, HEVC
Which audio files use Lossy Compression?
MP3, MP4, AAC
Advantages of Lossy Compression?
Uses less bandwidth on websites
Lots of tools, plugins and software to support it.
Disadvantages of Lossy Compression?
Quality degrades due to higher compression rate
What are the uses of Lossless compression?
When file information loss is unacceptable, such a historic piece of literature like Shakespear.
Which image files use Lossless compression?
PNG, BMP
Which audio files use Lossless compression?
WAV, FLAC
Advantages of Lossless compression?
Original file can be completely restored from compressed data.
Slight decrease in file size
Disadvantages of Lossless compression?
Compressed files are larger than lossy files
Increased bandwidth when used on websites.
What is Run-Length Encoding? (RLE)
Sequences of repeating data are replaced with a single value that states how many times it occurs.
e.g. AAAABBBC = 4A, 3B, 1C
What form of compression is Run-Length Encoding?
Lossless