- Constructed a Huffman code for each of the probability distributions obtained from the frequency tables.
- Using the Huffman Algorithm encoded the source file’s contents into another file. Displayed the size of the encoded file.
- From the encoded file, decoded the original source file by extracting the symbols from the codewords.
- Checked the decoded output with the original file (via a code snippet) and ensured there is no error in decoding.