演算法›Ch3 動態規劃第 5 題/共 40 題
5. Matrix Chain Multiplication、Dynamic Programming、計算順序
#AL-03-005中Matrix Chain MultiplicationDynamic Programming計算順序
We want to multiply a sequence of matrices with the minimum number of multiplications. Let be the minimum number of multiplications to multiply . We can derive a recursion of , where and are the numbers of rows and columns of the matrix respectively.
(1)
When we compute all 's with Equation 1, we must follow an order of and so that the 's on the right-hand side are all known when we compute . Please select all the correct orders in the following choices.
📄 台大113
▤完整推導請見《WH 資工筆記 · 演算法》Ch3 動態規劃