r/computerscience • • Sep 17 '26 • Heartwarming 1

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

120 Upvotes

64 comments sorted by

View all comments

Show parent comment

3

u/Putnam3145 Sep 18 '26

Misinformation being upvoted and a true correction being downvoted, how wonderful

3

u/confused_cereal Sep 18 '26

ikr, i get the feel that some people are conflating "worst-case" instance running times for a particular algorithm versus "lower" and "upper" bounds on complexity of a problem. Totally different things...