Sethi Ullman numbering labels each node of an expression tree with
Answer: A
Correct answer: the minimum number of registers needed to evaluate that subtree
The label of a node follows from its children: equal labels need one more register than either, unequal labels need the larger of the two. Evaluating the more demanding subtree first then minimises the registers required, which is what the numbering is for.
Please log in or register to report this question.