Path: news.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!syros.belnet.be!naxos.belnet.be!news.belnet.be!news.uia.ac.be!not-for-mail
From: hidders@REMOVE.THIS.uia.ua.ac.be (Jan Hidders)
Newsgroups: comp.databases.theory
Subject: Re: database design method
Followup-To: comp.databases.theory
Date: 11 Nov 2002 19:15:58 +0100
Organization: University of Antwerp
Lines: 40
Message-ID: <3dcff3de$1@news.uia.ac.be>
References: <pI_r9.172$OC2.19355@wards> <aqoeks$vcs$1@sp15at20.hursley.ibm.com> <3dcfc941$1@news.uia.ac.be> <aqonci$k7s$1@sp15at20.hursley.ibm.com>
Reply-To: hidders@uia.ua.ac.be (Jan Hidders)
NNTP-Posting-Host: hnets.uia.ac.be
X-Trace: naxos.belnet.be 1037038563 7487 143.169.254.1 (11 Nov 2002 18:16:03 GMT)
X-Complaints-To: abuse@belnet.be
NNTP-Posting-Date: Mon, 11 Nov 2002 18:16:03 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: hidders@hcoss.uia.ac.be (Jan Hidders)
X-Original-NNTP-Posting-Host: hmacs.uia.ac.be
X-Original-Trace: 11 Nov 2002 19:15:58 +0100, hmacs.uia.ac.be
Xref: newsfeed1.easynews.com comp.databases.theory:23563
X-Received-Date: Mon, 11 Nov 2002 11:15:49 MST (news.easynews.com)

Paul Vernon wrote:
>
>True, but would your tree tuple example be the best way of implementing a
>tree data-structure anyway?

Implementing? This is the logical level we are talking about, so a better
word would be "modelling" or "representing" and it should IMO be up to the
user if this is how he or she wants to represent that data that way or not.

>> >What would a valid value of Tree look like?
>> >
>> >{"NodeA:Value1", ("NodeB:Value2", ("", {}) )}
>>
>> Yeah, something like that.
>
>So
>     ("", {})
>and therefore
>    {}
>would be valid values of that type? Doesn't look quite right to me.

That's why I said "something like that". :-) If you want to be precise it
should be for example:

  ( node-value : "book",
    subtrees : { ( node-value : "chapter1", subtrees : {} ),
                 ( node-value : "chapter2", subtrees : {} ) } )

and in this value the following nested values would also belong to the type:

   ( node-value : "chapter1", subtrees: {} )

   ( node-value : "chapter2", subtrees: {} )

Note that his example is a bit artificial because the chapters are more
likely to be list then a set, but that is besides the point.

-- Jan Hidders


