Intro - Dynamic Programming Flashcards
What is tabulation?
What type of approach is it?
What is the code for fibonacci using tabulation?
What is the run time of fibTabulation?
What is memoization? what type of approach is it?
What is the example fibonacci code for memoization approach?
what is the run time for the top down fib approach
Compare and contrast Tabulation vs Memoization.
Why use one over the other?
How do we know when to use:
Dynamic Programming
Greedy
Divide-and-Conquer
What must hold to use any of the above approaches?
What is a palindrome and what is the definition?
What is a subsequence?
What is the input of the longest palindromic subsequence problem?
What is the definition & required output of the longest palindromic subsequence problem?
What are the feasible solutions and correct output if there are no repeating characters in a palindrome sequence?
What is a solution in the following sequence?
What is the cost to brute force the longest palindromic subsequence problem?