Princeton üniversitesinin paylaştığı örnek bir kod;
Huffman codes. Specific way to construct optimal prefix-free codes. Invented by David Huffman while a student at MIT in 1950. Huffman.java implements Huffman algorithm.
http://algs4.cs.princeton.edu/55compression/Huffman.java.html
-- Ref : http://algs4.cs.princeton.edu/55compression/