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.
- Host: GitHub
- URL: https://github.com/josgard94/text-compressor-using-huffman-codes
- Owner: josgard94
- Created: 2019-06-16T09:03:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T21:25:14.000Z (almost 6 years ago)
- Last Synced: 2025-01-21T21:34:08.847Z (4 months ago)
- Topics: c, c-plus-plus, coding-, coding-and-data-compression, compression-algorithm, huffman-coding, huffman-compression-algorithm, information-theory, python, text-compression
- Language: C++
- Size: 1.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.