Term
O(log n): logarithmic time
The remaining work halves at each step. Even a million elements need only about 20 steps. Binary search is the classic example.
The remaining work halves at each step. Even a million elements need only about 20 steps. Binary search is the classic example.