Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2011
Questions

Q38

MCQ2 marks, −0.67AlgorithmsMedium

Four Matrices M1,M2,M3M_1, M_2, M_3 and M4M_4 of dimensions p×q,  q×r,  r×s p \times q, \:\:q \times r, \:\:r \times s and s×ts \times t respectively can be multiplied in several ways with different number of total scalar multiplications. For example when multiplied as ((M1×M2)×(M3×M4))((M_1 \times M_2) \times (M_3 \times M_4)), the total number of scalar multiplications is pqr+rst+prtpqr + rst + prt. When multiplied as (((M1×M2)×M3)×M4)(((M_1 \times M_2) \times M_3) \times M_4), the total number of scalar multiplications is pqr+prs+pstpqr + prs + pst. If p=10,q=100,r=20,s=5p=10, q=100, r=20, s=5 and t=80t=80, then the minimum number of scalar multiplications needed is

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.