← 回題庫

卷別

資料結構與演算法(A)

選擇

國立臺灣大學 2022 · 考試 · 第 17 題

考科演算法

(5 points) What is the time complexity of finding the minimum number of scalar multiplications needed for A1A2…AnA_1 A_2 \dots A_n using dynamic programming?

  • (A)
    O(n2.5)O(n^{2.5})
  • (B)
    O(n3)O(n^3)
  • (C)
    O(n2)O(n^2)
  • (D)
    O(n)O(n)
  • (E)
    none of the other choices

標準解析

AI 生成