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.
Define factorial using inductive definitions.
What is the base case for factorial?
What does the term 'memoization' mean?
Think of it as a cheat sheet.
What is dynamic programming?
Think about the best way to tackle difficult problems.
True or False: Memoization helps in reducing the computation time by storing previous function results.
Does caching sounds like a time-saving strategy to you?
Given a set of jobs each with a start time, finish time, and weight, outline an algorithm to maximize total weight for the interval scheduling problem.
How would you store previously calculated weights to optimize your solution?
Create a recursive solution for calculating the nth Fibonacci number using inductive definitions and then improve it using dynamic programming.
Consider how each Fibonacci number builds off the previous two.
7 more questions in this section. Enroll free to practise them all.
Enroll free