Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Decode data specified by a Huffman encoding
ResourceFunction["HuffmanDecode"][assoc] decodes an association representing a Huffman encoding. |
Decode a Huffman encoding:
| In[1]:= |
| Out[1]= |
Decode a larger example:
| In[2]:= | ![]() |
| Out[2]= |
For lists of characters, HuffmanDecode is the inverse of HuffmanEncode:
| In[3]:= |
| Out[3]= | ![]() |
| In[4]:= |
| Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License