Introduction - If you have any usage issues, please Google them yourself
1. Accept the raw data: From the terminal reads the character set size n, n characters, and n-weights, the establishment of Huffman trees. 2. Coding: Using the already established a good Huffman tree, the body of the document to be encoded. 3. Decoding: Using the already well-established Huffman tree to decode the code. 4. Print encoding rules: namely, one to one correspondence between characters and encoding.