9/10/2024 status: We are OPEN despite COVID-19!
Cart (0)
Home Binary search tree T-Shirt
Generating Shirt...
Binary_search_tree Wikipedia Shirt
Binary search tree Wikipedia Article T-Shirt
Unisex Crew Neck
25.00
22.00
Sep 12% off Sale

Binary search tree Shirt

A classic gildan cotton tee emblazoned with the Wikipedia article on Binary search tree ā†—.

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.

Binary search trees allow binary search for fast lookup, addition, and removal of data items. Since the nodes in a BST are laid out so that each comparison skips about half of the remaining tree, the lookup performance is proportional to that of binary logarithm. BSTs were devised in the 1960s for the problem of efficient storage of labeled data and are attributed to Conway Berners-Lee and David Wheeler.

The performance of a binary search tree is dependent on the order of insertion of the nodes into the tree since arbitrary insertions may lead to degeneracy; several variations of the binary search tree can be built with guaranteed worst-case performance. The basic operations include: search, traversal, insert and delete. BSTs with guaranteed worst-case complexities perform better than an unsorted array, which would require linear search time.

The complexity analysis of BST shows that, on average, the insert, delete and search takes O ( log ā” n ) {\displaystyle O(\log n)} for n {\displaystyle n} nodes. In the worst case, they degrade to that of a singly linked list: O ( n ) {\displaystyle O(n)} . To address the boundless increase of the tree height with arbitrary insertions and deletions, self-balancing variants of BSTs are introduced to bound the worst lookup complexity to that of the binary logarithm. AVL trees were the first self-balancing binary search trees, invented in 1962 by Georgy Adelson-Velsky and Evgenii Landis.

Binary search trees can be used to implement abstract data types such as dynamic sets, lookup tables and priority queues, and used in sorting algorithms such as tree sort.

(from the Wikipedia article printed on this shirt)

About Wikishirt

Wikishirt is a retail experiment that lets you buy a shirt with any Wikipedia Article printed on it. There are over 5 million Wikipedia articles, so we have over 5 million shirts.

Check out our homepage for random featured shirts and more!


šŸ“¦ Free shipping to addresses in the United States!

VisaMastercardAmerican ExpressPayPalDiners ClubDiscover