Re: Sorted heap trees



On Apr 9, 5:35 pm, c...@xxxxxxxx (Richard Harter) wrote:
It turns out that there are some special situations where a
sorted heap tree is better than an ordinary BST.  I am wondering
if anyone knows the proper name for these type of trees and of
any references, e.g., properties, uses, adaptations of standard
algorithms for them.

Hi Richard,

There are a wide variety of well-known ways for laying out a tree in
an array, and the issue of layout is usually considered separately
from what is actually in the tree nodes or how the node keys are
ordered.

The layout used by a heap is called the "breadth-first layout" in the
literature. It has many uses, including as a benchmark against which
various cache-oblivious layouts are compared, so if you google for
"breadth-first layout", you'll find lots of interesting things.

The particular ordering of nodes that you're using is called
"preorder", but the word is usually to refer to an order in which
nodes are visited, not an ordering for the nodes' keys. The
characteristics of searching in your tree are similar to those of a
"finger search tree", so you may want to goole for that to get some
more information about the application you have in mind.

Cheers,

Matt
.



Relevant Pages

  • Re: Industry db benchmark result on recent 2.6 kernels
    ... case is a representation of the actual hardware layout, ... where separate hardware component types have different IDs. ... this is tree walking and vector building/matching. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Private genealogical websites
    ... The layout is nice... ... the Descendant Tree was a big let down from the first ... able to move up and down the generations in the tree view. ... the layout of the Family Tree Database page... ...
    (soc.genealogy.britain)
  • Re: FreeBSD/xen structure
    ... discussion on the directory layout I'm using. ... suitable for inclusion in the tree. ... it would go using a simular directory layout. ... Xen-dependant but architecture-independant drivers (such as the Xen ...
    (freebsd-arch)
  • Re: Relationship Tables...too many
    ... multiple pages, in my opinion, so you can isolate trees or tree groups ... any table to any other table in the relatinship graph. ... is to add even more table occurrences. ... functional groups centered around a task or layout group. ...
    (comp.databases.filemaker)
  • Re: FreeBSD/xen structure
    ... discussion on the directory layout I'm using. ... Kip Macy's perforce tree, but I want to ensure that this will be ... it would go using a simular directory layout. ... Xen-dependant but architecture-independant drivers (such as the Xen ...
    (freebsd-arch)