algorithm - 证明 f(n) + d(n)= O(g(n)+ h(n))

标签 algorithm big-o analysis notation

If f(n) is Ο(g(n)) and d(n) is Ο(h(n)), then prove that f(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..

最佳答案

正式地,通过使用 Big-O-Notation 的定义,它可以像 Hans Hyttel 那样完成 here .

证明:

enter image description here

关于algorithm - 证明 f(n) + d(n)= O(g(n)+ h(n)),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49971162/

相关文章:

javascript - 找到以给定项目为中心的数组的子集

c# - 如何在 C# 中合并列表中的日期范围

c - 快速插入的数据结构

java - 使用 FFT 进行频谱分析、基频推导

excel - SSAS 2008/Excel 2007 - 看不到立方体

reporting - 测试报告

ios - Swift:拆分 [String] 产生具有给定子数组大小的 [[String]] 的正确方法是什么?

time-complexity - 成长上市顺序

algorithm - 该算法的复杂度函数

algorithm - 链表插入运行时困惑