Skip to content

Commit 0a22048

Browse files
authored
Add files via upload
This code is an implementation of Huffman Coding using C++. It enables efficient text compression and decompression through frequency-based encoding, constructing a Huffman Tree, assigning variable-length codes, and translating text to and from its binary representation.
1 parent 2ae25d6 commit 0a22048

File tree

4 files changed

+474
-0
lines changed

4 files changed

+474
-0
lines changed

codes.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
4 00
2+
d 01
3+
e 10
4+
r 11

decoded.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ee4rderd4rderd4

encoded.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
101000110110110100110110110100

0 commit comments

Comments
 (0)