r/computerscience • • Sep 17 '26

Help Why use Big O notation?

If someone asks for big O time complexity of an algorithm but expects only the minimum of the possible big Os then is that even Big O notation anymore? cuz if the big o time complexity of an o(n) algorithm is asked then according to the condition of big O notation O(n square) would also be a valid answer

119 Upvotes

64 comments sorted by

View all comments

Show parent comment

0

u/amarao_san Sep 17 '26

Is there a name for a tight bound? Like if something seems to be quadratic, n² is a proper (name for this bound), but n³, n! or exp(n) are not (name for this bound).

1

u/not-just-yeti Sep 17 '26

big-Theta, Θ(n).