If I have a recurrence equation like
$$T(n) \leq T(n/2) + Θ(n) + O(n),$$ then is this expression equal to $T(n) \leq T(n/2) + Θ(n)$? Or is that expression equal to: $T(n) \leq T(n/2) + O(n)$?
If I have a recurrence equation like
$$T(n) \leq T(n/2) + Θ(n) + O(n),$$ then is this expression equal to $T(n) \leq T(n/2) + Θ(n)$? Or is that expression equal to: $T(n) \leq T(n/2) + O(n)$?
Your inequality says basically that there exist $f$ and $g$ such that
$$ T(n) \le T(n/2) + f(n) + g(n) $$
where $f(n)$ is $\Theta(n)$ and $g(n)$ is $O(n)$.
Since any function that is $\Theta(n)$ is also $O(n)$ and $\Theta(n)+\Theta(n)$ is $\Theta(n)$, you could equivalently say that $$ T(n) \le T(n/2) + \Theta(n) $$ ie. your first variant.