http://qs321.pair.com?node_id=496394


in reply to Distribute MP3 recordings optimally to CD-Rs

If you want to study this very interesting problem some more, it's usually called the 'Knapsack Problem', or sometimes the 'Backpack Problem'.

Two good links:
http://www.edm2.com/0601/backpack.html
http://en.wikipedia.org/wiki/0/1_knapsack_problem