logoalt Hacker News

ddtayloryesterday at 8:14 PM1 replyview on HN

I think the notation is supposed to mean the worst performance. This is more an argument about amortized time analysis.


Replies

tsimionescuyesterday at 8:35 PM

No, this is a common misconception. Big O notation just represents a class of functions, it has nothing to do with complexity analysis, except for being very popular in the field. Whether an algorithm has O(N) worse case runtime or O(N) best case runtime or O(N) typical case runtime are all valid questions.

show 1 reply