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 williamashbless2004-12-30 13:28:36
          I think I would by gibuu2004-12-30 15:27:55
            I like trees :) by Tars_Tarkas 2006-11-19 12:55:59
I just wouldn't know how to construct one efficiently for arbitrary numbers of coins. Or rather, I could construct a tree that would then be the minimal tree for that number of coins, which would probably prove how many steps you minimaly need.
However what weighings you'd have to do at each node, I couldn't say...

Here's a quick drawing of the tree I came up with (top). I think it is similar to hadji's solution (attempt). And what I think the tree would have to look like (bottom). (I labeled the coins 1-12 since I have to name them something. ?= means I weigh the left list against the right one).

Though of course in the lower drawing, both branches could look like the left or both like the right branch. From what I gather, it's more probable that they will look different.

I am quite confident though that only two subtrees will be attached to the root node, since in the begining, knowing ">" or "<" won't help you much, though lower down the tree you can use that information. (For this reason weighing 6 against 6 seems, to me, a bad choise for the first weighing).

Oh yea, the ">" case from the root node is of course, except for mirroring, the same as the "<" case. It's just "!=" while remembering which side was lighter/heavier.
--
Tars Tarkas, sleeps all day and hacks all night.
[ Reply ]
              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.)