4 - Dynamic Programming Flashcards

1
Q

Dynamic programming assumes ____ {no, partial, full} knowledge of the MDP.

A

Dynamic programming assumes full knowledge of the MDP.

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

What is dynamic programming?

A

Dynamic Programming (DP) is a technique that solves some particular type of problems in Polynomial Time. Dynamic Programming solutions are faster than exponential brute method and can be easily proved for their correctness.

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

Name 4 basic steps to solve a DP problem:

A

Steps to solve a DP

1) Identify if it is a DP problem
2) Decide a state expression with
least parameters
3) Formulate state relationship
4) Do tabulation (or add memoization)

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

How to classify a problem as a Dynamic Programming Problem?

A

Typically, all the problems that require to maximize or minimize certain quantity or counting problems that say to count the arrangements under certain condition or certain probability problems can be solved by using Dynamic Programming.

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

All dynamic programming problems satisfy the __________ property

A

All dynamic programming problems satisfy the overlapping subproblems property and most of the classic dynamic problems also satisfy the optimal substructure property. Once, we observe these properties in a given problem, be sure that it can be solved using DP.

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

How do we decide the state?

A

DP problems are all about state and their transition. This is the most basic step which must be done very carefully because the state transition depends on the choice of state definition you make. So, let’s see what do we mean by the term “state”.

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

What is the state?

A

A state can be defined as the set of parameters that can uniquely identify a certain position or standing in the given problem. This set of parameters should be as small as possible to reduce state space.

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

What is memoization / tabulation?

A

This is the easiest part of a dynamic programming solution. We just need to store the state answer so that next time that state is required, we can directly use it from our memory

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