简体   繁体   English

大O而不是小O意味着Theta? 同样,大欧米茄和小欧米茄暗示Theta吗?

[英]Big-O and not Little-O implies Theta? Similarly, Big-Omega and not little-Omega implies Theta?

If f(n) is O(g(n)) but not o(g(n)) , is it true that f(n) is theta(g(n)) ? 如果f(n) is O(g(n))但不是o(g(n)) ,那么f(n) is theta(g(n))真的吗?

Similarly, f(n) is Omega(g(n)) but not omega(g(n)) implies f(n) is theta(g(n)) . 同样, f(n) is Omega(g(n))但不是omega(g(n))意味着f(n) is theta(g(n))

If not, can you provide an explanation/counter-example please? 如果没有,请提供说明/反例吗?

*NOTE : think of O as <= and o as <. *注意:将O视为<=并将o视为<。

If f(n) is O(g(n)) but not o(g(n)), is it true that f(n) is theta(g(n))? 如果f(n)是O(g(n))而不是o(g(n)),那么f(n)是theta(g(n))是真的吗?

Yes, f(n) ∈ Θ(g(n)). 是的,f(n)∈Θ(g(n))。

f(n) = O(g(n)) means f(n) ≤ Cg(n). 

f(n) = o(g(n)) is possible if and only if f(n) = O(g(n)), but f(n) ≠ Θ(g(n)).

So, since f(n) is not o(g(n)), but it is O(g(n)), hence, f(n) ∈ Θ(g(n)). 因此,由于f(n)不是o(g(n)),而是O(g(n)),因此,f(n)∈Θ(g(n))。


*NOTE : think of Ω as >= and ω as >. *注意:将Ω视为> =,将ω视为>。

Similarly, f(n) is Omega(g(n)) but not omega(g(n)) implies f(n) is theta(g(n)). 类似地,f(n)是Omega(g(n)),但不是omega(g(n))则意味着f(n)是theta(g(n))。

Yes, f(n) ∈ Θ(g(n)). 是的,f(n)∈Θ(g(n))。 Following the similar logic : 遵循类似的逻辑:

f(n) = Ω(g(n)) means f(n) ≥ cg(n).

f(n) = ω(g(n)) is possible if and only if f(n) = Ω(g(n)), but f(n) ≠ Θ(g(n)).

So, since f(n) is not ω(g(n)), but it is Ω(g(n)), hence, f(n) ∈ Θ(g(n)). 因此,由于f(n)不是ω(g(n)),而是Ω(g(n)),因此,f(n)∈Θ(g(n))。

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

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