0
$\begingroup$

I know that given the following huffman tree:

A huffman tree

you can say that C occurs most in the dataset from which it was generated and D and B occur the least. Can you also say that the left most leaf on a level has a occurence that is greater than or equal to the rightmost?

$\endgroup$
1
  • $\begingroup$ What are your thoughts? Have you tried generating a counterexample? Have you tried working through some examples? Have you tried to prove your claim? $\endgroup$ – D.W. Jun 1 '17 at 19:44
1
$\begingroup$

My claim was not true. I've found counterexample on mathworld. If you look on the 4th level, you will see that 5th element is not in the correct position (if my statement were to be true).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.