Let A1,A2,A3 and A4 be four matrices of dimensions 10×5,5×20,20×10 and 10×5, respectively. The minimum number of scalar multiplications required to find the product A1A2A3A4 using the basic matrix multiplication method is _________.View worked solutionShowHide
Answer: 1500
We are given four matrices with dimensions:
A1:10×5
A2:5×20
A3:20×10
A4:10×5
The dimension array is p=[10,5,20,10,5]. We can find the minimum number of scalar multiplications using the dynamic programming approach for the Matrix Chain Multiplication problem.
Let m[i,j] denote the minimum multiplications to compute Ai…Aj: