dacompress is a simple tool to compress and decompress the text files following the Huffman Coding Tree Algorithm.
dacompress [--options] <filename>
Run make in the project folder.
Run g++ -o dacompress main.cpp and use it using ./dacompress.
dacompress can be used in 3 direct ways:
1. Without specifying any option, it will self analyze the file and will compress or decompress it
-> dacompress <filename>
2. With compress option
-> dacompress --compress <filename>
3. With decompress option
-> dacompress --decompress <filename>
➜ da-compress git:(main) ✗ dacompress --compress test.txt
Compressed file generated: compressed_test.txt➜ da-compress git:(main) ✗ dacompress test.txt
Compressed file generated: compressed_test.txt➜ da-compress git:(main) ✗ dacompress compressed_test.txt
Decompressed file generated: decompressedcompressed_test.txt.txt
- For project idea: Build Your Own Compression Tool
- Huffman Coding Trees