Compression Foundations Checkpoint

Entropy, expected length, Kraft inequality, and modeling.


1. Shannon entropy is defined as:
2. For two equally likely symbols, entropy is:
3. Kraft's inequality for prefix-free codes requires:
4. Expected code length is:
5. Shannon's bound for optimal prefix codes is:
6. Redundancy is:
7. Cross-entropy measures:
8. True/False: If a single symbol has probability 1, the entropy is 0.
9. Four equally likely symbols have entropy:
10. Greedy match selection can be suboptimal because: