O(1)
Constant Time
Check first position / no matter the size, the run time will always be the same.
O(log n)
Logarithmic Time / Binary Search
Each comparison halves the list.
O(n)
Linear Time
For Loop / Run-time increases when items are added.
O(n log n)
Quasilinear Time / Merge Sort
O(n^2)
Quadratic Time / Bubble Sort
In each pass through the list n items will be examined with at most n passes.
Nested Loops
O(2n)
Exponential Time
Growth doubles with each value added.
O(n!)
Factorial Time
Grows in a factorial way based on the size of the input data.