Rod Cutting: Bottom-Up DP

Filling the revenue table r[0..n] for optimal rod cutting

Click "Next Step" to begin the bottom-up computation

Price Table p[i]

Revenue Table r[j] (being computed)

Best First Cut s[j]

Current j
Comparing (i, j−i)
Using r[j−i]
Filled
Optimal