卷別
資料結構與演算法(A)
選擇國立臺灣大學 2022 · 考試 · 第 16 題
考科演算法
(5 points) Dynamic programming can be used to solve the matrix-chain multiplication problem. Suppose we hope to compute the matrix product with the matrix dimensions as follows.
| matrix | ||||||
|---|---|---|---|---|---|---|
| dimension |
Let be the minimum number of scalar multiplications needed to compute the matrix . What is ?
- (A)4375
- (B)7125
- (C)5375
- (D)8500
- (E)none of the other choices