class Huffman
- Huffman
- Reference
- Object
Defined in:
huffman.crConstant Summary
-
VERSION =
"0.1.0"
Constructors
-
.new(text : String)
Use phrase or letter to calculate hash map
-
.new
Use default ASCII table
Instance Method Summary
-
#calculate(text)
Uses Huffman methods to encode Tree
- #count_chars(text, chars)
- #decode(encoded)
- #encode(text)
- #huffman(elements)
- #print_frequency(chars)