Four matrices M1, M2, M3 and M4 are dimensions p x q, q x r, r x s and s x t
respectively can be multiplied in several ways with different number of total
scalar multiplications. For example When multiplied as \(((M_{1} \times M_{2})\times (M_{3}\times M_{4})\) the total number of scalar multiplications is pqr+rst+prt. When multiplied as \((((M_{1}\times M_{2})\times M_{3})\times M_{4})\) , the total number of scalar multiplications is pqr+prs+pst.
If p=10, q=100, r=20, s=5 and t=80, then the minimum number of scalar
multiplications needed is
- A248000
- B44000
- C19000
- D25000