Skip to content

Buffless24/Huffman-coding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huffman coding

Huffman coding made in June 2020 by:

How to execute the program:

  • Before:

Insert the file to encode into Input folder

  • Run the program:

Execute the command ./run.sh

This file compile and execute the program.

Once launched, will be prompted to enter the name of the file previously inserted in the Input folder (only the file name, do not enter information relating to the path)

This executable will insert the encoded file and a Legend in the Output folder, to allow a simple translation. It will also print on the terminal some information to check how good the encode was.

image

The file is encoded and placed in the Output folder together with a file containing the Legend corresponding to the translation of the characters. I decided to write the encoded values inside the file as characters themselves. In this way the file is not actually compressed, since every 0 and 1 inserted are encoded with 8 bits. This choice is deliberate, since I think it is easier to carry out a check. (useful website to check: https://www.dcode.fr/huffman-tree-compression)

About

Simple Huffman coding

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.8%
  • Shell 2.2%