Mental Model
We want to cut a rod into pieces to get the most money by selling those pieces. Each piece length has a price, and we try all ways to cut to find the best total price.
Analogy: Imagine you have a chocolate bar and different prices for each piece size. You want to break it into parts to sell and get the most money, like selling candy pieces separately instead of whole.
Rod length: 8 units Prices: [1=1$, 2=5$, 3=8$, 4=9$, 5=10$, 6=17$, 7=17$, 8=20$] Rod: 8 units long [1][2][3][4][5][6][7][8] ā Start cutting here
