Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Odd Ball Challenge

by TedPride (Priest)
on Jun 23, 2005 at 22:37 UTC ( [id://469553]=note: print w/replies, xml ) Need Help??


in reply to Odd Ball Challenge

I'm still trying to figure out how to solve the puzzle, never mind code an AI to solve it :)

Replies are listed 'Best First'.
Re^2: Odd Ball Challenge
by jpeg (Chaplain) on Jun 24, 2005 at 00:35 UTC
    Assuming one ball is heavier than the other 11

    0. Divide balls into sets of 6. Weigh on a balance and select the heavier set.
    1. Divide the heavier set into sets of 3. Weigh on a balance and select the heavier set.
    2. Take two balls from the heavier set. Weigh on a balance.
    Select the heavier ball.
    If the two balls are equal, the third ball from the set is heavier.

    --
    jpg
      jpeg,
      Unfortunately, you don't know if the ball is heavy or light. A solution set has multiple outcomes but there are at least two solution sets that I have thought of. The Monastery now supports real spoiler tags by the way.

      Cheers - L~R

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2024-04-26 05:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found