upvote
Is literally anyone confused by the notation? Constrained to this problem: There exists an algorithm achieving Θ(n^2.25) runtime. There does not exist an algorithm achieving o(n^2.25) runtime. If we want to be pedantic about function classes vs other extensions of Big-O notation then we can talk about the runtime of some specific class of algorithms associated with this problem and manufacture the function everyone is implicitly referring to. It's a perfectly fine shorthand phrasing, especially given that the domains are different for that overlap in vocabulary.

The best/average/worst case stuff is similarly quite easy. For best, take the lowest runtime for the algorithm across all inputs of length n. Do Big-O on that sequence. Worst-case is the same technique applied to the highest runtime. Average is a bit messy since it pulls in an undefined measure which may or may not related to your application, but once you have a measure it's no harder than the other two to analyze. These are rudimentary functions satisfying the pedantry you're asking for and also exactly corresponding to the normal engineering mentality when they reach for that verbal shorthand. Why do they need further elaboration?

reply
I think you are unnecessarily pedantic. E.g. for decision problems it is established, that a problem is in O(f(n)) if there exists an algorithm running in O(f(n)) time and the same goes for small o and big theta.
reply
"Problem" is just a shortcut for "the optimal algorithm(s)." It's well established? It implicitly requires that the algorithm(s) in question have been proven to be actually optimal for the problem.
reply
"Problem" is absolutely not a shortcut for "the optimal algorithm(s)". These are important and distinct concepts in computer science.

Perhaps most obviously, one can define problems that have no correct algorithms, like the halting problem. The study and analysis of these problems is critical, and furthermore undecidable problems are themselves different (there is a hierarchy of undecidability), so it is not even the case that "all problems with no correct algorithms are equivalent".

reply
This is super-pedantic and not at all how we communicate bounds in the field of algorithms research.

We say all the time that a problem has a certain running time, that's not a problem at all, because after all, our main question is what time it takes to solve the problem.

You can simply go to arXiv cs.ds and see for yourself.

reply
Yeah, I think a more correct statement would be "Problem is O/theta(f(x))" means that the "problem is in the set of problems solvable in O/theta(f(x)) operations you care about in the implied computing model".
reply
That's one way to look at it, yes.

But I think more commonly we say that problem P is O(f) if there exists an algorithm deciding P that runs in time O(f).

reply
The distinction between functions and problems seems questionable here.
reply
How's this for pedantry... problem vs algorithm vs function aside, the pesky epsilon in the upper bound means it isn't big-theta either!
reply