Jump to content

(a,b)-tree

From Wikipedia, the free encyclopedia

In computer science, an (a,b) tree is a kind of balanced search tree.

An (a,b)-tree has all of its leaves at the same depth, and all internal nodes except for the root have between a and b children, where a and b are integers such that 2 ≤ a ≤ (b+1)/2. The root has, if it is not a leaf, between 2 and b children.

Definition

[edit]

Let a, b be positive integers such that 2 ≤ a ≤ (b+1)/2. Then a rooted tree T is an (a,b)-tree when:

  • Every inner node except the root has at least a and at most b children.
  • The root has at most b children.
  • All paths from the root to the leaves are of the same length.

Internal node representation

[edit]

Every internal node v of a (a,b)-tree T has the following representation:

  • Let be the number of child nodes of node v.
  • Let be pointers to child nodes.
  • Let be an array of keys such that equals the largest key in the subtree pointed to by .

See also

[edit]

References

[edit]
  • Public Domain This article incorporates public domain material from Paul E. Black. "(a,b)-tree". Dictionary of Algorithms and Data Structures. NIST.


pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy