Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > 2+2 Communities > Other Other Topics
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2004, 04:45 PM
partygirluk partygirluk is offline
Senior Member
 
Join Date: Nov 2004
Location: Pwning Broken Glass Can
Posts: 2,279
Default Tough brainteaser.

You have 8 balls. You know that 7 of them weigh 500 grams. 1 of them weighs 499 or 501 grams. You do not know which is the odd one out.
All you have to help determine the black sheep is an old fashioned set of balancing scales, and three separate weighings.

Let the balls be A,B,C,D,E,F,G,H.

Outline a method which can guarantee identifying which ball weighs a different amount to the others AND whether it weighs more or less.
Reply With Quote
  #2  
Old 11-29-2004, 05:29 PM
stabn stabn is offline
Senior Member
 
Join Date: Sep 2004
Location: Bellevue, Wa
Posts: 2,051
Default Re: Tough brainteaser.

Classic microsoft style interview question. I've already done it in the past so i won't spoil it with an answer.
Reply With Quote
  #3  
Old 11-29-2004, 05:31 PM
cnfuzzd cnfuzzd is offline
Member
 
Join Date: Mar 2004
Posts: 38
Default Re: Tough brainteaser.

but i only have three balls....


you did get the weight correct though...


peace

john nickle
Reply With Quote
  #4  
Old 11-29-2004, 05:34 PM
beerbandit beerbandit is offline
Senior Member
 
Join Date: Feb 2004
Location: 13 deep at Moe\'s
Posts: 156
Default Re: Tough brainteaser.

thats funny because i have dos balls

cheers
Reply With Quote
  #5  
Old 11-29-2004, 06:30 PM
morello morello is offline
Junior Member
 
Join Date: Dec 2003
Posts: 3
Default Re: Tough brainteaser.

There was a virtually identical question posted a few months ago :/
Reply With Quote
  #6  
Old 11-29-2004, 11:10 PM
Iceman Iceman is offline
Member
 
Join Date: Dec 2003
Posts: 87
Default Re: Tough brainteaser.

[ QUOTE ]
You have 8 balls. You know that 7 of them weigh 500 grams. 1 of them weighs 499 or 501 grams. You do not know which is the odd one out.
All you have to help determine the black sheep is an old fashioned set of balancing scales, and three separate weighings.

Let the balls be A,B,C,D,E,F,G,H.

Outline a method which can guarantee identifying which ball weighs a different amount to the others AND whether it weighs more or less.

[/ QUOTE ]

(1) ABC versus DEF.

If ABC and DEF are the same, (2) weigh G against F. If G and F are the same, then H is the outlier, and (3) weigh H against F to see if H is heavier or lighter. If G and F differ, then G is the outlier and you know if it's heavier or lighter based on what happened when you weighed it against F.

If ABC is heavier than DEF, you know GH are normal, (2) so weigh AGH against BCD. If AGH are lighter than BCD, than either B or C are the heavy one, so (3) weigh B against G to find out if B is the heavy one and if not it's C. If AGH are heavier than BCD, then either A is heavy or D is light, so (3) weigh A against G to find out which. If AGH and BCD are the same, then either E or F are the outlier and lighter, so (3) weigh E against F and the lighter one is the outlier and light.

If ABC is lighter than DEF, you know GH are normal, (2) so weigh AGH against BCD. If AGH are heavier than BCD, than either B or C are the light one, so (3) weigh B against G to find out if B is the light one and if not it's C. If AGH are lighter than BCD, then either A is light or D is heavy, so (3) weigh A against G to find out which. If AGH and BCD are the same, then either E or F are the outlier and heavier, so (3) weigh E against F and the heavier one is the outlier and heavy.
Reply With Quote
  #7  
Old 11-29-2004, 11:56 PM
partygirluk partygirluk is offline
Senior Member
 
Join Date: Nov 2004
Location: Pwning Broken Glass Can
Posts: 2,279
Default Re: Tough brainteaser.

You are wrong.
Do you see why?
I'll let others eloborate.
Reply With Quote
  #8  
Old 11-30-2004, 12:56 AM
bugstud bugstud is offline
Senior Member
 
Join Date: Jan 2003
Location: Urbana, IL
Posts: 418
Default Re: Tough brainteaser.

note that when one is heavier/lighter it's possible to be heavy or light
Reply With Quote
  #9  
Old 11-30-2004, 07:49 AM
vegasone vegasone is offline
Member
 
Join Date: Sep 2002
Posts: 48
Default Re: Tough brainteaser.

is there actually a solution?
with each weighing i can eliminate half the balls, but there is always an end case where it's just one ball is heavier than another.
Reply With Quote
  #10  
Old 11-30-2004, 08:12 AM
aquifex harse aquifex harse is offline
Member
 
Join Date: Jul 2004
Location: uk
Posts: 57
Default Re: Tough brainteaser.

OK here goes!

1) Weigh AB vs CD. If they are equal A, B, C and D are normal and the outlier is either E, F, G or H. If they are unequal then outlier is A, B, C, or D and E, F, G, H are normal. So in effect we've narrowed the field down to 4.

2) Weigh 2 'normal' balls vs 2 'unknown balls' If they balance then the two unknown balls are normal. If they don't balance one the two weighed unknown balls is the outlier. Either way you norrow the field down to two unknowns.

3) Wiegh one of the two unknown balls aganst a normal ball. If they match then the outlier is the final (unwieghed) ball. If they dont match the outlier is the wieghed unknown ball.

I hope this makes sense
aquifex
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.