0
31
Written by
Fria
Fria
2 years ago
Example:
Sample Data: ABRACADABRA
Character Frequency Count: A -> 5, B -> 2, C -> 1, D -> 1, R -> 2
Huffman Tree:
Huffman Table:
A -> 0
B -> 100
C -> 1010
D -> 1011
R -> 11
Substitute:
ABRACADABRA = 0 100 11 0 1010 0 1011 0 100 11 0 (only 3 bytes)
(you need the table to decode... don't lose it!)
Source Code: https://github.com/rald/hufdos
Written by
Fria
Fria
2 years ago