22 lines
415 B
C
22 lines
415 B
C
' ': 000
|
|
'a': 1000
|
|
'c': 01101
|
|
'd': 01100
|
|
'e': 0101
|
|
'f': 0010
|
|
'g': 010000
|
|
'h': 1101
|
|
'i': 0011
|
|
'l': 010001
|
|
'm': 1111
|
|
'n': 101
|
|
'o': 1110
|
|
'p': 10011
|
|
'r': 10010
|
|
's': 1100
|
|
't': 01111
|
|
'u': 01110
|
|
'x': 01001
|
|
encoded: 0111111010011110000000111100000100010100001010100110001111100110100010101000001011101001000011010111000100010111110001010000101101011011110011000011101010000
|
|
decoded: this is an example for huffman encoding
|