mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-14 10:20:40 +08:00
build
This commit is contained in:
@@ -3,7 +3,7 @@ comments: true
|
||||
status: new
|
||||
---
|
||||
|
||||
# 14.7. 小结
|
||||
# 14.7 小结
|
||||
|
||||
- 动态规划对问题进行分解,并通过存储子问题的解来规避重复计算,实现高效的计算效率。
|
||||
- 不考虑时间的前提下,所有动态规划问题都可以用回溯(暴力搜索)进行求解,但递归树中存在大量的重叠子问题,效率极低。通过引入记忆化列表,可以存储所有计算过的子问题的解,从而保证重叠子问题只被计算一次。
|
||||
|
||||
Reference in New Issue
Block a user