Английская Википедия:(a,b)-tree

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

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 Шаблон:Mvar and Шаблон:Mvar children, where Шаблон:Mvar and Шаблон:Mvar are integers such that Шаблон:Math. The root has, if it is not a leaf, between 2 and Шаблон:Mvar children.

Definition

Let Шаблон:Mvar, Шаблон:Mvar be positive integers such that Шаблон:Math. Then a rooted tree Шаблон:Mvar is an (a,b)-tree when:

Internal node representation

Every internal node Шаблон:Mvar of a (a,b)-tree Шаблон:Mvar has the following representation:

  • Let <math>\rho_v</math> be the number of child nodes of node Шаблон:Mvar.
  • Let <math>S_v[1 \dots \rho_v]</math> be pointers to child nodes.
  • Let <math>H_v[1 \dots \rho_v - 1]</math> be an array of keys such that <math>H_v[i]</math> equals the largest key in the subtree pointed to by <math>S_v[i]</math>.

See also

References

Шаблон:CS-Trees


Шаблон:Datastructure-stub