Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2013/iii/paper-59/4/a/solution

A decision tree queries individual input bits, chooses subsequent queries from previous answers and labels each leaf with an output. Its decision-tree depth is the largest number of queries on any root-to-leaf path; is the least such depth over trees computing . An evasive Boolean function on bits has .
Remove repeated queries along any path, since their answers are already known. A leaf at depth fixes bits and leaves at least one bit free. The inputs reaching it form a subcube on which is constant, say . Its contribution to the alternating sum is
Here is the Hamming weight. The leaf subcubes partition the input cube, so adding their contributions proves
The contrapositive is the alternating-sum criterion for decision-tree evasiveness: a nonzero alternating sum forces all bits to be necessary in the worst case.

New to topics? Read the docs here!