0
2^n −8 = O(2^n)
It says there are some positive constants c and n0 for which
0 <= f(n) <= cg(n) for all n >= n0
我解決它:找到儘可能緊的邊界?
2^n −8 <= c2^n
If c = 1, and n0 = 1
1-8 <= 1*1
-7<= 1
then for all n >= n0 it remains true.
這是事實,但我不明白什麼是儘可能緊密找到邊界的含義是什麼? 任何人都可以解釋嗎?
是我的解決方案是好的,因爲考慮到上緊。 –
@MuhammadHamza是你的解決方案是正確的;正如我所說,你的問題的原因可能是因爲在這種情況下的答案看似簡單,使你對這個問題的*點*感到困惑 – meowgoesthedog