Guest User

Untitled

a guest
May 5th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. S = {w_1, ..., w_n}
  2. for each bin j do
  3. Solve the knapsack problem on bin j and save the result on OPT[j]
  4. \ OPT[j] is the set of items packed into bin j.
  5. Update S by removing the items in OPT[j]
  6. \ S = S - OPT[j]
  7. if S is empty do
  8. break
Add Comment
Please, Sign In to add comment