The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

attn william bashless (long) by gibuu2004-12-30 12:16:08
  Question about finding the solution. by Tars_Tarkas2004-12-30 12:38:24
    Interestingly enough... (extension) by williamashbless2004-12-30 12:55:01
      I did figure out the part with the sets... by Tars_Tarkas2004-12-30 13:12:30
        Thoughts. by williamashbless 2004-12-30 13:28:36
There really are only a few pieces of information you can glean from a single weighing.

1) That a coin is unknown (U),
2) known good (KG),
3) potentially heavy (PH),
4) or potentially light (PH).

No other information can actually be gleaned from a weighing at all. So if you capture this information about every coin involved in a weighing, you've captured all the information there is to know.

The real trick in the search is to be able to set up your recursion so that you search all future possibilities, but keep track of the shortest future path that you found as the recursion ends.

Uglier is knowing when to recurse and when not to. You obviously don't want to recurse when you're down to a single coin you haven't been able to prove good. But you also don't want to recurse when the weighing can't gain you more useful but non-contradictory information.

(For example, you could weigh two piles of three coins, see that they're balanced, and mark them up as good. Any possible outcome from doing the same weighing again as a future weighing on the same branch must result in the same answer, so there's no point trying. If it _did_ come out differently, you'd have a contradiction. So somehow, recursing down the path of trying that weighing must be avoided.)


I think I'm going to give this more thought.
[ Reply ]
          I think I would by gibuu2004-12-30 15:27:55
            I like trees :) by Tars_Tarkas2006-11-19 12:55:59
              Annotation: by Tars_Tarkas2004-12-30 16:07:37
              thoughts on a tree by gibuu2004-12-30 17:01:55
                Trees, Trees everywhere by Tars_Tarkas2006-11-19 12:55:59

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)