\Theta (\lg n): logarithmic (unimaginably large inputs) [00L3]

We say something is logarithmic if it is proportional to \log n for inputs of size n.

If we have an algorithm that takes \Theta (\lg n) time, we could use it to process inputs of size 2^{10^8} in one second, which is unimaginably large.

Examples of things that are \Theta (\lg n):

  • Binary search
  • The height of a balanced binary tree with n nodes
  • The number of bits needed to represent n

Context

Time Complexity Zoo [00L1]