[prev] 25 [next]

Big-Oh Notation (cont)

Example: function 2n + 10 is O(n)
  • 2n+10 ≤ c·n
    ⇒   (c-2)n ≥ 10
    ⇒   n ≥ 10/(c-2)
  • pick c=3 and n0=10
  

[Diagram:Pic/bigOh.png]