huffman_code
Build a Huffman coding tree from input text to return the code table, encoded bit count, compression ratio, and entropy for compression analysis.
Instructions
Build a Huffman coding tree for the given text and return the code table, encoded bit count, compression ratio, and entropy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to encode (max 100000 chars) |