Chapter 15 Compression,Encryption,Hashing Flashcards
Why were file compression techniques created?
Reduce storage space on secondary storage, easier and quicker transmission, often easier to work with compressed files
Why are compression techniques useful on the internet?
Quicker transmission and less bandwidth used. This means less charge for using mobile phone networks. Also websites require quick loading to reduce buffering.
Why does compression do?
Reduces file sizes?
What are the two types of file compression techniques?
Lossy and lossless
What is lossy compression?
involves removing unnecessary data to reduce file size. The original data cannot be recreated
Examples of lossy compression? - file types
MP3,MP4 - audio
JPG,GIF - images
How is MP3 a type of lossy compression?
As frequencies outside of human hearing range are removed and quiet sounds played at the same time as loud ones are also removed
Where is lossy compression used on the internet?
Voice chat, quality noticeably removed but we can still hear the person
Advantages of lossy compression?
- compressed files uses less bandwidth when shared over internet
- takes up less storage space
- overall output quality is usually acceptable
Disadvantages of lossy compression?
- depending on degree of compression quality may be of very low standards
- cannot recreate original quality/file
What is lossless compression?
involves reducing file size in a way that means it can be reconstructed without any data loss
Examples of lossless file types?
WAV FLAC - audio
PNG BMP - images
Why is lossless compression required in the world?
As some programs, text files require all data to work or be useful
How does lossless compression work?
By recording patterns in data. It then uses patterns and set of information on how to use these patterns to assemble compressed data with exact accuracy
Advantages of lossless compression?
- orginal copy can be reassembled
- takes up less storage space and bandwidth (although more than lossy)
Disadvantages of lossless compression?
- a lot less space is saved compared to lossy
- a program of some sort is required to reconstruct the compressed data
How does lossless compression work in sound files?
Waveforms are condensed and reconstructed by algorithm.
What are the two types of lossless compression we have to know about?
Run Length Encoding (RLE)
Dictionary Based Compression
What does RLE stand for?
Run Length Encoding