http://www.perlmonks.org?node_id=370858


in reply to Re^3: When should a wheel be reinvented
in thread When should a wheel be reinvented

Huffman coding (with a translation table tailored to the data) guarantees the least number of generated bits possible while encoding each character (or whatever the input unit is) separately. But in most data, there is some correlation of each character to the ones around it that can be used to achieve better compression.