卷別
資料結構與演算法
選擇國立臺灣大學 2024 · 考試 · 第 6 題
考科演算法
(5 points) We want to multiply a sequence of matrices with the minimum number of multiplications. Since the matrix multiplication is associative, we can parenthesize the matrix multiplication in all possible orders. 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.
m_{i,j} = \min_{i \le k < j} \left( m_{i,k} + m_{k+1,j} + r_i c_k c_j \right) \tag{1}
Now consider , . For given and , let be the number of 's that have at the right-hand side of Equation 1, and let be the number of different 's that are at the right-hand side of Equation 1 when and . What is the approximate value of ?
- (A)
- (B)
- (C)
- (D)
- (E)