0/1 knapsack problem | example| dynamic programming

preview_player
Показать описание
0/1 knapsack problem using dynamic programming example
Рекомендации по теме
Комментарии
Автор

In the first step you are forgot to check this condition ( j < weight(i) )condition is true then,
Eqution are: T(i-1, j).
I request to check it.

harshlimbadiya
Автор

thank you !!
10:37 one small mistake..

pawanthanay
Автор

12:00 mam that is maximux value earned not weight

KRIVASTYLES
Автор

As there are 4 weights given then why to go from 0 to 5 and why not from 0 to 4 while preparing the table

shubhamalchetti
Автор

u r not taking first maximum value like in ascending order?

rupalisharma
Автор

Kindly use another pager ... if u have. Dont turn again and again

rajaammarzia
Автор

Inta daridram ayna question inta varuku chudala
But thanks for the information

akhilsaiii
Автор

Mam T(1, 1), 4) is there T(1, 1)=0 but max(0, 4) is 4 but you write im matrix 0 why mam pls solve my dout

safmurali.mannam
Автор

Why 3 value is not considered in step 1

bhilvijayvijay
Автор

Mam u have done incorrect please first correct it and then upload 🥴

hinaparmar
Автор

Ma'am please pull the camera little upwards so that we could see the full page....!!!

srivardhansuryavanshi
Автор

T(1, 1) also gives maximum value 3 then why are you writing zero 0 at that place?

shreeshkant
Автор

Thank u ma'am i understood esily❤🙏

aartimashram
Автор

if we just need the last column why did we calculate all 5?

nalingupta
Автор

in step 2, 2 you took j as 1 mam pls check it

harish.i
Автор

Mam if weight is 20 then how to take columna

kasthoorisrinivasreddy
Автор

If profiles=(60, 100, 120), weight=(10, 20, 30)&m=50.
Then what are optimal solution

srinivasaraokagitha
Автор

mam, is there any shortcut for large values

eswarroy
Автор

Doesn't explained when w[i] will be used🤷

ArunKumar-yqrs
Автор

Why write on the reverse side of the paper? What a silly thing to do!

MrMikomi