HUGE OT question: Re: Other tree representations in SQL
From: Finarfin <finarfin_at_sympatico.ca>
Date: Wed, 04 Dec 2002 23:49:37 -0500
Message-ID: <wXAH9.7344$3J2.1151933_at_news20.bellglobal.com>
> only have
> to specify what are "left" and "right" subtrees), in this post I'm
> gonna talk about postorder... <<
>
> I have not had time to research the generalizations of inorder
> traversals; I think Knuth had one definition. But it does not
> look like a good approach for building a tree in SQL because we
> are mostly interested in aggregation up and down the tree for
> reports in SQL. You can find a single node without using a
> traversal by using the key for that node in SQL.
Date: Wed, 04 Dec 2002 23:49:37 -0500
Message-ID: <wXAH9.7344$3J2.1151933_at_news20.bellglobal.com>
--CELKO-- wrote:
>>> Although inorder traversal of a (non binary) tree is possible >>> (you
> only have
> to specify what are "left" and "right" subtrees), in this post I'm
> gonna talk about postorder... <<
>
> I have not had time to research the generalizations of inorder
> traversals; I think Knuth had one definition. But it does not
> look like a good approach for building a tree in SQL because we
> are mostly interested in aggregation up and down the tree for
> reports in SQL. You can find a single node without using a
> traversal by using the key for that node in SQL.
Joe:
In my attempts to develop a relatively simple database I have followed the following path:
So
Were you to give a beginner a bit of a hint, would you suggest that: If they were considering real DB development they should start with Knuth?
JE Received on Thu Dec 05 2002 - 05:49:37 CET