In CLRS, the recurrence solution to the rod cutting problem is:
rn = max (pn, r1+rn-1,...,rn-1+r1)
This recurrence is pretty clear and I understood it.
However, I am facing difficulty in understanding the simpler version of this recurrence provided in the book, which is:
rn = max1<=i<=n(pi + rn-i) , where pi is the cost of piece of length i.
I don't understand, how this recurrence is similar to the first recurrence. To me the second recurrence may miss the optimal solution as we are not considering the optimal cost of first cut (we are simply taking it's normal price).
Shouldn't we always consider the optimize cost of the both sides like the first equation?