阿摩線上測驗 登入

試題詳解

試卷:110年 - 110 國立臺灣大學_碩士班招生考試_電信工程研究所丙組:資料結構與演算法(B)#113108 | 科目:研究所、轉學考(插大)◆資料結構與演算法

試卷資訊

試卷名稱:110年 - 110 國立臺灣大學_碩士班招生考試_電信工程研究所丙組:資料結構與演算法(B)#113108

年份:110年

科目:研究所、轉學考(插大)◆資料結構與演算法

23. Suppose you can only choose to take or leave cach entire item. Let V[i]U] denote the highest total value you can obtain with items 1~i and a knapsack of weight capacity j. Which of the following recurrence relations is correct?
(A) V[i][j] = max(V[i - 1][j],V[i - 1][j -1] +v[i])
(B) V[i][j]=max(V[i - 1][j],V[i - 1][j -w[i])+v[i])
(C) V[i][j] = max(V[i][j - 1],V[i -1] [j-1] +v[i])
(D)V[i][j]= max(V[i][j-w[i]],V[i -1][j-w[i]]+  v[1])
正確答案:登入後查看

詳解 (共 1 筆)

推薦的詳解#7105812
未解鎖
1. 題目解析 這道題目是關於0-1背包...
(共 1123 字,隱藏中)
前往觀看
0
0