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

 Class Pass (Posted on 2004-06-24)
The teacher in a certain class room allows you to pass a paper with an assignment around, and whomever it ends up on has to do it. The only two rules are you can't pass it to someone who already has had it and you can only pass it to the person to the left, right, forward, or backward.

In a room of 30 students arranged in a 6 by 5 grid, the teacher starts out with the assignment somewhere on the front row of 6 students. At some point someone is stuck holding the assignment because all his neighbors have had it and passed it on to someone else. If this happens after every student in the room has had it, what is the probablity, for each individual, that he or she turns out to be the lucky winner of the assignment?

 No Solution Yet Submitted by Gamer Rating: 4.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 re: What's wrong with my simulation? | Comment 4 of 15 |
(In reply to What's wrong with my simulation? by Charlie)

Charlie,

Try changing:
FOR dc=-1 to 1
to
FOR dc=1 to -1 step -1

I think you'll see the left-right probability trends reverse.

In which case, the "problem" is the position order of choices to move next.

 Posted by Thalamus on 2004-06-24 15:49:27

 Search: Search body:
Forums (0)