简体   繁体   English

证明各种渐近符号

[英]Prove Asymptotic Notations of Various kinds

I have a few exercise problems for my Algorithms Home-work and I can't seem to figure out on how to proceed with the proofs of the following relations: (Note that some of them are not necessarily true in which case we need to disprove them using a counter example) 我的算法作业有一些练习题,我似乎无法弄清楚如何处理以下关系的证明:(请注意,其中有些不一定是正确的,在这种情况下,我们需要作证使用反例)

1) Prove that O(O(f(n))) = O(f(n)) (This one seems intuitively correct, but I don't have the mathematical sophistication to prove it 1)证明O(O(f(n))= O(f(n))(从直觉上看这是正确的,但是我没有数学上的精巧性来证明这一点

2) Prove that O(Theta(f(n))) = O(f(n)) 2)证明O(Theta(f(n)))= O(f(n))

And I have similar relations like so, that I have to prove or disprove. 而且我有类似的关系,必须证明或反对。 If anyone can help me in approaching at least one proof among the above, I think I can use the same approach for the rest of them. 如果有人可以帮助我解决上述问题中的至少一项,我想我可以对其余部分使用相同的方法。

Any help will be appreciated! 任何帮助将不胜感激!

Your first question is a duplicate of: 您的第一个问题是:

What does O(O(f(n))) mean? O(O(f(n)))是什么意思?

The second question should become straightforward once you understand the answer for the first question. 一旦您理解了第一个问题的答案,第二个问题就应该变得直截了当。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM