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 at a fair.
Rod length: 8 units Prices: [1, 5, 8, 9, 10, 17, 17, 20] Initial rod: [1][2][3][4][5][6][7][8] ā full rod length 8
