[prev] 28 [next]

Big-Oh Notation (cont)

Example: function n2 is not in O(n)

[Diagram:Pic/bigOh-2.png]

  • n2c·n
    ⇒   nc
  • inequality cannot be satisfied since c must be a constant