Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

Binary search

A binary search employs a divide and conquer strategy to find the position of a target value in a sorted list. Also known as a half-interval search, logarithmic search, or binary chop.

Characteristics

Complexity

🔔 Complexity is considered in terms of worst case.

Time complexity

Notes
Θ(log n)

Space complexity

Notes
Θ(1) Requires three pointers to the list elements, regardless of list size