Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does memoization do?
Think about how we can save time in repeated calculations.
How many paths are there to (1,0) in a 2x1 grid?
You can only go directly down.
What is the primary advantage of memoization?
Consider what happens when you need a result that has already been computed.
True or False? Dynamic programming computes all possible solutions before storing results.
Think about how dynamic programming builds solutions from smaller parts.
Determine the total number of paths in an 8x8 grid that has holes at (3,3) and (6,2). Use dynamic programming principles.
Build your table row by row; how do you handle the holes?
Construct a comparison chart of memoization versus dynamic programming detailing time complexity, situation applicability, and efficiency. Provide examples for each.
Consider the advantages of structure vs. the recursive approach.
4 more questions in this section. Enroll free to practise them all.
Enroll free