In the rod cutting problem with rod length and price array , the correct recurrence for maximum revenue is
B
Step-by-Step Solution
Key idea: The recurrence must include the option of not cutting the rod at all (selling it whole), which corresponds to .
Step 1: For a rod of length , we try every possible first cut of length where .
Step 2: If we cut a piece of length , we earn (price of piece ) plus (optimal revenue for remaining length ).
Step 3: When , the remaining length is , and . So the term becomes , which represents selling the rod uncut.
Step 4: The recurrence is:
with base case .
Answer: B