1.3.1 Compression Flashcards
What is compression?
the process of reducing the storage size required by a file.
how does lossy compression work?
lossy compression reduce the size file by removing info.
this could result in a pixelated image or unclear audio recording.
removed info cannot be recovered.
How does lossless compression work?
- Lossless compression reduce the size of file without removing data.
- original file can be recovered from the compressed version.
What are the 2 methods of lossless compression?
- run length encoding.
- dictionary encoding.
What is run length encoding?
RLE is a method of lossless compression. Where repeated values are removed and replaced with one occurrence of the data followed by the number of repetition.
What is dictionary encoding?
Dictionary encoding is a method of lossless compression where occurring data is replaced with an index and compressed data are stored in dictionary which matches the occurring data in the index.