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]
Optimal Cuts for Rod of Length
Max Revenue:
Current j
Comparing (i, j−i)
Using r[j−i]
Filled
Optimal
Reset
← Previous
Next Step →
Auto Play