Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
    
This is the exact answer mathematica.stackexchange.com/questions/42734/… – Rorschach Apr 20 at 4:20

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 '14 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.