2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -1,9 +1,8 @@
See also: [[Knapsack problem/Bounded]], [[Knapsack problem/0-1]]
A traveler gets diverted and has to make an unscheduled stop in what turns out to be Shangri La.   Opting to leave, he is allowed to take as much as he likes of the following items, so long as it will fit in his knapsack, and he can carry it.
A traveller gets diverted and has to make an unscheduled stop in what turns out to be Shangri La. Opting to leave, he is allowed to take as much as he likes of the following items, so long as it will fit in his knapsack, and he can carry it.
He knows that he can carry no more than 25 'weights' in total; and that the capacity of his knapsack is 0.25 'cubic lengths'.
He knows that he can carry no more than   25   'weights' in total;   and that the capacity of his knapsack is   0.25   'cubic lengths'.
Looking just above the bar codes on the items he finds their weights and volumes. He digs out his recent copy of a financial paper and gets the value of each item.
Looking just above the bar codes on the items he finds their weights and volumes.   He digs out his recent copy of a financial paper and gets the value of each item.
<table
style="text-align: left; width: 80%;" border="4"
cellpadding="2" cellspacing="2"><tr><td
@ -44,14 +43,20 @@ Looking just above the bar codes on the items he finds their weights and volumes
style="background-color: rgb(255, 204, 255);" align="left"
nowrap="nowrap" valign="middle">&lt;=25</td><td
style="background-color: rgb(255, 204, 255);" align="left"
nowrap="nowrap" valign="middle">&lt;=0.25&nbsp;</td></tr></table>
nowrap="nowrap" valign="middle">&lt;=0.25&nbsp;</td></tr>
</table>
<br>
He can only take whole units of any item, but there is much more of any item than he could ever carry
'''How many of each item does he take to maximise the value of items he is carrying away with him?'''
Note:
# There are four solutions that maximise the value taken. Only one ''need'' be given.
;Task:
Show how many of each item does he take to maximize the value of items he is carrying away with him.
;Note:
* &nbsp; There are four solutions that maximize the value taken. &nbsp; Only one ''need'' be given.
<!-- All solutions
@ -63,3 +68,8 @@ Note:
# (9, 0, 11) also minimizes weight and volume within the limits of calculation
-->
;Related tasks:
* &nbsp; [[Knapsack problem/Bounded]]
* &nbsp; [[Knapsack problem/0-1]]
<br><br>