GATE CS 2011 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0113

Four matrices M1, M2, M3 and M4 are dimensions p x q, q x r, r x s and s x t respectively can be multiplied in several ways with different number of total scalar multiplications. For example When multiplied as \(((M_{1} \times M_{2})\times (M_{3}\times M_{4})\) the total number of scalar multiplications is pqr+rst+prt. When multiplied as \((((M_{1}\times M_{2})\times M_{3})\times M_{4})\) , the total number of scalar multiplications is pqr+prs+pst. If p=10, q=100, r=20, s=5 and t=80, then the minimum number of scalar multiplications needed is
  1. A
    248000
  2. B
    44000
  3. C
    19000
  4. D
    25000

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2140/gate2011-38

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com