This repository contains an implementation of Huffman Coding using a Min Heap. Huffman Coding is a popular algorithm used for lossless data compression. The Min Heap is utilized to efficiently build the Huffman Tree, which is essential for encoding and decoding processes.
- Implementation of Min Heap data structure
- Construction of Huffman Tree using Min Heap
Encoding
anddecoding
of data using Huffman Coding
heap.c
- Implementation of Min Heap operationsheap.h
- Function prototypesmain.c
- Example usage of Huffman Codingrun.sh
- Script to compile and run the program
- Emit Huffman tree
- Proper
main.c
file to run tests - Fix
run.sh
script - Decoding huffman
- parse input buffer to decode huffman
- Clone the repository:
git clone https://github.com/kam-stand/HUFFMAN_HEAP.git
- Navigate to the directory:
cd HEAP
- Compile the code:
./run.sh
After running the script, you can see the encoded and decoded output in the terminal. Modify main.c
to test with different input data.
This project is licensed under the MIT License. See the LICENSE file for more details.
- This implementation is based on the principles of Huffman Coding and Min Heap data structures.
- Inspired by various data structure and algorithm resources.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
For any questions or suggestions, feel free to reach out to the repository owner.