mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 05:14:06 -06:00
627 B
627 B
| title | tags |
|---|---|
| big-theta | cosc201 |
big-theta
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 bothh above and below by some constant times
n^2
- "selection sort is $\Theta(n^2)$" -> the maximum number of operations will be bounded bothh 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