Algorithm Flashcards
1
Q
Dynamic Programming?
A
- The plain recursion algorithm has a runtime of O(2n) and a space complexity
of O(n). - The Memoization recursion algorithm has a runtime of O(n) and a space
complexity of O(n). - The Tabulation algorithm has a runtime of O(n) and a space complexity of O(1).
1
Q
Bit wise operation?
A
2
Q
Tree traverse?
A
3
Q
Graph traverse?
A
4
Q
What is dynamic progrmming?
A
Techniqe for computing recursive algorithm with highly overlapping subproblems by only solving each subproblems once.