Assertion (A): Dynamic programming can find the least cost tiling of an expression tree.
Reason (R): The optimal cost of a node depends only on the optimal costs of its subtrees.
Answer: C
Both are true and the reason gives the mechanism, and the property is exactly what dynamic programming requires. Optimality no longer follows once the intermediate form is a graph rather than a tree, since a shared node has more than one parent.
Please log in or register to report this question.