This repository contains a Java implementation of Huffman coding, a popular data compression algorithm. Huffman coding is used to compress and decompress data efficiently, making it a useful tool for various applications.
- Huffman coding algorithm implementation.
- Compression of text data using Huffman codes.
- Decompression of Huffman-encoded data.
To get started with this project, follow these steps:
-
Clone the repository to your local machine
-
Open the project in your Java development environment (e.g. IntelliJ).
-
Build and run the project to access the Huffman coding functionality.
gradle build
-
The runnable jar can be found in build/libs
-
Place the jar in the folder where you need to compress the text file and run the following command to compress and decompress
java -jar huffman-compression.jar <YOUR_TEXT_FILE> compress # Compress
java -jar huffman-compression.jar <YOUR_TEXT_FILE> decompress # Decompress
This project is licensed under the MIT License - see the LICENSE.md file for details.
If you have any questions or suggestions, feel free to reach out to the project maintainer:
Rishabh Gupta
Email: [email protected]