CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

What is the minimum number of multiplications involved in computing the matrix product PQR? matrix P has 4 rows and 2 columns, matrix Q has 2 rows and 4 columns, and matrix R has 4 rows and 1 column

Open in App
Solution

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)

flag
Suggest Corrections
thumbs-up
2
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Algebraic Operations
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon