Mental Model
We want to find the best way to multiply a chain of matrices to use the least number of multiplications.
Analogy: Imagine you have several boxes to stack, and the order you stack them changes how easy it is to move them. Finding the best stacking order saves effort.
Matrices: A1(10x30) -> A2(30x5) -> A3(5x60) Goal: Find best way to multiply A1 x A2 x A3 Chain: [10, 30, 5, 60] Each number is a matrix dimension Initial: A1 -> A2 -> A3 Dimensions: 10x30 -> 30x5 -> 5x60
