I'm a little confused on how to modify the bottom-up-cut-rod algorithm to include a fixed cost c for each cut. Making the revenue the sum of the price of the pieces minus the cost. I have something like this but I'm not sure if I'm on the right track.
MODIFY-BOTTOM-UP-CUT-ROD(p,n)
1. let r[0..n] be a new array
2. r[0] = 0
3. for j = 1 to n
4. q = -INF
5. for i = 1 to j
6. q = max(q,p[i] + r[j-i] - c)
7. r[j] = q
8. return r[n]