$\max(f(n), g(n)) = O(f(n) + g(n))$
How do I prove this? Also I'd appreciate the markup being corrected, thanks.
|
$\max(f(n), g(n)) = O(f(n) + g(n))$ How do I prove this? Also I'd appreciate the markup being corrected, thanks. |
|||||
|
|
You can use $\max(f(n),g(n)) \leq f(n) + g(n)$, given that both functions are non-negative. |
|||||
|
|