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