Huffman encodes two pseudo codes, and the Huffman coding of each character is obtained for the input character set and the weight corresponding to each character.