DOC PREVIEW
UT Dallas CS 6385 - 22DYNPR

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Dynamic ProgrammingThe general ideaDynamic programming is essentially a recursive algorithm, which is oftenuseful if the problem can be represented as a parametrized set of subproblems,such that each subproblem is reducible to others with smaller parameters.The formulation can yield an efficient algorithm if the following two condi-tions are satisfied:• The number of different subproblems is not too large (does not growexponentially).• The iterative reductions finally reduce the task to some initial cases forwhich the solution is already known or directly computable.We show the principle through an example.ExampleA telecom company wants to create an extension plan for its network, year byyear over a time horizon of T years, such that the network will have enoughcapacity to keep up with the growing demand in every year, and the totalcost is minimum. The following information is available as input:• cost[t, k] is the known cost we have to pay if in year t we extend thecapacity by k units (k is assumed to be an integer).• demand[t] is the known capacity demand in year t.Goal: find an extension plan by specifying how much new capacity has tobe bought in each year, such that in every year the accumulated capacitysatisfies the demand, and the total cost is minimum.SolutionFor easy description, let us use the following notations:• k will denote the amount of capacity.• The time (year) will be denoted by t. This variable runs over a timehorizon T, that is t = 1, . . . , T.• cost[t, k] denotes the known cost we have to pay if in year t we buy kunits of capacity.• demand[t] denotes the known demand for year t.• Let A[t, k] be the minimum achievable accumulated cost of a decisionsequence up to the end of year t, if it achieves a total capacity of k.Let us now formulate the recursive algorithm:The optimal accumulated cost up to the end of year t with accumulatedcapacity k can be obtained recursively as follows.If the last amount of capacity we have bought is r and now we have altogetherk, then by the end of the previous year we must have had k −r. If we alreadyknow the optimum cost up to year t − 1 for all possible values of the capacity,then we can express the updated total cost asA[t, k] = A[t − 1, k − r] + cost[t, r].Since r is a free parameter, the updated optimum will be the minimum withrespect to r:A[t, k] = minrA[t − 1, k − r] + cost[t, r]where the minimum is taken over all possible values of r ≤ k that correspondsto the possible amounts of capacity we can buy.Of course, k capacity in year t is acceptable only if k ≥ demand[t], that is,the accumulated capacity satisfies the demand. To exclude those values thatviolate this requirement, we can prevent using them by assigning infinite cost(or some very large number) to these cases. Thus, the final recursice formulawill beA[t, k] =∞ if k < demand[t]minrA[t − 1, k − r] + cost[t, r] if k ≥ demand[t]We can apply the above recursive formula whenever t > 1. But how dowe handle the first year, that is, how do we start the recursion? Whent = 1, there is no previosly accumulated capacity yet, so then we simply takeA[1, k] = cost[1, k] for every k.In this way the A[t, k] values can be computed recursively for t = 1, . . . , T.Having done the iteration, the optimum cost will beOP T COST = mink≥demand[T ]A[T, k]Comment:This systematic solution solves the problem in time bounded by a polynomialof the time horizon length (T ) and the maximum value of k (capacity) asopposed to the full decision tree where the running time would grow


View Full Document

UT Dallas CS 6385 - 22DYNPR

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

03LP_su

03LP_su

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

21B&C

21B&C

2 pages

20BBEX0

20BBEX0

3 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download 22DYNPR
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view 22DYNPR and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view 22DYNPR 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?