Created by Marouf Haider
National Higher School of Mathematics, Cryptography Coding & Security
Email: haider.marouf@nhsm.edu.dz / ensmmarouf@gmail.com
This is a standalone Python application for Q-ary Huffman encoding and compression visualization.
You can analyze text, compress it with variable Q-values, visualize the Huffman tree, and compare compression performance.
No Python installation is required — just double-click the .exe
.
⚠️ This implementation is educational and may contain unintentional errors. If you encounter issues, feel free to reach out.
- Launch
Huffman.exe
(no installation needed). - Enter your text or upload a file.
- Choose a Q-value (e.g., 2 for binary, 3 for ternary).
- Click Encode to generate encoded output.
- View:
- Symbol frequencies
- Huffman tree visualization
- Compression metrics
- Export results using buttons:
- Encoded text
- Standalone decoder
- Full package with metrics and JSON
If you use the Export Full Package option, it includes:
encoded_output.txt
– the compressed bit stringhuffman_decoder.py
– a minimal decoder moduleencoding_data.json
– metadata and codesREADME.md
– this file
- Python 3.8+
matplotlib
ttkthemes
(optional for GUI theme)
This software is released for educational and non-commercial use.
Contact Marouf Haider for more.