What do the following mean, in the context of greater than
, or smaller than
?
$$ O(n \log n) > O(n) $$
$$ O(nlogn) < O(n^2) $$
In this context, this comparison means the subset of
. Hence, $O(n\log n) > O(n)$ means All members of $O(n)$ exist in $O(n \log n)$ as well or $O(n) \subset O(n \log n)$. For example, $f(n) = \sqrt{n} \in O(n)$ and $f(n) \in O(n\log n) $ and $g(n) = n \log n \not \in O(n)$ and $g(n) \ \in O(n \log n)$.
>
or<
between two Big-O notations for time complexity implies or means? Does it mean that the one that is greater is better, or the one that is less then is greater? $\endgroup$