Understanding Huffman Code and Symbol Encoding - Explained Simply

  • Thread starter Thread starter *Jas*
  • Start date Start date
  • Tags Tags
    Code
AI Thread Summary
The discussion centers on understanding Huffman coding and calculating the average length of encoded symbols based on given frequencies. A user seeks help with a problem involving symbols and their frequencies, specifically how to create a Huffman code and compare it with another prefix code. There is confusion about the correctness of the drawn Huffman tree and the assigned binary codes for each symbol. The conversation highlights the importance of verifying the structure of the Huffman tree and the accuracy of the assigned codes. Overall, the thread emphasizes the need for clarity in encoding symbols using Huffman coding techniques.
*Jas*
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...
:confused:
the full question is attached!...help would be v. much appreciated!
 

Attachments

Physics news on Phys.org
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.
 
The virus risks are overstated (that, and I'm using OOo not Word).

The problem reads:
"Consider the symbols and frequencies:
e:0.36\;\;a:0.14\;\;d:0.26\;\;s:0.24

(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.
 
So far iv drawn the tree for the code concerned (attached image!)...however I am not sure whether it looks correct?? I am not sure about the bits in red?!?

im not sure which of the following to use:

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

or

e: 0.36 - 0

d: 0.26 - 10

s: 0.24 - 110

a: 0.14 - 111
 

Attachments

  • huffman.jpg
    huffman.jpg
    7.1 KB · Views: 486
dis is wrong u shuld dissconect from the site. u dnt deserve 2 be on the the website
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top