All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 The Best Strategy (Posted on 2003-03-18)
A box is filled with 'N' slips of paper. On each slip of paper is written some positive integer (note that any positive integer may appear on the slips - not just the integers from 1 to 'N'). The integers do not necessarily appear in any sequence or pattern. Each of the slips has a different integer on it, so there is just one slip with the greatest integer.

A person who has no prior knowledge of which numbers appear on the slips - but who does know that there are 'N' slips - is to blindly pull slips from the box one by one. The person looks at each slip, then either agrees to accept that number (of Rupees) and quit or decides to go on and choose another slip.

Note that the person looks at each slip as he/she proceeds, and then decides whether to quit or to go on. That person can go forward, but cannot go back. If no choice is made by the time the 'N'th slip is reached, then the person must accept the number (of Rupees) on the 'N'th slip.

Does there " EXIST " a 'Best Strategy' for the person ? If " YES ", then what is that strategy ? (Here the term " Best Strategy" means that the person will get the greatest amount of Rupees).

 See The Solution Submitted by Ravi Raja Rating: 4.1818 (11 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 re(2): Monte Carlo Simulation (the program) | Comment 7 of 46 |
(In reply to re: Monte Carlo Simulation (continued) by Charlie)

The program w/n=200; factor .995 to adjust to max slip to max of distribution; end strategy in use:

n = 200: mxfact = .995
RANDOMIZE TIMER
DIM num(n)
FOR byp = 1 TO 90
tot = 0
FOR tries = 1 TO 15000
FOR i = 1 TO n: num(i) = RND(1): NEXT
mx = 0
FOR i = 1 TO byp
IF num(i) > mx THEN mx = num(i)
NEXT
mxc = mx
FOR i = byp + 1 TO n
IF i > n - byp THEN
mxc = mx - (i - n + byp) * mx / (2 * (n - byp))
END IF
IF num(i) > mxc OR i = n THEN
choose = num(i): EXIT FOR
END IF
NEXT
tot = tot + choose
NEXT
PRINT byp, tot / (tries - 1), tot / (tries - 1) / mxfact
NEXT
 Posted by Charlie on 2003-03-18 09:09:30

 Search: Search body:
Forums (0)