python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
import huffman import freq example = "large corpus of text" frequency_dict = freq.str_freq(example) freqs = list(frequency_dict.items()) ternary_huffman = huffman.HuffmanCode(freqs, 3) print(ternary_huffman.decode(ternary_huffman.encode(example)))
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up