OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: On the semantics of siblings


My favorite textbook on such matters (Knuth: The Art of Computer Programming) uses the following language in connection with siblings:

  • Section 2.3.1 speaks of a set of nodes being siblings: "Peter, Paul and Mildred are siblings" in the example below, with node "Betty" removed (because otherwise, it is not a hierarchy in our sense). It avoids phrases like "Peter is a sibling of Paul", thus circumventing the question whether a node is a sibling of itself.
  • Section 7.2.1.6 contains an example of a forest with two roots where the second root is called the "right sibling" of the first root. Algorithmically, the notion of "right sibling" is important for forest traversals, and this works only if one root can be the right sibling of another root. Again, this leaves open the question whether a root (or any node) is a sibling of itself. The "right sibling" must of course always be a different node.

 

I suggest the following:

  • The function issibling also gets the optional IncludeSelf parameter.
  • One root is a sibling of another root (and also of itself, if IncludeSelf=true).

 

Heiko

 

 

From: odata@lists.oasis-open.org <odata@lists.oasis-open.org> On Behalf Of Ericson, George
Sent: Freitag, 28. Januar 2022 02:26
To: odata@lists.oasis-open.org
Subject: [odata] On the semantics of siblings

 

Dictionary definitions:

Sibling: one of two or more individuals having one common parent

                Sibling: a brother or sister

 

Simple thought experiment.

·          I have two parents: Betty and Frank

·         Betty has 3 children: Paul, Mary, Peter

·         Frank has 3 children: Paul, Peter, Mildred

·         Peter is my sibling on both my  parents' sides

·         Mildred is my sibling on my father's side

·         Mary is my sibling on my Mother's side

·         I am a sibling of Peter on both my  parents' sides

·         I am a sibling of Mary on my mother's side

·         I am a sibling of Mildred on my father's side

·         I am not a sibling of myself

 

Regards,

George Ericson

Dell | Sr Distinguished Engineer

Office of the CTO

Mobile: +1 508.498.8461

Email: George.Ericson@Dell.com

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]