Huffman coding is a data compression technology, using a binary tree and two priority queue data structure. Its philosophy is that recoding data per character, the length of the cord and its frequency is inversely related, there is a number of shorter character encoding. So as to achieve the purpose of the compressed data.