zh-hant/chapter_dynamic_programming/knapsack_problem/ #1622
Replies: 1 comment
-
我嘗試整理暴力搜尋例子的狀況,因為只有三層,而且有修剪,所以可以用二元樹表示。但詳細比較,記憶化搜尋時,dp 表變成 m*n = cap * n 是方格狀的,如果可以把背包的狀態,選擇講清楚,那麼理解和記憶會更輕鬆。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
zh-hant/chapter_dynamic_programming/knapsack_problem/
動畫圖解、一鍵執行的資料結構與演算法教程
https://www.hello-algo.com/zh-hant/chapter_dynamic_programming/knapsack_problem/
Beta Was this translation helpful? Give feedback.
All reactions