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] returns the decoding of an association assoc representing a Huffman encoding as a string. |
Decode a Huffman encoding:
In[1]:= |
Out[1]= |
Decode a larger example:
In[2]:= |
Out[2]= |
HuffmanDecode is the inverse of the resource function HuffmanEncode:
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License