ExercisesWrite an encoder/decoder of binary images using a simple version of fax compression.
- code each line separately
- use run length representation (for simplicity, use run lengths up to 20)
- use Huffman coding on the run lengths
- calculate run length statistics based on a bunch of images
- build a Huffman tree