Dynamic Programming Flashcards
What is the 4 step approach to Dynamic Programming problems
- Define n, i, I
- Draw a node diagram
- Create a table n, i, k, r, F(n,i)
- State the solution as a new node diagram
What is n, i, k for Team allocation?
n - number of locations left to consider
i - number of teams left to allocate
k - number of teams allocated
What is n, i, k generically?
n - flow
i - stock
k - decision
What is n, i, k for Capital Budgeting
n - number of schemes left to consider
i - remaining money to invest
k - amount invested
What is n, i, k for Production Planning
n - months left to consider
i - items in stock
k - items to produce
Is Production Planning shortest or longest path?
Shortest path minimising cost
NB. r = cost of stock + cost of production
Is Capital Budgeting shortest or longest path?
Longest path - maximising return
Is Team Allocation shortest or longest path?
Longest path - maximising return
How do you determine what the optimal solution is?
Start at the first node, take the best decision(s) from there. Repeat at the next node(s) until you reach the end.