Tree Properties & Traversals

Answer & solution
Official answer: 6
1. Set up the reasoning. Expand parentheses carefully, especially the subtraction of (c-d). This turns the tree into a linear expression with independent binary variables.
2. Derive the result. Label leaves left-to-right a,..., h. The expression expands as(a+b)−(c−d)+(e−f)+(g+h)=a+b−c+d+e−f+g+h. Set the six positive-coefficient leaves to 1 and the two negative-coefficient leaves to 0. The maximum is 6.
3. Check the interpretation. The d term is positive because it is subtracted twice. Set positive-coefficient leaves to one and negative-coefficient leaves to zero. The resulting assignment attains the coefficient upper bound, so it proves a maximum rather than only an example value.