SHRI SAI COLLEGE OF ENGINEERING
AND TECHNOLOGY
DBATU UNIVERSITY
BRANCH :- COMPUTER SCIENCE & TECHNOLOGY
SESSION :-2023-24
PRESENTED BY:- DEEPA .R. BAIRAGI
APPLICATION OF DYNAMIC
PROGRAMMING
APPLICATIONS ARE :-
1.0/1 knapsack problem
2.Mathematical optimization problem
3. Shortest path problem
4.Reliability design problem
5.Longest common subsequence (LCS)
6.Flight control and robotics control
7.Time sharing: It schedules the job to maximize CPU usage
KNAPSACK PROBLEM :-
 The knapsack problem states that − given a set of items, holding
weights and profit values, one must determine the subset of the items to
be added in a knapsack such that, the total weight of the items must not
exceed the limit of the knapsack and its total profit value is maximum.
EXAMPLES:-
• Item 1: Weight = 2, Value = 10
• Item 2: Weight = 3, Value = 5
• Item 3: Weight = 5, Value = 15
• Item 4: Weight = 7, Value = 7
• Item 5: Weight = 1, Value = 6
• V(i, W) = max { V(i-1, W), V(i-1, W - w[i]) + v[i] }
W 0 1 2 3 4 5 6 7 8 9 10
Item1 0 0 10 10 10 10 10 10 10 10 10
Item2 0 0 10 10 10 15 15 15 15 15 15
Item3 0 0 10 10 10 15 15 15 15 15 20
Item4 0 0 10 10 10 15 15 17 17 17 22
Item5 0
SHORTEST PATH PROBLEM
 The shortest path problem is the problem of finding a path between two
vertices (or nodes) in a graph such that the sum of the weights of its
constituent edges is minimized.
MATHEMATICAL OPTIMIZATION PROBLEM :-
Dynamic programming is a powerful technique for solving optimization
problems by breaking them down into smaller overlapping subproblems
and efficiently solving them.
It is especially useful when there are overlapping subproblems and
optimal solutions to larger problems can be built from optimal solutions to
smaller subproblems.
RELIABILITY PROBLEM :-
 Reliability means the ability of an apparatus, machine, or system to
consistently perform its intended or required function or mission, on
demand and without degradation or failure.
 Reliability design using dynamic programming is used to solve a
problem with a multiplicative
In reliability design, the problem is to design a system that is composed
of several devices connected in series.
LONGEST COMMON SUBSEQUENCE (LCS)
 The longest common subsequence (LCS) is defined as the longest
subsequence that is common to all the given sequences, provided that
the elements of the subsequence are not required to occupy consecutive
positions within the original sequences.
FLIGHT CONTROL AND ROBOTICS CONTROL :-
FLIGHT CONTROL :-
flight control, dynamic programming can be utilized for tasks such as
trajectory planning, path optimization, and control system design.
 By formulating the problem as an optimization task, dynamic
programming algorithms can effectively search for the optimal solution.
ROBOTICS CONTROL:-
 In robotics control, dynamic programming techniques can be applied to
achieve tasks such as motion planning, path optimization, and
manipulation.
 By considering the robot's dynamics, environment constraints, and
objectives, dynamic programming can assist in generating optimal control
policies.
THANK YOU

application of dynamic programming.pptx

  • 1.
    SHRI SAI COLLEGEOF ENGINEERING AND TECHNOLOGY DBATU UNIVERSITY BRANCH :- COMPUTER SCIENCE & TECHNOLOGY SESSION :-2023-24 PRESENTED BY:- DEEPA .R. BAIRAGI
  • 2.
  • 3.
    APPLICATIONS ARE :- 1.0/1knapsack problem 2.Mathematical optimization problem 3. Shortest path problem 4.Reliability design problem 5.Longest common subsequence (LCS) 6.Flight control and robotics control 7.Time sharing: It schedules the job to maximize CPU usage
  • 4.
    KNAPSACK PROBLEM :- The knapsack problem states that − given a set of items, holding weights and profit values, one must determine the subset of the items to be added in a knapsack such that, the total weight of the items must not exceed the limit of the knapsack and its total profit value is maximum.
  • 5.
    EXAMPLES:- • Item 1:Weight = 2, Value = 10 • Item 2: Weight = 3, Value = 5 • Item 3: Weight = 5, Value = 15 • Item 4: Weight = 7, Value = 7 • Item 5: Weight = 1, Value = 6 • V(i, W) = max { V(i-1, W), V(i-1, W - w[i]) + v[i] } W 0 1 2 3 4 5 6 7 8 9 10 Item1 0 0 10 10 10 10 10 10 10 10 10 Item2 0 0 10 10 10 15 15 15 15 15 15 Item3 0 0 10 10 10 15 15 15 15 15 20 Item4 0 0 10 10 10 15 15 17 17 17 22 Item5 0
  • 6.
    SHORTEST PATH PROBLEM The shortest path problem is the problem of finding a path between two vertices (or nodes) in a graph such that the sum of the weights of its constituent edges is minimized.
  • 8.
    MATHEMATICAL OPTIMIZATION PROBLEM:- Dynamic programming is a powerful technique for solving optimization problems by breaking them down into smaller overlapping subproblems and efficiently solving them. It is especially useful when there are overlapping subproblems and optimal solutions to larger problems can be built from optimal solutions to smaller subproblems.
  • 9.
    RELIABILITY PROBLEM :- Reliability means the ability of an apparatus, machine, or system to consistently perform its intended or required function or mission, on demand and without degradation or failure.  Reliability design using dynamic programming is used to solve a problem with a multiplicative In reliability design, the problem is to design a system that is composed of several devices connected in series.
  • 11.
    LONGEST COMMON SUBSEQUENCE(LCS)  The longest common subsequence (LCS) is defined as the longest subsequence that is common to all the given sequences, provided that the elements of the subsequence are not required to occupy consecutive positions within the original sequences.
  • 13.
    FLIGHT CONTROL ANDROBOTICS CONTROL :- FLIGHT CONTROL :- flight control, dynamic programming can be utilized for tasks such as trajectory planning, path optimization, and control system design.  By formulating the problem as an optimization task, dynamic programming algorithms can effectively search for the optimal solution.
  • 14.
    ROBOTICS CONTROL:-  Inrobotics control, dynamic programming techniques can be applied to achieve tasks such as motion planning, path optimization, and manipulation.  By considering the robot's dynamics, environment constraints, and objectives, dynamic programming can assist in generating optimal control policies.
  • 15.