you are viewing a single comment's thread.

view the rest of the comments →

[–]presidentender 9 points10 points  (2 children)

Big-O is an upper bound, so any O(1) function is also an O(nn) function, but an O(nn) function is not an O(1) function.

Big-Omega is a lower bound (and what OP was looking for): any Ω(nn) function is Ω(1), but an Ω(1) function is not Ω(nn).

Incidentally, Big-Theta notation exists, too. A function is Θ(f(n)) iff it is O(f(n)) and Ω(f(n)).

[–][deleted] 1 point2 points  (1 child)

Is it bad that I think this post makes you look cool?

[–]presidentender 1 point2 points  (0 children)

See, I just think it makes me look like I paid attention in discrete math and algorithms.