Huffman Coding
An optimal prefix-free compression algorithm that assigns shorter bit strings to more frequent symbols. Build the Huffman tree step-by-step, inspect codes, and see live compression statistics.
Priority Queue (min-heap) — Step 0
| Char | Freq | Code | Bits | Contribution |
|---|
Encoded bits will appear here…