Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Knapsack problem
#1
How can I do this in QM?

Given a sequence of positive integers, and another integer (goal)
find a subset of the items such that their sum is less or equal to
the goal, but as large as possible.


-- Possible uses:
-- Fill CD's, DVD's, diskettes to the brim.
-- Combine cheques to pay exact amount.
-- Equitably divide goods (for example between heirs).
-- Etc.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)