If we know that algorithm X is \Theta(n)
in
the average case, then what can we say about
its TIGHTEST upper bound?
O(n)
in the average case.O(n)
or greater in the average case, but we don't have enough information to say more.O(n)
or less in the average case, but we don't have enough information to say more.What is the definition of \Theta(n)
?
Being \Theta(n)
means that we know a tight
bound (both the upper and the lower bounds match).
If X is \Theta(n)
, then it is
both O(n)
and \Omega(n)
.