Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I want to make Huffman coding with Mathematica. I saw a demonstration, but it is not the thing I want to make. I want to show the tree for given string. Here is an example picture:

enter image description here

You can see the demonstration from here. This demonstration looks very atractive but difficult. However, I believe at least, making step by step should be possible.

share|improve this question

1 Answer 1

You can try this link: http://www.davidaltherr.net/mathematics/notebooks/huffman_encoding/huffman_encoding.php

Personally I'm working on another version of step by step Huffman tree encoding but for now I can't associate the tree i get with a binary code yet.

Good Luck!

share|improve this answer
    
thank you so much. –  forumcash May 20 at 1:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.