Re: huffman code question.....
- From: Carlos Moreno <moreno_at_mochima_dot_com@xxxxxxxxxxxxxx>
- Date: Thu, 10 Nov 2005 18:54:37 -0500
pitter wrote:
anyone can help ???
Suppose a data file contains a sequence of 8-bit characters such that all 256 characters are about as common: the maximum character frequency is less than twice the minimum character frequency. Prove that Huffman coding in this case is no more efficient than using an ordinary 8-bit fixed-length code.
Have you tried applying the Huffman encoding algorithm to the source described above?
I'm not sure how rigurous a proof you want, but perhaps a key detail that might help you prove it by induction (or something "a la" mathematical induction) is the fact that for any two characters in the set, it is true that the frequency of one of them is less than twice the frequency of the other one. This should allow you to see that for each branch of the Huffman tree, you're not gaining anything.
(I know, the above is sketchy... But you said "anyone can help?", as opposed to "anyone can do it?" :-))
HTH,
Carlos -- .
- Prev by Date: Re: Algorithm for finding roots of a multivariable function where derivative is not available
- Next by Date: Re: huffman code question.....
- Previous by thread: minitaller
- Next by thread: Re: huffman code question.....
- Index(es):