master-algorithms-py/dynamic_programming
2023-07-30 21:44:16 -07:00
..
👾
2023-07-30 21:40:09 -07:00
2023-07-30 21:44:16 -07:00

dynamic programming


  • 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.