r/computerscience • u/Significant_Virus142 • 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
118
Upvotes
View all comments
3
u/kevleyski Sep 17 '26
Just a problem of scaling, what if we have lots of these compare two or more variants of an algorithmÂ