10 DynamicProgramming
10 DynamicProgramming
2. (Winston, 4ed) Use dynamic programming to 3. (modified from Hillier, 9ed) Find the shortest
solve a knapsack problem in which the knapsack route from O to T using dynamic programming.
can hold up to 13 lb.
4. (Taha, 7ed) Luxor Travel arranges 1-week tours to southern Egypt. The agency is contracted to provide tourist
groups with 7, 4, 7, and 8 rental cars over the next four weeks, respectively [An assumption here is that
requirement must be met.] Luxor Travel subcontracts with a local car dealer to supply rental needs. The dealer
charges a rental fee of $220 per car per week, plus a flat fee of $500 for any rental transaction. Luxor, however,
may elect not to return the rental cars at the end of the week, in which case the agency will be responsible only
for the $220-weekly rental. What is the best way for Luxor Travel to handle the rental situation?
5. (modified from Hillier, 9ed) Consider an electronic system consisting of four components, all of which must work
for the system to function. The reliability of the system can be improved by installing several parallel units in one
or more components. The following table gives the probability, Pi that component i (i = 1, 2, 3, 4) will function if
they consist of one, two, or three parallel units. The table also presents the respective configuration costs (in $).
Because of budget limitations, a maximum of $1,000 can be expended. Determine the best configuration using DP.
Parallel Units Component 1 Component 2 Component 3 Component 4
P1 Cost P2 Cost P3 Cost P4 Cost
1 0.5 100 0.6 200 0.7 100 0.5 200
2 0.6 200 0.7 400 0.8 300 0.7 300
3 0.8 300 0.8 500 0.9 400 0.9 400