GATEverse Practice, past papers & mock tests
GATE 2018
AlgorithmsDynamic ProgramminghardMCQ2 marks
Consider a matrix multiplication chain F1 F2 F3 F4 F5, where matrices F1, F2, F3, F4 and F5 are of dimensions 2x25, 25x3, 3x16, 16x1 and 1x1000, respectively. In the parenthesization of F1 F2 F3 F4 F5 that minimizes the total number of scalar multiplications, the explicitly computed pairs is/are:
Save your progress

Related Algorithms PYQs