List of Common Function Orders

Reading Time: 1 minute


The table lists the most common orders of functions that are found in many day-to-day algorithms.

NotationNameWell Known Example
$Θ(1)$ConstantAccess time of an array element
$Θ(\log n)$LogarithmicWorst case running time of binary search algorithm
$Θ(n)$LinearWorst case running time of linear search algorithm
$Θ(n \log n)$QuasilinearLower bound time of any comparison-based sorting
$Θ(n^2)$QuadraticWorst case running time of quicksort, insertion sort
$Θ(n^2 \log n)$Quasiquadratic-
$Θ(n^3)$Cubic-
$Θ(2^n)$Exponential-
$Θ(n!)$FactorialSolving travelling salesman problem via brute-force