Ok, who can do this?

Dougster

Senior member
Dec 14, 1999
687
0
0
I got asked this in a University interview the other day... I was just wondering is the answer is really obvious to other people or not, it took me ages and he had to give guidance. I know it's a weird thing to be asked, but what the hey, I got it in!

Ok, there are X black beans and Y white beans in a pot, and an infinite number of white beans in a pile next to the pot. A robot arm picks out two beans from the pot at random, then puts one back in. The bean it puts back in depends on what it randomly removed. When there is only one bean remaining in the pot, the robot stops.

If it took out A B it puts ---> C back in.

W B ---> B

W W ---> W

B B ---> W

Ok, in a given situation, there are X and Y black and white beans respectively in the pot, the actual numbers are not important. What one piece of information would I have to give you in order for you to tell me what colour the one remaining bean is when the robot stops. Explain.

[Edit continuity with X's and Y's, doesn't effect problem]
 

VTHodge

Golden Member
Aug 3, 2001
1,575
0
0
** WARNING: ANSWER BELOW **




Excellent Logic Problem . . .

The question is: Does Y = 1, or is there only one black bean to start with.

If Y = 1 --> Last bean is black.
If Y != 1 --> Last bean is white.

I will explain after more people get a chance to read.
 

Dougster

Senior member
Dec 14, 1999
687
0
0
You're on the right lines... but no.

There can be ANY number of each bean, and there is still one piece of information that will give a definite outcome.
 

EnigmaMachine

Banned
Oct 2, 2001
12
0
0
"where the last 2 beans taken out of the pot the same color?"

if yes, the last bean is white
if no, the last bean is black
 

wedi42

Platinum Member
Jun 9, 2001
2,843
0
76
vthodge
what if the pot only has two beans
BW = B
WW =W

Y>1 yet you can't predict the outcome

ps: does != mean not equal to?
 

VTHodge

Golden Member
Aug 3, 2001
1,575
0
0
There are many solutions actually . . .

Engima's answer is right on.

The easiest answer is to ask "What color is the last bean?" Ruins the spirit of the contest, but meets the objectives.

I still think my solution is valid.
 

VTHodge

Golden Member
Aug 3, 2001
1,575
0
0


<< what if the pot only has two beans
BW = B
WW =W

Y>1 yet you can't predict the outcome

ps: does != mean not equal to?
>>



Yes != means "not equal to"

And I don't follow your counter example . . . it fits my model.
Y = 1 --> BW = B
Y = 0 --> WW = W
Y = 2 --> BB = W
 

Dougster

Senior member
Dec 14, 1999
687
0
0
VTHodge, your answer is not valid for any values of X and Y, I know I wasn't clear, but that's what I meant by "the actual numbers are not important".
 

VTHodge

Golden Member
Aug 3, 2001
1,575
0
0


<< i mean are there an odd number of black beans >>



GRRR . . . You are right.
I was solving by working backwards and ignored some of the cases.

You can never take away an odd number of black beans. . . only 0 or 2.
If you have an odd number, then the last one can't be taken away.
I hate it when I miss things like that.
 

VTHodge

Golden Member
Aug 3, 2001
1,575
0
0
<apology>

hope i didn't come off sounding like a cocky jerk in my first posts . . . reading them again, and it sounds like i am

I am cocky and I am a jerk, but I try to never be both at the same time!

</apology>
 

Egrimm

Golden Member
Jun 26, 2001
1,420
0
0
<DIV>I admit it, I suck at such problems and asked a friend who's a member of Mensa, here's what he said:
</DIV>
<DIV>I assume that there's only a single piece of information about the situationat at the beginning, information about X or Y (or X + Y).</DIV>
<DIV> </DIV>
<DIV>The only information needed is if X is even or uneven.</DIV>
<DIV> </DIV>
<DIV>The system make sure that only blacks can be removed two at a time (if only one is removed it is put back imidiately). If X thus is uneven, it cannot be possible to remove all blacks, and the last bean will have to be black. When there's only one black left only the two pairs mentioned first will be possible and they will both remove a white, until only the balck is left</DIV>
<DIV> </DIV>
<DIV>If X on the other hand is even it it is not possible that there's only one balck bean left. When the last two blacck are removed a white on will be added. When there only is white beans left then WW ---> W would make sure that you end with one white bean.</DIV>
<DIV>
Had figured most of it out myself though, but it took him less than 5 minutes to do it all :Q</DIV>
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |