Encryption and compression - 96 - 99 Flashcards
What is the trade-off between when compressing files?
The quality of the file and the amount of processing power that will be needed to compress/decompress
What does lossy compression involve?
- Reducing file size by removing non essential data
- original can’t be reconstructed
What does lossless compression involve?
Reducing file size in a way which results in no data loss
when is lossy compression used
sound and images
- in executable file, where all data is necessary
advantages of lossy compression
we can get a considerable reduction in file size and the user will notice no difference in quality
examples of lossy file formats
JPEG
MPEG
MP3
advantages of lossless compression
allows the original file to be recreated exactly
how does lossless compression work
- by using redundant data
- for example, if an item occurs multiple times, then the actual item will only be stored and sensed once
example of dictionary coding formats
- ZIP
GIF
PNG
examples of lossless compression
Dictionary coding and run length encoding
How does dictionary coding work?
substrings of original data are represented by
single tokens;
A dictionary is formed using the tokens as the keys;
The strings of symbols are used as the entries;
how does run length encoding work
The image is analysed to identify runs of the same value
- The values and counts of values are
stored
when is run length encoding used
source code,images
what is encryption
converting a message into a form that is only understandable by the intended parties
summarise the method of encryption
the sender will apply an encryption key to a plaintext message, the recipient receives the encrypted message and uses a decryption key to see the plaintext