Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 327 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 327 Bytes

AdaptiveHuffman

Adaptive Huffman Encoder and Decoder written in C#.

Usage

Create instance:

var tree = new HuffTree();

Encode:

string encoded = tree.Encode(text);

Decode:

tree.Reset(); // reset tree before decoding. It will be automatically rebuilt
string decoded = tree.Decode(encoded);