Mental Model
We want to find the best way to multiply a chain of matrices so that the total number of multiplications is as small as possible.
Analogy: Imagine you have several boxes to stack, and the order you stack them affects how much effort it takes. Choosing the right order saves a lot of work.
Matrices: A1(10x30) -> A2(30x5) -> A3(5x60) Goal: Find best order to multiply A1 x A2 x A3 Chain: [10, 30, 5, 60] Each number is a dimension between matrices Initial: A1(10x30) -> A2(30x5) -> A3(5x60) -> null