Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Huffman code?

  1. Feb 17, 2008 #1
    Huffman code?!?

    Hi there!:smile:

    Im having abit of trouble getting my head around this question concerning the Huffman code,the average length of an encoded symbol etc...
    the full question is attached!....help would be v. much appreciated!

    Attached Files:

  2. jcsd
  3. Feb 17, 2008 #2


    User Avatar
    Staff Emeritus
    Science Advisor

    You should be aware that most people will not open a "doc" file from someone they don't know. They area notorious for having viruses.
  4. Feb 17, 2008 #3


    User Avatar
    Science Advisor
    Homework Helper

    The virus risks are overstated (that, and I'm using OOo not Word).

    The problem reads:
    "Consider the symbols and frequencies:

    (a) Find the Huffman code, and the average length of an encoded symbol.
    (b) Give another prefix code for the symbols a, e, d, s. Compare the average lengths of an encoded symbol for the two codes."

    So, what have you done on the problem so far? Seems straightforward enough to me.
  5. Mar 2, 2008 #4
    So far iv drawn the tree for the code concerned (attached image!)...however im not sure whether it looks correct!?!? im not sure about the bits in red?!?

    im not sure which of the following to use:

    d: 100
    a: 101
    s: 110
    e: 111


    e: 0.36 - 0

    d: 0.26 - 10

    s: 0.24 - 110

    a: 0.14 - 111

    Attached Files:

  6. Mar 18, 2008 #5
    dis is wrong u shuld dissconect from the site. u dnt deserve 2 be on the the website
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Huffman code?
  1. Coding Theory (Replies: 4)

  2. Coding and GF(2) (Replies: 1)