What is the purpose of compression?
To remove / reduce redundancy in data being transmitted.
Define Entropy…
What does Entropy provide a benchmark for?
What is the formula for Entropy H?
How would you calculate then entropy for written plain english?
What effect does the increase or decrease of entropy have on compression ability of the data?
The limit to which data can be compressed will always be…
The entropy of the data source.
What is the purpose of the Huffman Coding Algorithm?
An algorithm used to compress data from various mediums e.g Text, Audio etc.
What are the steps of the Huffman Coding Algorithm?
Do a Huffman Coding example on the data { A:0.16, B:0.51, C:0.09, D:0.13, E:0.11 } and calculate the average number of bits per symbol and compare this to the entropy…
What type of algorithm is Huffman Coding?
Greedy
What is the time complexity of Huffman Coding?
O( n log n )
Give the pros and cons of Huffman Coding…
Pros:
- Prefix free -> Instantly and uniquely decodable.
- Use in many compression standards -> JPEG, MPEG etc.
Cons:
- Need to know probabilities of symbols
- Error propagation -> If error occurs it will cause error overflow to next probability calculation.