Answer:
Check the explanation
Explanation:
We muddy pseudo code for BOTTOM-UP-CUT-ROD by simply adding —c inside the parenthesis you have in line 6 (because that is were cut is made),
so that now it reads like this:
[tex]q=max(q,p[i]+r[j-i]-c)[/tex]
the after results will look like:
Modify pseudo code for BOTTOM-UP-CUT-ROD