Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Algorithms > better McDoonal...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 619 of 670
Post > Topic >>

better McDoonalds meals than MinMax?

by "Gernot Frisch" <Me@[EMAIL PROTECTED] > Feb 26, 2007 at 02:01 PM

Hi,

assume you have a list of products + price like:
bigmc 3.59
koke  1.29
friez 0.79
....

and some meals like:
bigmc + koke + friez = 3.95


I want to make a program that lets you select the pruducts and then 
get the cheapest combination, even if it has some extra stuff for you.

I'd start by making a list of the products individually, then try to 
swap them with a menu and use a MinMax algorithm to go deeper into 
mixing.

Is there any better idea to reach this?


-- 
-Gernot
int main(int argc, char** argv) {printf 
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}




 3 Posts in Topic:
better McDoonalds meals than MinMax?
"Gernot Frisch"  2007-02-26 14:01:33 
Re: better McDoonalds meals than MinMax?
Miss Elaine Eos <Misc@  2007-02-26 07:53:51 
Re: better McDoonalds meals than MinMax?
"Gernot Frisch"  2007-02-27 08:58:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 18:37:34 CDT 2008.