1.3.1 Compression, Encryption and Hashing Flashcards
(79 cards)
What is the overall purpose of compression?
To reduce file size
Why is making efficient use of bandwidth critical?
Because vast amounts of data are sent and streamed over the internet every day
What are the two main methods of compression?
Lossy compression and lossless compression.
What must happen to a compressed file before it can be read again?
It needs to be uncompressed.
How does color depth affect image file size?
The more bits per pixel used to represent colors (color depth)
What are two ways to reduce image file size using lossy compression?
Store fewer colors or store larger areas of pixels as a single color.
What is a key characteristic of lossy compression?
It reduces file size by sacrificing some quality
Why is lossy compression considered an acceptable compromise for images
audio
What is lossless compression?
A method of compression that reduces file size without sacrificing any quality
How does lossless compression work on images with large areas of the same color?
Instead of storing every pixel
What type of images are best suited for lossless compression?
Images with large continuous color areas like vector style images
Why is lossless compression less effective on full color photographs?
Because photographs have few large areas of continuous repeating colors.
Which file types must use lossless compression and why?
Text documents and executable programs
What happens to data in lossy compression?
Some data is lost and cannot be recovered.
What types of files are lossy compression very suitable for?
Images
What is the main advantage of lossless compression?
None of the original data is lost
What is the main disadvantage of lossy compression?
It causes a slight reduction in quality because some data is lost.
What is the key difference between lossy and lossless compression?
Lossy compression loses some data and quality to reduce file size
What is the key question to understand after watching this video?
What is the difference between lossy and lossless compression?
What are the two methods of lossless compression discussed?
Run-length encoding and dictionary coding.
Which type of files is dictionary coding ideal for?
Dictionary coding is ideal for text-based documents.
Which type of files is run-length encoding more suited for?
Run-length encoding is more suited for the compression of images.
What is the key feature of lossless compression methods?
They allow us to recreate the file in its original quality.
How does dictionary coding work?
It builds an index (a dictionary) where every data item is recorded with an indexed reference or unique code.