what is DP
how to identify DP problem
Questions involve in DP
0-1 knapsack
unbounded knapsack
fibonachi
LCS
LIS - longest increasing subsequence
kadanes algo
matrix chain multi
DP on trees
DP on grid
others
explain 0/1 knapsack problem
-
-
signs dilyane kay hot ahe
Is Target sum problem same as count subset with given difference
what are three types of knapsack
what is difference between this three types of knapsack
0 1 - knapsack
- elements la completely include karu shakto kiva include nahi karu shakat
01 knapsack made aapan ekada decide karto ki particular item la include karycha ahe ki nahi, nantr aapan tyala sodun deto
unbound knapsack
unbound knapsack mde aapan eka element la analyse kel ki yala select kryache ka nahi mag aapan parat tya element la visit karun select kiva non-select karu shakto
unbound knapsack allows multiple occurences of same item
which problems are variations of unbound knapsack
code of 01 knapsack
if( wt[ i-1 ] <= j )
max( val[ i - 1 ] + t[ i - 1 ] )
code of unbound knapsack problem
14 explain rod cutting problem
ek rod dileli aste, tyachi ek length dileli aste
16 Coin change problem: Minimum number of coins
17 Coin change problem Contd.
18 Longest common subsequence Introduction
List variations of LCS
longest common substring
print LC substring
shortest common substring
print SCS
minimum no of insertion and deletions
largest repeating subsequence
length of longest subsequence of a which is a substring is b