/Simple-Huffman--ARCHIVE

implementing the algorithm huffman in Python3

Primary LanguagePython

Simple Huffman

implementing the algorithm huffman in Python3

Usage:

compress.py

  • python3 compress.py original compressed

decompress.py

  • python3 decompress.py compressed decompressed

Benchmark:

File Original Size Compressed Size Ratio
Test1 84 bytes 234 bytes +278.571%
Test2 598 bytes 588 bytes -1.672%
Test3 22301 bytes 12958 bytes -41.895%
Test4 285376 bytes 177650 bytes -37.749%