Prove that n + log2n = O(n) by showing that there exists a constant c > 0 such that n + log2n ≤ cn.
(note that log2n means (log n)2.)
1
2019-02-22T05:38:07-0500
(log2n−n)′=2logn×1/n−1=2((logn−n))/n≤0,n∈N(logn−n)′=1/n−1≤0log2n≤nn+log2n≤n+n=2n,n∈N
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Algorithms
Comments