On Sat, 18 Jan 2003, Shevek wrote:

> What is the simplest logic which will construct a tree such as that
> below. You may use any data representation you like for anything. I happen
> to be using an SQL database which I read into a hash of (id => array of
> children), but this isn't important.

Perl QOTW expert quiz 5 ( http://perl.plover.com/qotw/e/005) was almost
exactly this.  Look in solutions/ for several peoples answers, or read the
thread from the mailing list archive to osmose several peoples ideas on
things to consider and things to discard.  Even includes your wish to
output in things other than ascii maps, iirc.


the hatter



Reply via email to