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).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Bit wise operation?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Tree traverse?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Graph traverse?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is dynamic progrmming?

A

Techniqe for computing recursive algorithm with highly overlapping subproblems by only solving each subproblems once.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly