What is data compression?
The removal of redundancy from data packets being transmitted. This improves reliability by decreasing the extent to which noise can interfere with the data.
What is Source Coding?
Another word for data compression.
What are the 3 models that compression algorithms can be based on? Define each…
Static Model: Applies the same compression technique for all text in the file.
Pro -> Fast
Con -> Non-optimal since different text have different statistical properties.
E.g. -> ASCII, Morse Code.
Adaptive Model: Compression models that progressively learn and update the model based on incoming text.
Pro -> Accuracy → Leads to better compression of data.
Con -> Decoding must start from the beginning of the data.
E.g. LZW Coding
Dynamic Model:
- Learn the statistics of the text, and generates a model based on what’s learnt.
- A preliminary test is required to generate the model.
- Model must be transmitted to the receiver.
- E.g Huffman Code
What is LZW coding?
LZW Coding uses Dictionary Coding, explain how dictionary coding works…
Give pros and cons of LZW coding…
Pros:
- Efficiently compresses data with redundant data or repeating sequences.
Cons:
- If data is already compressed or is randomised, compression wont be as effective.
Walk through the steps of how the LZW algorithm compresses (encodes) data…
Explain what LZW encoding is and how it works…
What through the steps of how the LZW algorithm decompresses (decodes) data…