SPUG: Stick Riddle

Fred Morris m3047 at inwa.net
Thu Jan 2 12:19:11 CST 2003


What I've witnessed, following this whole thread is true reverse
engineering: i.e., given a poorly specified problem and an undocumented
solution, an attempt to determine what djinn the original problem solver
was listening to; my gut tells me Michael has found it.

Michael Wolf wote:
>
>Damian Conway <damian at conway.org> writes:
>
>[code elided...]
>
>Using Damain's code as a base, I changed two assumptions.
>
> * I always break the left-most (not longest) piece on the second break.
>
> * The second break point is independent of the first break point.
>
>Here's the modified code, which yeilds legal triangles 49.592% of the
>time.
>
>================================================================
>

--

Fred Morris
m3047 at inwa.net



 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://seattleperl.org




More information about the spug-list mailing list