/HuffmanCoding_Cpp

Huffman coding implemtation in C++ for Compressing any text file by reducing space requirement of repeating character by changing ASCII

Primary LanguageC++MIT LicenseMIT

File Compresser(Huffman Coding)

Huffman coding implemtation in C++ for Compressing any text file by reducing space requirement of repeating character by changing ASCII

Using data structure like priority Queue(min) , HashMap, Binary Tree.

Run Locally

Clone the project

  git clone https://github.com/piyush4for/HuffmanCoding_Cpp

Go to the project directory

  cd piyush_FileCompresser

Compile Encryting File

  g++ encode.cpp huffman.cpp -o encoder

Start the Encrytion

  encoder.exe inputFile.txt compressedFile.huf 

For decryption

  g++ decode.cpp huffman.cpp -o decoder

Start the decryption

  decoder.exe compressedFile.huf outputFile.txt 

Explanation

HandWritten_Explanation