Chapter 12 — Dynamic Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:06 PM on 8/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards
Dynamic programming
Avoiding repeated work in recursive-style problems
2
New cards
Recursive speed trap
Recursive code gets slow by repeating the same calculations
3
New cards
Overlapping subproblems
The same smaller problem is solved repeatedly
4
New cards
Fix repeated recursion
Store the recursive result and reuse it
5
New cards
Bad recursive max
Can become O(2^N) if it repeats recursive calls
6
New cards
Improved recursive max
O(N), if each element is processed once
7
New cards
Fibonacci sequence
Each number is the sum of the previous two numbers
8
New cards
Recursive Fibonacci problem
It repeats many of the same calculations
9
New cards
Recursive Fibonacci Big O
O(2^N)
10
New cards
Memoization
Saving previously computed results
11
New cards
Memoization storage
Usually a hash table
12
New cards
Memoized Fibonacci Big O
O(N)
13
New cards
Bottom-up dynamic programming
Solves from the smallest case upward using iteration
14
New cards
Memoization vs bottom-up
Memoization improves recursion; bottom-up avoids recursio