To run the program you need to navigate to Encoder folder like this:
cd Encoder
And then you need to run main.py:
python main.py
You will be prompted to enter message to encode.
It should look like this:
Type message to encode:
You need to enter message to encode.
After that program will build Huffman tree.
You will see output:
Encoding table :
This line will contain mapping of letters of message to their codes.
Encoded message :
This line will contain message, where letters of message will be replaced with their codes
-
Notifications
You must be signed in to change notification settings - Fork 0
Huffman tree builder
License
LilJohny/HuffmanEncoding
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Huffman tree builder
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published