演算法›Ch3 動態規劃
第 10 題/共 40 題
◀ AL 10/40
10. Matrix Chain Multiplication、Dynamic Programming
#AL-03-010中Matrix Chain MultiplicationDynamic Programming

Dynamic programming can be used to solve the matrix-chain multiplication problem. Suppose we hope to compute the matrix product A1A2…A6A_1A_2\ldots A_6 with the matrix dimensions as follows.

matrixA1A_1A2A_2A3A_3A4A_4A5A_5A6A_6
dimension30×3530\times3535×1535\times1515×515\times55×105\times1010×2010\times2020×2520\times25

Let m[i,j]m[i,j] be the minimum number of scalar multiplications needed to compute the matrix AiAi+1…AjA_iA_{i+1}\ldots A_j. What is m[2,5]m[2,5]? (A) 4375 (B) 7125 (C) 5375 (D) 8500 (E) none of the other choices

📄 台大111
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch3 動態規劃
本章題號 · 1–20 / 40