If I'm correct, Huffman Tree is made with two minimum frequencies and keeps going. For example, letters A,B,C,D,E,F has frequencies of 15, 40, 60, 10, 30, 45 (200 total). first, D would go left and A on right to make leaf nodes. second, E goes right
this is where it confuses me.
third, the next lowest frequencie letter is B. So I thought B is smaller than the current total(55) and therefore goes on the left like this:Current Tree
But the answer is to draw a new leaf nodes with B and F and then C goes to the left of 55 tree. Resulting this drawing:answer
I dont understand why B and F needs to make a new leaf node. Can someone explain?
I expected the B letter to go on the left of 55 node which makes the total of 95, next F(45) goes to left, lastly C(60) on the left. but the answer tree is not drawn as what i expected it to be. by what standards does a new tree (like B + F in the answer pic) is made?