Add u9/huffman_tree.py
This commit is contained in:
parent
ce27e2a8ee
commit
821f53c209
23
u9/huffman_tree.py
Normal file
23
u9/huffman_tree.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
class HuffmanNode:
|
||||||
|
def __init__(self, data=None, frequency=0, left=None, right=None):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class HuffmanTree:
|
||||||
|
def __init__(self, data):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def tree(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def codes(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def encode(self, text):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def decode(self, bits):
|
||||||
|
pass
|
||||||
Loading…
Reference in New Issue
Block a user