Code Knitter — Algorithms

Build a Huffman tree, merging the two smallest weights until you get the shortest codes: 18 levels of greedy algorithms, prefix codes and compression.