Hacker News new | ask | show | jobs
by quickthrower2 1027 days ago
It should have been N+K not N-K
1 comments

I'm not sure what your big-O expression is supposed to mean, but if a sequence is decreasing and bounded below (which runtime is) then it has a limit. Since the sequence is discrete, it can't get arbitrarily close to the limit without reaching it. So at some point the runtime will stop decreasing.

You can approximate the runtime with a function that decreases forever, but the actual runtime will be constant for large enough n.

It is for a typical case not a specific case. The mean time, if you like.