If you want to see this project, you can see my video in YouTube
If you want run the console program, you need to compile the huffman.cpp file
g++ -o huffman huffman.cpp
Then, run the program
./huffman
- You need to install the latest version of C++ Compiler, I recommend the MinGW 6.3.0 compiler because in this compiler I was develop the algorithms
- You need to install the latest version of Python, or minimum the 3.10 version. Also you need to install Flask. You can install it with this command:
- None folder can be modify or delete because the app will stop works
- Maybe I'll host the app, but in this moment NO :p, so you can host the app with Ngrok or others host apps
pip install flask
- Compile the C++ algorithms
- Run the Python algorithm to run the Flask server
- Go to the localhost (127.0.0.1) in the port 5000 to open the app web
- Enjoy it :)
g++ -o huffmancompress huffmancompress.cpp
g++ -o huffmandecompress huffmandecompress.cpp
If you want to run the algorithms in the console, you can do it, but you need to type the names of the input file and the output file
./huffman compress <FILE INPUT .txt> <FILE OUTPUT .huff>
./huffman decompress <FILE INPUT .huff> <FILE OUTPUT .txt>
python app.py
In this repository you can find the documentation PDF of this project