in reply to Re: Powers of three
in thread Powers of three

honestly i don't remember it was written in my statistics class at 9am
i'm also partially curious as to why the program works, i know what its doing, i worked it out by hand before writing it in perl

Replies are listed 'Best First'.
Re^3: Powers of three
by truedfx (Monk) on Feb 07, 2006 at 18:04 UTC
Re^3: Powers of three
by tweetiepooh (Hermit) on Feb 10, 2006 at 11:09 UTC
    Nice code.

    Logically the state of any point is an XOR of its two parents taking a missing parent to be 0. (and seeding with a 1 at the point)