Machine-translated by Google. Questions are authored in English.
Top

Discussion

Evaluating the child with the larger Sethi Ullman label first is advantageous because

  • A.the larger of the subtrees contains more instructions to schedule
  • B.the smaller subtree may be eliminated as dead code
  • C.the machine can only evaluate left children first
  • D.the result of the smaller subtree then needs only one held register

Answer: D

Holding one register while evaluating the smaller subtree costs less than the reverse order. The saving is exactly what makes the labelling worth computing at all. On a machine with few registers the difference can decide whether spilling occurs.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.