Given, [P]4x2,[Q]2x4,[R]4x1
Multiplcation can be done only when number of column of the first matrix is equal to the number of rows of the second matrix,
Let, Q = [abcdefgh]
R = ⎡⎢
⎢
⎢⎣pqrs⎤⎥
⎥
⎥⎦
Case I: QR = [abcdefgh] ⎡⎢
⎢
⎢⎣pqrs⎤⎥
⎥
⎥⎦
=[ap+bq+cr+dsep+fq+gr+hs]
∴ Number of multiplication from [Q]2x4[R]4x1 is equal to (2x4x1 = 8).
Similarly, number of multiplication from [P]4x2[QR]2x1 is
equal to (4x2x1 =8)
Hence, total number of multiplications
=8 + 8 = 16
Case II: No. of multiplication required in PQ is
4 x 2 x 4 = 32
No. of multiplication required in [PQ] [R] is
4 x 4 x 1 = 16
Total number of multiplications = 32 + 16 = 48.
∴ Min. number of multiplications = 16. (using case I)