Binary Search
Last updated
Was this helpful?
Last updated
Was this helpful?
Binary search is a way of finding a specific node in a tree. It only works on binary trees due to its helpful sorted property. It simply traverses the tree, moving left if the current node is too large or right if it is too small.
Binary search runs in time for bushy trees, which is also the number of layers in a tree.