If
f(n) is Ο(g(n))
andd(n) is Ο(h(n))
, then prove thatf(n) + d(n)= O(g(n)+ h(n))
我在想出正式证明时遇到了麻烦。
这是我目前所拥有的:
f(n)=O(g(n)) and d(n)=O(h(n)) so, O(g(n)) + O(h(n)) = O(g(n)+ h(n))
但我不确定这个,因为它看起来很简单。
感谢任何帮助。
EDIT: i must prove this, I cant prove this by saying an example, I have to solve it as a proof by using a C constant I think or some other way..
最佳答案
关于algorithm - 证明 f(n) + d(n)= O(g(n)+ h(n)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49971162/