|
|
Subject:
Graph and Tree Problem
Category: Computers > Graphics Asked by: math01-ga List Price: $2.00 |
Posted:
17 Nov 2002 10:03 PST
Expires: 17 Dec 2002 10:03 PST Question ID: 109374 |
3. Consider the alphabet: A = {A, B, C, D}, with the following probabilities of occurrences Symbol Probability A 0.7 B 0.10 C 0.05 D 0.15 Find the Huffman tree, and give the average code length of the corresponding code. | |
| |
|
|
Subject:
Re: Graph and Tree Problem
Answered By: maniac-ga on 18 Nov 2002 16:14 PST |
Hello Math01, There is a good example for almost the exact same problem at http://www.geocities.com/hmaxf_urlcr/huffman.htm Using the following code... A = 0 D = 10 B = 110 C = 111 and the probabilities you specified, the average bit size is 1 x 0.7 + 2 x .15 + 3 x .15 = 1.45 Good search phrases include: huffman compression code algorithm --Maniac |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |