Introduction - If you have any usage issues, please Google them yourself
Huffman coding using optimal prefix code of the greedy algorithm constructs huffman tree: First, scan the input file, the characters appear as well as statistics the number of occurrences of each character. Take the minimum number of occurrences for each two nodes (node) into a single node (node), and the total value added as the cumulative number of new contacts, the top is the root node (root)