Sethi–Ullman numbering
A number attached to each node of an expression tree giving how many registers it takes to evaluate that subtree — and therefore which child to evaluate first.
Ravi Sethi and Jeffrey Ullman showed in 1970 how to generate optimal code for arithmetic expressions using as few registers as possible. A leaf gets 1. An inner node whose children differ takes the larger value; if they tie, it gets one more. The code generator's rule then writes itself: always evaluate the hungrier subtree first, so its result can sit in a register while the cheaper one is computed.
The idea goes back to Andrey Ershov, who used similar numbers in the Soviet Union as early as 1958, which is why they're sometimes called Ershov numbers. It only holds strictly for trees without shared subexpressions; once values get reused the problem turns NP-hard. Still, the algorithm survives in textbooks and in simple compilers, where one tree at a time is all there is.