Monday, August 24, 2009

Dishes and Ratings

A fast food place has N dishes on its menu that are rated from worst to best, 1 to N. You, however, don't know the ratings of the dishes, and when you try a new dish, all you learn is whether it is the best (highest rated) dish you have tried so far, or not. Each time you eat a meal at the restaurant you either order a new dish or you order the best dish you have tried so far.

How can you maximize the average total ratings of the dishes you eat in M meals (where M is less than or equal to N).

Labels:

18 Comments:

Anonymous SP33D said...

by giveing one dish more then one name, say u have 10 dishes, and the scale goes 1 to 10, so lets us dish number 3 and dish number 8, if u were to have them b the same dish, but with different names, they would get higher rating.

just my guess

August 24, 2009 9:33 AM  
Blogger Chris said...

This post has been removed by the author.

August 24, 2009 12:39 PM  
Blogger Chris said...

I think you should assume that each dish has only one name. For simplicity name the dishes "1" to "N". I also think you should assume that each dish has a unique rating, so each possible rating is used exactly once.

Also note the hint that choosing a dish a second (or more) time might be a good way to keep the average rating high.

August 24, 2009 4:36 PM  
Blogger Ragknot said...

Think out of the box.

Take N friends with you the fast food place. Each orders a different dish, but you all share.

From then on, everyone chooses their own personal favorite.

August 24, 2009 4:41 PM  
Blogger Chris said...

This post has been removed by the author.

August 24, 2009 5:27 PM  
Blogger Chris said...

Excellent answer. But...

August 24, 2009 5:28 PM  
Anonymous Anonymous said...

...I'm wrong

By Chris

August 25, 2009 11:30 AM  
Blogger Chris said...

Anonymous, apology accepted.

August 25, 2009 1:21 PM  
Blogger Chris said...

This post has been removed by the author.

August 26, 2009 12:59 PM  
Blogger Chris said...

This post has been removed by the author.

August 27, 2009 10:29 AM  
Blogger Chris said...

This post has been removed by the author.

August 27, 2009 10:53 AM  
Blogger Chris said...

This post has been removed by the author.

August 27, 2009 11:38 AM  
Blogger Chris said...

The first meal you choose will have a probable rank of (1+N)/2.
If you stick with that, expect an average rank of (1+N)/2.

The only option for the second meal is repeat the order or choose a new meal (at random). Your obvious best bet is to choose another and hope it's better. Then stick with the best one for the rest of the time. I can only say that it seems likely that the best of the two is likely give a higher rank than (1+N)/2. But I'm not sure
how to prove it.

If you don't stick then you will end up with a dilemma each time
you choose a meal "do I stop here?". If you continue to choose
random meals, then expect to get an average rank of (1+N)/2.

So my (slightly better than) guess is choose 2 meals, then stick
with the best one.

August 27, 2009 11:39 AM  
Blogger Chris said...

I'm equally convinced that any strategy will do.

August 27, 2009 2:25 PM  
Blogger milos said...

well using Chris's idea than for any meal the chance is (n+1)/2 and then there is no strategy...but i am not 100% certain that it can be solved this way but it sure looks easy:D

August 28, 2009 3:50 AM  
Blogger Chris said...

I don't normally do these combinatoric/probability problems as they often end up with large amounts of data to keep track of. The reward of solving often isn't worth the effort required. But this one is interesting. I haven't really got a good tactic for cracking it.

I hope Rajesh publishes at least a clue to the solution. In fact I'd prefer only a clue if possible.

August 28, 2009 9:44 AM  
Blogger Miguel Tato said...

This post has been removed by the author.

August 31, 2009 12:46 AM  
Blogger Chris said...

I found another problem somewhere which suggests, to me, that as long as you preselect M, then you should try approx 0.34*M meals then wait for the next best one and stick with.

September 17, 2009 8:40 AM  

Post a Comment

Links to this post:

Create a Link

<< Home