In Asymptotic Analysis, Show That :- O( f(n) + g(n) ) = O( max{ f(n) , g(n) } ) [closed]
O represents Big-O.
O(g) : { f| f is non negative function there exists c,m where c and m are any constants such that f(n) <= cg(n) for all n >= m } Show That :- O( f(n) + g(n) ) = O( max{ f(n) , g(n) } ) .This follows from max{f(n), g(n)} <= f(n) + g(n) <= 2*max{f(n), g(n)}.
精彩评论