Skip to content
EntityQ623818· pop 38· linked from 213 articles

binary search tree

Sign in to save

Also known as BST, ordered binary tree, sorted binary tree

data structure in tree form with 0, 1, or 2 children per node, sorted for fast lookup

Key facts

Type
tree
Invented by
P.F. Windley, A.D. Booth , A.J.T. Colin , and T.N. Hibbard
Operation
Average
Search
Θ(log n )
Insert
Θ(log n )
Delete
Θ(log n )
Space
Θ( n )

via Wikipedia infobox

Wikidata facts

Image
Binary search tree.svg
Show 4 more facts
Commons category
Binary search trees
time of discovery or invention
1960-00-00
inception
1960-01-01
Sources (3)

via Wikidata · CC0

~14 min read

Article

Fig. 1: A binary search tree of size 9 and depth 3, with 8 at the root.

In computer science, a binary search tree (BST), also called an ordered or sorted binary tree, is a rooted binary tree data structure with the key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree. The time complexity of operations on the binary search tree is linear with respect to the height of the tree.

Connections

Categories