language-icon Old Web
English
Sign In

Self-balancing binary search tree

In computer science, a self-balancing (or height-balanced) binary search tree is any node-based binary search tree that automatically keeps its height (maximal number of levels below the root) small in the face of arbitrary item insertions and deletions. In computer science, a self-balancing (or height-balanced) binary search tree is any node-based binary search tree that automatically keeps its height (maximal number of levels below the root) small in the face of arbitrary item insertions and deletions. These structures provide efficient implementations for mutable ordered lists, and can be used for other abstract data structures such as associative arrays, priority queues and sets. The red–black tree, which is a type of self-balancing binary search tree, was called symmetric binary B-tree and was renamed but can still be confused with the generic concept of self-balancing binary search tree because of the initials. Most operations on a binary search tree (BST) take time directly proportional to the height of the tree, so it is desirable to keep the height small. A binary tree with height h can contain at most 20+21+···+2h = 2h+1−1 nodes. It follows that for any tree with n nodes and height h: n ≤ 2 h + 1 − 1 {displaystyle nleq 2^{h+1}-1}

[ "Random binary tree", "Interval tree", "Binary search tree", "K-ary tree", "Scapegoat tree", "Calkin–Wilf tree", "Threaded binary tree", "Uniform binary search", "Dichotomic search" ]
Parent Topic
Child Topic
    No Parent Topic