mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Create README.md
This commit is contained in:
parent
f5490128cd
commit
cdfd761d87
13
dynamic_programming/README.md
Normal file
13
dynamic_programming/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
## dynamic programming
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
* take a recursive algorithm and cache overlapping problems (repeated calls).
|
||||||
|
* the runtime is given by the number of calls.
|
||||||
|
* **top-down**: how can we divide the problem into sub-problems?
|
||||||
|
* top-down dynamic programming is called **memoization**.
|
||||||
|
* **bottom-up**: solve for a simple case, then figure out for more elements.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
---
|
Loading…
x
Reference in New Issue
Block a user