An open API service indexing awesome lists of open source software.

https://github.com/josgard94/text-compressor-using-huffman-codes

This source code implements the huffman algorithm to perform the compression of a plain text file. for this a file is generated which contains the probabilities of each of the symbols defined in the symbols dictionary.
https://github.com/josgard94/text-compressor-using-huffman-codes

c c-plus-plus coding- coding-and-data-compression compression-algorithm huffman-coding huffman-compression-algorithm information-theory python text-compression

Last synced: about 2 months ago
JSON representation

This source code implements the huffman algorithm to perform the compression of a plain text file. for this a file is generated which contains the probabilities of each of the symbols defined in the symbols dictionary.

Awesome Lists containing this project

README

        

# Text-compressor-using-huffman-codes
This source code implements the huffman algorithm to perform the compression of a plain text file. for this a file is generated which contains the probabilities of each of the symbols defined in the symbols dictionary.

To execute this algorithm correctly, you must first compile the code in c that generates the probability of the symbols set in it.

As a second step you must execute the source code corresponding to the Huffman encoder. The execution of this will generate a .dat file which is the compressed text file. Note: When performing the Hamming algorithm and to achieve a considerable reduction in the size of the text file, the writing of the .dat file is done directly to disk using a writing strategy that allows to write byte by byte the data.

Finally, to recover the text file, execute the corresponding source code for the decoder.