
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Find a schedule that minimizes the finish time.
Pack items into bins using the fewest number of bins.
A feasible solution is a solution that satisfies the constraints.
An optimal solution is a feasible solution that optimizes the objective/optimization function.
Can all containers be loaded into 2 ships whose capacity is c (each)?
Let xi = 1 when item i is selected and let xi = 0 when item i is not selected.
i = 1
n maximize pi^ xi
i = 1
n subject to wi^ xi^ <= c
and xi = 0 or 1 for all i
Be greedy on profit earned.
Select items in decreasing order of profit.
n = 3, c = 7
w = [7, 3, 2]
p = [10, 8, 6]
only item 1 is selected
profit (value) of selection is 10
not best selection!
Be greedy on profit density (p/w).
Select items in decreasing order of profit density.
n = 2, c = 7
w = [1, 7]
p = [10, 20]
only item 1 is selected
profit (value) of selection is 10
not best selection!