Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 f(n) 是 Θ(g(n)),那么函数 2 f(n)是否总是 Θ(2 g(n) )?为什么或者为什么不?
这种说法是错误的。取 f(n) = 2n 和 g(n) = n。那么 f(n) = Θ(g(n)) 因为 2n = Θ(n)。
然而,2 f(n) = 2 2n = 4 n和 2 g(n) = 2 n,但 4 n ≠ Θ(2 n )。你可以看到这个,因为
lim n → ∞ 4 n / 2 n = lim n → ∞ 2 n = ∞
lim n → ∞ 4 n / 2 n
= lim n → ∞ 2 n
= ∞
希望这可以帮助!