This project is an implementation of a huffman coder. This very simple and common coding scheme capitalizes on redundancies within a data stream by replacing runs of symbols with characters from a precomputed table.
Huffman encoding source code (within the Cairo codec)
For more information, check out this blog post.