ISRO 2020 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0082

Consider product of three matrices \(M_{1}\),\(M_{2}\) and \(M_{3}\) having w rows and x columns, x rows and y columns, and y rows and z columns. Under what condition will it take less time to compute the product as \(\left(M_{1} M_{2}\right) M_{3}\) than to compute \(M_{1}\left(M_{2} M_{3}\right)\) ?
  1. A
    Always take the same time
  2. B
    \((1 / x+1 / z) \lt (1 / w+1 / y)\)
  3. C
    \(x \gt y\)
  4. D
    \((w+x) \gt (y+z)\)

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/331382/isro2020-79

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