Csc 411 Dynamic Programming
Csc 411 Dynamic Programming
TEST QUESTIONS
2. Define the term Dynamic Programming? (21/2marks)
b. State the Principle of Dynamic Programming and Describe the basic
features which characterize a dynamic programming. (5marks)
c. Give a mathematical formulation of a Dynamic Programming problem
(21/2marks)
A 2 3 4 8 9
FROM 1 4 6 3 5 4 8
6 3 7
5 6 7 7 8 4
2 7 10 5 10 B
3 3 8 4 8 7
4 6 10 5 9 9
3b. Clearly distinguish between Forward and Backward Computational
Procedure in Dynamic Programming. 5marks
4a. A sales Manager is planning to a business tour from Wukari to Jalingo.
He intends to cover one town from each of the Company’s different
marketing zones on the route. The network below shows the three
intermediate stages and three possible choices of route at all but the last
cities. The travel time between the two cities inclusive of working time is
given below the arrows between cities. Which intermediate cities should
he visit to minimize the time required to go from A to H.
Find the shortest route. (15marks)
Q1. STAGE:
Stage can be defined as the point at which decisions are called
for. Each stage can be thought of having beginning and an end.
Dynamic Programming is broken into sub – problems and each
problem is called Stage.
The point at which decisions called for, are referred to as
stages.
STATE:
State can be define as the information available at each stage
indicates the, value of state variables, which link up two stages.
State can be define as the variable that links up two stages is
called State Variables.
ALTERNATIVE:
At every stage, there may be more than one choice to take
decision, which is known as alternative.
OPTIMAL POLICY:
A policy, which optimize the value of a criterion objective or
return function is called Optimal Policy. Decision at any stage is
not dependent on the previous history of the system.
RECURSIVE RELATIONSHIP:
It represents mathematical expression connecting the optimal
solution of the earlier stage and the return function from the
current stage.
Q2A DYNAMIC PROGRAMMING
Dynamic Programming is a mathematical technique that deals
with the optimization of multistage decision tree.
Richard Bellman developed this technique. The technique is
called Recursive Function.
MATHEMATICAL REPRESENTATION
Here:
7 4
10
8
5
3
4 3
6 8
4 7
3
6 8
10
5 4
Q3B. Clearly distinguish between Forward and Backward Computational
Procedure in Dynamic Programming.
STAGE 1
The Possible Alternatively is H.
The possible State Variables are nodes E F and G.
The recursive function is f1(x1) = d(x1, m1)
STAGE 3
The Possible Alternatives are B, C, D OUTPUT OF TABLE 2
The Possible State Variables is A. State Variable f2(x2)
The Recursive Function is x3
f3(x3) = d(x3, m3) + f2(x2=m3) B 8
C 9
D 9
CONCLUSIVELY
3 6 3
A D E H = 12km, which is the shortest path.