Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Odd Ball Challenge

by zby (Vicar)
on Jun 24, 2005 at 13:37 UTC ( [id://469699]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Odd Ball Challenge
in thread Odd Ball Challenge

The question is how much knowlege can I use in the solution. That is you need to define the proces of 'finding the solution'.

Replies are listed 'Best First'.
Re^6: Odd Ball Challenge
by Limbic~Region (Chancellor) on Jun 24, 2005 at 13:52 UTC
    zby,
    You can use only the information outlined by the riddle itself:
    • Given: 12 balls identical in appearance
    • Given: 11 balls are identical in weight, 1 is not
    • Given: A balance scale with 2 sides
    • Given: The use of the balance 3 times
    • Goal: A set of groupings and weighings that when followed will determine which ball is odd and how it is odd.

    I really don't know how else to say it. You are designing a program to solve a problem that is presumably too difficult to solve otherwise. You feed it rules to follow and a desired outcome and it churns away until it has satisified the goal.

    Cheers - L~R

      The problem is that there is only one rule to follow - output a string (that is a program solving the riddle). If you find the right string you need only print it. And you cannot say that finding the right string is too difficult - many people cannot program at all so for them programming is for sure much more difficult.

      You don't have any inputs only output.

        zby,
        If you find the right string you need only print it.

        Of course - but that's not the challenge. I have repeatedly indicated you (the human) is not to solve the riddle and then translate that solution to code. The challenge is to start with an objective and rules and figure out how to achieve the objective.

        I really don't see how I can be any clearer. I already gave the Challenge: Setting Sun Puzzle example, so let me try another one.

        You have a rubik's cube in a given starting position. The goal is to get the rubik's cube into a new desired position (all colors matching on all sides) using only legal moves. The hard part is finding the series of moves that results in the goal being achieved.

        You wouldn't find the right series of steps and then write a program that just regurgitates that output. You would write a program that finds the right series of steps for you and tells you how to do it. That is the challenge.

        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://469699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found