*Jas*
How does Huffman coding calculate average symbol length?
- Context: Undergrad
- Thread starter *Jas*
- Start date
-
- Tags
- Code
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 4K views
Discussion
Physics news on Phys.org
Science Advisor
Homework Helper
- 42,895
- 983
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.
Science Advisor
Homework Helper
- 2,832
- 0
The virus risks are overstated (that, and I'm using OOo not Word).
The problem reads:
"Consider the symbols and frequencies:
[itex]e:0.36\;\;a:0.14\;\;d:0.26\;\;s:0.24[/itex]
(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.
The problem reads:
"Consider the symbols and frequencies:
[itex]e:0.36\;\;a:0.14\;\;d:0.26\;\;s:0.24[/itex]
(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.
*Jas*
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
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
coventry
- 1
- 0
dis is wrong u shuld dissconect from the site. u dnt deserve 2 be on the the website
Similar threads
How Do You Calculate the Total Weight of a Huffman Code?
- mathmari
- · Replies 1 ·
- Set Theory, Logic, Probability, Statistics
- Replies
- 1
Graduate How Does Huffman Coding Affect Symbol Frequencies in a Markov Source?
- techmologist
- · Replies 6 ·
- Set Theory, Logic, Probability, Statistics
- Replies
- 6
Huffman coding is currently being replaced with ANS coding
- jarekduda
- · Replies 2 ·
- Programming and Computer Science
- Replies
- 2
Calculate average current flow in an electric eel (Simple Circuit Questions)
- fishes
- · Replies 7 ·
- Introductory Physics Homework Help
- Replies
- 7
How to Calculate Average Velocity and Speed?
- Immy2000
- · Replies 6 ·
- Introductory Physics Homework Help
- Replies
- 6
How Do You Calculate Average Body Density Using Archimedes' Principle?
- aarunt1
- · Replies 3 ·
- Introductory Physics Homework Help
- Replies
- 3
How Do You Calculate Average Power in an AC Circuit with Phasors?
- ineedmunchies
- · Replies 3 ·
- Electrical Engineering
- Replies
- 3