• Thumbnail for Binary search algorithm
    In computer science, binary search, also known as half-interval search, logarithmic search, or binary chop, is a search algorithm that finds the position...
    74 KB (9,609 words) - 20:12, 14 April 2024
  • Thumbnail for 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...
    31 KB (3,098 words) - 12:28, 12 May 2024
  • Thumbnail for Self-balancing binary search tree
    In computer science, a self-balancing binary search tree (BST) is any node-based binary search tree that automatically keeps its height (maximal number...
    8 KB (1,119 words) - 16:37, 27 January 2024
  • Thumbnail for Binary tree
    label associated with each node. Binary trees labelled this way are used to implement binary search trees and binary heaps, and are used for efficient...
    36 KB (5,125 words) - 16:17, 13 March 2024
  • binary search tree (Optimal BST), sometimes called a weight-balanced binary tree, is a binary search tree which provides the smallest possible search...
    19 KB (2,965 words) - 17:19, 6 May 2024
  • Thumbnail for Binary logarithm
    the binary logarithm of 1 is 0, the binary logarithm of 2 is 1, the binary logarithm of 4 is 2, and the binary logarithm of 32 is 5. The binary logarithm...
    40 KB (4,788 words) - 13:05, 29 December 2023
  • Thumbnail for Multiplicative binary search
    binary search is a variation of binary search that uses a specific permutation of keys in an array instead of the sorted order used by regular binary...
    4 KB (395 words) - 06:23, 25 July 2023
  • Thumbnail for Treap
    binary search tree are two closely related forms of binary search tree data structures that maintain a dynamic set of ordered keys and allow binary searches...
    23 KB (3,213 words) - 05:19, 18 April 2024
  • depth-first search (DFS), the search tree is deepened as much as possible before going to the next sibling. To traverse binary trees with depth-first search, perform...
    25 KB (2,834 words) - 20:39, 12 May 2024
  • are hash tables and search trees. It is sometimes also possible to solve the problem using directly addressed arrays, binary search trees, or other more...
    24 KB (2,769 words) - 18:44, 13 May 2024
  • is a binary search tree with the additional property that recently accessed elements are quick to access again. Like self-balancing binary search trees...
    32 KB (4,628 words) - 02:46, 21 April 2024
  • Uniform binary search is an optimization of the classic binary search algorithm invented by Donald Knuth and given in Knuth's The Art of Computer Programming...
    2 KB (262 words) - 10:09, 9 January 2024
  • Thumbnail for Search algorithm
    linear, binary, and hashing. Linear search algorithms check every record for the one associated with a target key in a linear fashion. Binary, or half-interval...
    12 KB (1,564 words) - 11:45, 3 November 2023
  • application stores the entire key–value pair at that particular location. A Binary Search Tree is a node-based data structure where each node contains a key and...
    5 KB (710 words) - 16:22, 6 January 2024
  • used to search in bounded lists. Exponential search can even out-perform more traditional searches for bounded lists, such as binary search, when the...
    10 KB (1,351 words) - 22:51, 23 March 2024
  • each element vary. Linear search is rarely practical because other search algorithms and schemes, such as the binary search algorithm and hash tables...
    8 KB (1,010 words) - 09:15, 9 April 2024
  • Thumbnail for Random binary tree
    these trees. Random binary trees have been used for analyzing the average-case complexity of data structures based on binary search trees. For this application...
    39 KB (5,230 words) - 06:07, 29 March 2024
  • Thumbnail for Recursion (computer science)
    toFind, search lower half return binary_search(data, toFind, start, mid-1); else //Data is less than toFind, search upper half return binary_search(data...
    60 KB (7,257 words) - 20:06, 21 April 2024
  • Compared to binary search where the sorted array is divided into two equal-sized parts, one of which is examined further, Fibonacci search divides the...
    7 KB (903 words) - 21:22, 29 January 2023
  • data and allows searches, sequential access, insertions, and deletions in logarithmic time. The B-tree generalizes the binary search tree, allowing for...
    50 KB (7,037 words) - 10:13, 13 May 2024
  • Thumbnail for Dichotomic search
    A well-known example is binary search. Abstractly, a dichotomic search can be viewed as following edges of an implicit binary tree structure until it...
    4 KB (264 words) - 21:24, 7 December 2023
  • Thumbnail for Bisection method
    methods. The method is also called the interval halving method, the binary search method, or the dichotomy method. For polynomials, more elaborate methods...
    20 KB (2,426 words) - 03:41, 13 December 2023
  • Thumbnail for Quicksort
    quicksort's practical dominance over other sorting algorithms. The following binary search tree (BST) corresponds to each execution of quicksort: the initial pivot...
    72 KB (9,985 words) - 21:14, 6 April 2024
  • Thumbnail for Interpolation search
    between key values are sensible. By comparison, binary search always chooses the middle of the remaining search space, discarding one half or the other, depending...
    13 KB (1,844 words) - 01:31, 16 January 2024
  • achieved by using binary search instead. The following C-program is an implementation. // Integer square root (using binary search) unsigned int isqrt(unsigned...
    16 KB (2,410 words) - 03:37, 13 December 2023
  • Thumbnail for Insertion sort
    side-by-side), then using binary insertion sort may yield better performance. Binary insertion sort employs a binary search to determine the correct location...
    22 KB (2,908 words) - 00:32, 29 December 2023
  • linear search, but worse than a binary search. The advantage over the latter is that a jump search only needs to jump backwards once, while a binary can...
    3 KB (364 words) - 14:09, 20 March 2023
  • Thumbnail for Trie
    between nodes, which represent each character in the key. Unlike a binary search tree, nodes in the trie do not store their associated key. Instead,...
    31 KB (3,395 words) - 11:44, 19 January 2024
  • Thumbnail for Stern–Brocot tree
    In number theory, the Stern–Brocot tree is an infinite complete binary tree in which the vertices correspond one-for-one to the positive rational numbers...
    17 KB (2,561 words) - 03:34, 28 December 2023
  • General declarations, similar to article Binary search tree: struct bst_node { // one node of the binary search tree struct bst_node *child[2]; // each:...
    10 KB (1,243 words) - 08:34, 3 March 2023