Four Matrices \(M_1 , M_2, M_3\) and \(M_4\) of dimensions \(p \times q, \ q…

PYQ GATE 2011

Four Matrices M1,M2,M3M_1 , M_2, M_3 and M4M_4 of dimensions p×q, q×r, r×sp \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

  1. A. 248000
  2. B.

    44000

  3. C.

    19000

  4. D.

    25000

Attempted by 287 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…