Steven Bethard wrote: > Anyway, do you know what name this problem is usually discussed under?
If I knew what to google for, I could probably find at least a few simple heuristics to try...
I think the closest thing would be the 'knapsack problem' or the 'subset sum problem.'
http://en.wikipedia.org/wiki/Subset_sum_problem http://en.wikipedia.org/wiki/Knapsack_problem
-- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/python-list