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 cuts 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, not just sell the whole bar as one piece.
Rod length: 8 units Prices: [1:1, 2:5, 3:8, 4:9, 5:10, 6:17, 7:17, 8:20] Initial rod: [1][2][3][4][5][6][7][8] Cut options: [1] + [7] [2] + [6] [3] + [5] ... Try all to find max price
