Рет қаралды 25,931
This video explains how to identify a given problem as a knapsack problem.The identification of a problem can be very important as it will boost your confidence to solve the problem easily and efficiently.I have shown the pattern of all knapsack problems.In each of these problem variation, you will be given an array and a capacity or a maximum limit.Every element in an array will have two choices, either to include or exclude an item.This pattern is a typical knapsack problem.I have also shown how to differentiate between knapsack problem types as 01 knapsack, Bounded Knapsack and Unbounded Knapsack.I have taken two very important problems which is the Subset Sum problem and the Coin Change problem to explain how to identify a knapsack problem.If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)
========================================================================
Join this channel to get access to perks:
/ @techdose4u
INSTAGRAM : / surya.pratap.k
SUPPORT OUR WORK: / techdose
LinkedIn: / surya-pratap-kahar-47b...
WEBSITE: techdose.co.in/
TELEGRAM Channel LINK: t.me/codewithT...
TELEGRAM Group LINK: t.me/joinchat/...
=======================================================================
USEFUL LINKS:
01 Knapsack Recursion: • 01 Knapsack using Recu...
Concept of Memoization: • 01 Knapsack using Memo...
Tabulation DP: • 01 Knapsack Tabulation...
#dynamicprogramming #dp #knapsack