Jump to content
BrainDen.com - Brain Teasers
  • 0


superprismatic
 Share

Question

A string of decimal digits is produced

as follows. The 10 decimal digits are

split into 2 disjoint subsets A and B.

The elements in each subset are

arranged in some order and each has

a pointer to its first element. A

fair coin is now flipped. If heads

comes up, the element under the

pointer in subset A is chosen and the

pointer is moved to the next element

of A. Similarly, if tails comes up,

the element under the pointer in B

is chosen and its pointer advanced.

The pointers advance circularly, so

a pointer goes from the end of its

subset to the beginning of it. This

continues until a digit string of

the desired length is obtained.

For example, suppose A={9,1,2} and

B={5,3,8,6,7,4,0}. Then the sequence

of flips H,H,T,H,T,H,T,T,T,H will

produce the digit string 9,1,5,2,3,

9,8,6,7,1.

What would the ordered subsets be if

the decimal digit string is 4,3,0,1,

8,9,7,6,5,2,4,3,1,0,8,7,9,6,4,0,7,5,

6,2,3 ?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

A = (4,0,7,6)

B = (3,1,8,9,5,2)

Can be solved by hand.

Look at the frequency of numbers between two of the same kind.

For example, between the second and third 4's, there is 3,1,0,8,7,9,6.

What is missing here is 2 and 5. Therefore 2 and 5 cannot be in the same group as 4.

On the other hand between the two 2's, you have:

4,3,1,0,8,7,9,6,4,0,7,5,6

The 4's, 7's, 6's, and 0's all repeat before the 2 finishes it's cycle.

Therefore 4, 7, 6, and 0 cannot be in the same group as 2.

So far we have (4,7,6,0) and (2,5);

Between the second and third 1's, we see a 0 repeating, so 1 must be in the opposite group of 0.

Following similar logic, the answer can be determined fairly quickly.

Link to comment
Share on other sites

  • 0

A = (4,0,7,6)

B = (3,1,8,9,5,2)

Can be solved by hand.

Look at the frequency of numbers between two of the same kind.

For example, between the second and third 4's, there is 3,1,0,8,7,9,6.

What is missing here is 2 and 5. Therefore 2 and 5 cannot be in the same group as 4.

On the other hand between the two 2's, you have:

4,3,1,0,8,7,9,6,4,0,7,5,6

The 4's, 7's, 6's, and 0's all repeat before the 2 finishes it's cycle.

Therefore 4, 7, 6, and 0 cannot be in the same group as 2.

So far we have (4,7,6,0) and (2,5);

Between the second and third 1's, we see a 0 repeating, so 1 must be in the opposite group of 0.

Following similar logic, the answer can be determined fairly quickly.

Very nice explanation of a good solution method!

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...