P2 T1 L13 - Compression Flashcards
____ is constantly being moved around computer systems and networks.
Transfer is usually ________ and ________.
As distances get longer, transfer is ______ and more susceptible to ____________.
Storage space can be ______.
Data
high-speed accurate
slower interference
limited
Text, image and sound data can be significantly reduced in size.
Reducing the amount of data to send or store ensures that…. (4 points)
- Data is sent more quickly
- Less bandwidth is used as transfer limits may apply
- Buffering on audio and video streams is less likely to occur
- Less storage is required
What are the 2 different types of data compression?
- Lossy
2. Lossless
Explain lossy compression
1 point
- Non-essential data is permanently removed
e. g. different shades of the same colour in an image or frequencies of sound outside the range of human hearing
Explain lossless compression
1 point
- Patterns in the data are spotted and summarised in a shorter format without permanently removing any information
Describe lossy compression on a JPG file.
2 steps
- Removes data permanently to reduce file size
2. Tries to reconstruct an image without the missing data
Describe lossy compression on an MP3 file.
2 steps
- Lossy compression removes the sounds in the frequency ranges that we can’t so easily hear or that least affect the perceived playback quality.
- Quieter notes played at the same time as louder sounds are also removed.
Explain run length encoding (RLE)
2 steps
- A basic method of compression that summarises consecutive patterns of the same data
- Works well with image and sound data where data could be repeated many times
Describe RLE of sound
3 steps
- A sound recording could have many thousands of samples taken every second (typically 44,000)
- The same sound or note played for a fraction of a second could result in hundreds of identical samples
- RLE records one example of the sample and how many times it consecutively repeats
Explain dictionary compression
3 points
- Spots regularly occurring data and stores it separately in a dictionary
- The reference to the entry in the dictionary is stored in the main file thereby reducing the original data stored
- Even though the dictionary produces additional overheads the space saving negates this problem
_________ reproduces the original data but doesn’t always compress by a significant factor.
Lossless
_______ can never recreate exactly the original data but does reduce file size significantly
Lossy