python3 main.py # You may also need to install some necessary libraries
- Read text and convert it to a frequency table.
- Build a Huffman tree from a frequency table.
- Traverse the Huffman tree and store all characters and corresponding codes into a dictionary.
- Encode the original message using the dictionary.
- Get the code table and binary code from the user.
- Build a Huffman tree from the code table.
- Decode the binary code using the Huffman tree.
This project is licensed under the Creative Commons Attribution License (CC-BY 4.0). See the LICENSE file for details.