Source code online books for professionals by professionals


The knapsack problem and integer programming



Download 4,67 Mb.
Pdf ko'rish
bet226/266
Sana31.12.2021
Hajmi4,67 Mb.
#213682
1   ...   222   223   224   225   226   227   228   229   ...   266
Bog'liq
2 5296731884800181221

The knapsack problem and integer programming. The knapsack problem involves choosing a valuable subset of a set 
of items, under certain constraints. In the (bounded) fractional case, you have a certain amount of some substances, each 
of which has a unit value (value per unit of weight). You also have a knapsack that can carry a certain maximum weight. 
The (greedy) solution is to take as much as you can of each substance, starting with the one with the highest unit value. 
For the integral knapsack problem, you can take only entire items—fractions aren’t allowed. Each item has a weight and 
a value. For the bounded case (also known as 0-1 knapsack), you have a limited number of objects of each type. (Another 
perspective would be that you have a fixed set of objects that you either take or not.) In the unbounded case, you can take 
as many as you want from each of a set of object types (still respecting your carrying capacity, of course). A special case 
known as the subset sum problem involves selecting a subset of a set of numbers so that the subset has a given sum. These 
problems are all NP-hard (see Chapter 11), but admit pseudopolynomial solutions based on dynamic programming  
(see Chapter 8). The fractional knapsack case, as explained, can even be solved in polynomial time using a greedy strategy 
(see Chapter 7). Integer programming is, in some ways, a generalization of the knapsack problem (and is therefore 
obviously NP-hard). It is simply linear programming where the variables are constrained to be integers.

Download 4,67 Mb.

Do'stlaringiz bilan baham:
1   ...   222   223   224   225   226   227   228   229   ...   266




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish