A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
20
Task/Huffman-coding/Haskell/huffman-coding-2.hs
Normal file
20
Task/Huffman-coding/Haskell/huffman-coding-2.hs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
*Main> test "this is an example for huffman encoding"
|
||||
'p' : 00000
|
||||
'r' : 00001
|
||||
'g' : 00010
|
||||
'l' : 00011
|
||||
'n' : 001
|
||||
'm' : 0100
|
||||
'o' : 0101
|
||||
'c' : 01100
|
||||
'd' : 01101
|
||||
'h' : 0111
|
||||
's' : 1000
|
||||
'x' : 10010
|
||||
't' : 100110
|
||||
'u' : 100111
|
||||
'f' : 1010
|
||||
'i' : 1011
|
||||
'a' : 1100
|
||||
'e' : 1101
|
||||
' ' : 111
|
||||
Loading…
Add table
Add a link
Reference in a new issue