Google Answers Logo
View Question
 
Q: Graph and Tree Problem ( Answered,   0 Comments )
Question  
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.

Request for Question Clarification by rbnn-ga on 17 Nov 2002 10:13 PST
Hi wjs-ga, 
 
I am interested in answering your question, but I believe that, to
answer
it well, your question will require more time and effort than the
average
amount of time and effort associated with $2.00. Here is a link to  
guidelines about pricing your question,  
 
https://answers.google.com/answers/pricing.html  
 
If you both significantly raise your price and also post a
clarification here, the
system will notify me and I will take another look at your question.

Request for Question Clarification by rbnn-ga on 17 Nov 2002 11:09 PST
I meant "Hi math01-ga" there. Sorry for any confusion.
Answer  
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
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

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 Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy