ParentFull threadmathgenius·Have you looked at Huffman coding? I'd recommend the (free) book by David MacKay, it is secretly the "hackers guide to thermodynamics".http://www.inference.org.uk/mackay/itila/book.htmlView on HN