increase in weight = wk (zk - yk) weight must stay the same so,
If increase > decrease
So: WANT increase > decrease which is:
(zk - yk) pk >?
OR (take each side and divide and multipy by the same term - will need this form)
(zk - yk) pk/wk * wk >?
A > B
We KNOW the following (and it will be useful):
C > B OK, we now need to SHOW A > C
What was A and what was C?
(zk - yk) pk/wk * wk >?
(zk - yk)wk * pk/wk >?
pk/wk divide both sides by pk/wk note that what is left is the relation about weights that had to stay the same
SO, we showed A > C , we knew C > B
and thus A > B
Therefore profit increase > decrease. back to notes page
decrease in weight =
increase in profit = (zk - yk) pk
decrease in profit =
then new Z is optimal as well.
pk/wk > pi/wi , k < i < n, (ordered that way for our greedy strategy)
multiply both sides by the same terms