Back to the 2023 paper

Module 2: Fundamental Algorithmic Strategies

202314m

We are given the sequence {4,10,3,12,20,and 7}\{4, 10, 3, 12, 20, \text{and } 7\}. The matrices have size 4×10,10×3,3×12,12×20,20×74 \times 10, 10 \times 3, 3 \times 12, 12 \times 20, 20 \times 7. Find the most efficient way to multiply these matrices together using dynamic programming. The efficient way is the one that involves the least number of multiplications. Write all the steps with time complexity.

Similar questions