quartz/content/out/notes/big-theta.md
2022-04-06 19:48:06 +12:00

678 B
Raw Blame History

title sr-due sr-interval sr-ease
Big theta 2022-04-27 41 290

tags: #review


0.1 Big-Θ

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 that g(n) provides upper and lower bound for f(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
  • 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 but g(n) is very simple