Problem: Packing items of fixed size into containers of fixed size, to maximize the total number of items contains, according to a basic priority system, so that all mains are ordered and as many sundries are also ordered.
Ie, given:
max_cost=9
thad=pizza £7
bob=curry £8, rice £2
The program would produce:
max_cost=9
thad=pizza £7, rice £2
bob=curry £8
Bonus points if you make it a webservice of some sort. :D
< Let the soul-sucking commence! | The Complication of relationships > |