Re: Sorted heap trees



On Mar 28, 3:10 pm, "Stephen Howe" <sjhoweATdialDOTpipexDOTcom> wrote:
"Richard Harter" <c...@xxxxxxxx> wrote in message >
I'm looking at a data structure that I have (re)invented that I
am calling a sorted heap tree. I dare say there is an official
name but I haven't a clue as to what it might be. What I am
looking for are references, preferably on-line, and anything
useful I can snarf up.

Sorry It is not clear enough.
You say , "This is a sorted tree, albeit not a BST"
Does that mean a parent node may have more than 2 children?

A binary search tree has the property that C1 < P < C2. These trees
have
the property that either C1 < C2 < P or C1 > C2 > P.

I wasn't thinking in terms of more than two children, but that's a
natural
generalization. If you have k children then you would have k
partitions.
If so, are saying that all elements reachable under
C1 < C2 < C3 ... < CN?
or
C1 > C2 > C3 ... > CN?

where C1 is child1, C2 child2 and all is children in turn etc

Also if P is parent node are you saying

P < C1 < C2 < C3 ... < CN?
or
P > C1 > C2 > C3 ... > CN?

Of course. These trees are heaps that satisfy an additional
constraint,
namely that the subtrees partition the data.


Cheers

Stephen Howe

.



Relevant Pages

  • Re: Sorted heap trees
    ... sorted heap tree is better than an ordinary BST. ... if anyone knows the proper name for these type of trees and of ... The layout used by a heap is called the "breadth-first layout" in the ...
    (comp.theory)
  • Re: Row of parent of Node in JTree
    ... > Jim Sculley wrote: ... > saves information about the structure of the tree in an XML file for later ... > parent node of said node so that when I reconstruct the tree I have the ... An XML document already ...
    (comp.lang.java.help)
  • Re: Count all nodes in a treeview
    ... ItemIndex of the nodes in the tree. ... Parent Node: 0 ... Child Node: 0 ... a friend who codes in Delphi and has been using C# for quite a while. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [GIT PULL] PM updates for 2.6.33
    ... classic depth-first or depth-last tree algorithm. ... I did that because that clarifies the locking rules (ie "we traverse ... There's no stall in the thing, ... the parent " on the parent node ...
    (Linux-Kernel)
  • Re: convert a list to tree
    ... > of the tree is 0. ... Start with the number of the middle node, ... until you need the node (ie: it's a leaf node, ... You then process parent node 2. ...
    (comp.lang.c)