Jump to content
BrainDen.com - Brain Teasers
  • 0

Get final status from the drawing sequence


Guest
 Share

Question

There are 4 balls marked as "A", "B", "C" and "D" in the order. So, randomly draw one out and then put it back to the

next draw position. For example,

ABCD -> 3 ©

CABD -> 3 (B)

BACD -> 4 (D)

DACB -> 2 (A)

So, the question is, how to calculate the final stage with a given draw sequence with minimum draw simulation?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
There are 4 balls marked as "A", "B", "C" and "D" in the order. So, randomly draw one out and then put it back to the

next draw position. For example,

ABCD -> 3 ©

CABD -> 3 (B)

BACD -> 4 (D)

DACB -> 2 (A)

So, the question is, how to calculate the final stage with a given draw sequence with minimum draw simulation?

OK. It looks like what you do is

[1] remove a ball at random

[2] re-arrange the other balls into their original order [e.g. ACD in line 3] but ... not ACB in the last line. I don't get that part.

[3] replace the removed ball at the beginning [left end] of the line.

OK now what are you asking? Can you rephrase it or give an example? Thanks.

Link to comment
Share on other sites

  • 0
[2] re-arrange the other balls into their original order [e.g. ACD in line 3] but ... not ACB in the last line. I don't get that part.

-> the "C" put "back" to "B"'s position in line 3 and "B" put "back" to "D"'s position in the last line.

OK now what are you asking? Can you rephrase it or give an example? Thanks.

For example,

2,3,1,4,1,2,4,3,1,3,2,2,4

How to quickly get the final sequence is:

ADBC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...