因为老师上课没讲什么证明范例, 书上也写得少
自己找题目写遇到不少瓶颈, 我知道基本观念是
f(n) = O(n) iff there exist positive constants c and n0 s.t
f(n) <= c*g(n) for all n which n >= n0
那个c 在证明过程中可以随便假设吗?
因为总觉得要有一定范围才可以, 像下面的证明我设1就不知道怎么继续下去
证明题如下:
show that n! = O(n^n)
show that n^(2^n) + 6*2(^n) = θ(2^(2^n))
show that n^2 * logn = θ(n^2) is incorrect
大致上就是这些了, 希望有大大不吝指教, 谢谢 (拜)