mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 21:04:07 -06:00
628 B
628 B
| title | tags | |
|---|---|---|
| big-theta-notation |
|
Big theta means
f(n) = \Theta(g(n))if there are constants 0 < B < A such that for all sufficiently large n, ==$B × g(n) ≤ f(n) ≤ A × g(n)$==
- Upper and lower bound
Θsays thatg(n)provides upper and lower bound forf(n)- "selection sort is $\Theta(n^2)$" -> the maximum number of operations will be bounded both above and below by some constant times
n^2
- "selection sort is $\Theta(n^2)$" -> the maximum number of operations will be bounded both above and below by some constant times
f(n) = \Theta(g(n))means that f and g have similar growth rates- if
f(n) = \Theta(g(n))then the opposite is also true - usually
f(n)is complex butg(n)is very simple