https://github.com/farhaduneci/huffmancoding
Huffman Coding Compression Algorithm Implementation
https://github.com/farhaduneci/huffmancoding
algorithm huffman-coding
Last synced: 9 months ago
JSON representation
Huffman Coding Compression Algorithm Implementation
- Host: GitHub
- URL: https://github.com/farhaduneci/huffmancoding
- Owner: farhaduneci
- Created: 2021-10-01T09:22:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T13:35:37.000Z (over 3 years ago)
- Last Synced: 2025-01-15T21:01:27.725Z (11 months ago)
- Topics: algorithm, huffman-coding
- Language: Python
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Huffman Coding Compression Algorithm
Huffman Coding Algorithm implemented in Python
## Demo
```bash
python3 HuffmanCoding.py -d "Hello World"
```
```bash
{
" ": "000",
"d": "001",
"H": "010",
"W": "011",
"l": "10",
"o": "110",
"r": "1110",
"e": "1111"
}
Encoded: 01011111010110000011110111010001
ASCII: 77 bit, HUFFMAN: 32 bit.
Decoded: Hello World
```
## Resources
- https://en.wikipedia.org/wiki/Huffman_coding
- https://www.programiz.com/dsa/huffman-coding
- https://towardsdatascience.com/huffman-encoding-python-implementation-8448c3654328