Consider the matrices P, Q, R and S which are 20 x 15, 15 x 30, 30 x 5 and 5 x 40 matrices respectively. What is the minimum number of multiplications required to multiply the four matrices?
(a) 6050
(b) 7500
(c) 7750
(d) 12000
I had been asked this question in semester exam.
My question comes from Matrix-chain Multiplication in division Dynamic Programming of Data Structures & Algorithms II