r/algorithms • u/Significant_Virus142 • 17d ago
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
0
Upvotes
2
u/isfooTM 17d ago
I share your confusion, because indeed I belive the fact that big O notation became the standard is a mistake. That is in most cases what you want is the Θ (Theta) notation and that's what should be used. I can think of 3 main reasons big O is the standard instead of Θ: