data compression with huffman coding

Compress

  • Type the name of the file to process: William1.txt
  • Type 1 to compress and 2 to decompress: 1
  • Original bits = 116
  • Compressed bits = 78
  • Saved 67.24% of memory

Output output.txt

Decompress

  • Type the name of the file to process: output.txt
  • Type 1 to compress and 2 to decompress: 2

Output output.txt

Reference Code