[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Representing_binary_trees_in_XML_=E2=80=

  • From: John Cowan <johnwcowan@gmail.com>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Thu, 4 Jul 2019 14:36:12 -0400

=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Representing_binary_trees_in_XML_=E2=80=


On Thu, Jul 4, 2019 at 2:20 PM Costello, Roger L. <costello@mitre.org> wrote:
 

Sorry, I am not clear on what you are suggesting. Do you mean this (recursive) design:


Yes. that's it. You can dispense with binary-tree as well and just use root-node.
 

That doesn’t reduce the number of levels in the tree.


I think it does.  Your design has node as the sole child of left-child and right-child. I am just talking about merging their functions into a single element, one that says it is a node *and* which child it is.  If you knew there would never be any nodes with just one child, you could use just node elements and let ordering do the work (left first, right second), but that limits the applicability.


John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
With techies, I've generally found
If your arguments lose the first round
Make it rhyme, make it scan / Then you generally can
Make the same stupid point seem profound!           --Jonathan Robie



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.