Questions: Data Compression Basics

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

A compressor uses LZ77 (sliding-window dictionary matching) followed by Huffman coding. What is the role of each component?

ALZ77 provides lossy compression; Huffman provides lossless compression
BLZ77 serves as the model, replacing repeated patterns with short references to reduce redundancy; Huffman serves as the entropy coder, compressing the references and literal symbols to near their entropy
CLZ77 handles text data; Huffman handles binary data
DBoth perform the same function redundantly for error correction
Question 2 Multiple Choice

A 1 MB file of truly random bytes (each byte uniformly and independently distributed) is fed to gzip. The output will be approximately:

AMuch smaller — gzip always compresses effectively
BApproximately 1 MB plus a small overhead — random data has maximum entropy (8 bits/byte) and cannot be compressed
CExactly 0 bytes — gzip recognizes random data and discards it
DApproximately 0.5 MB — compression always achieves at least 50% reduction
Question 3 Short Answer

Lossy compression can exceed the entropy limit that bounds lossless compression. Explain why this is not a contradiction.

Think about your answer, then reveal below.