Home /
Expert Answers /
Computer Science /
answer-each-of-the-following-questions-justify-your-answers-using-either-the-definitions-of-o-pa347
(Solved): Answer each of the following questions. Justify your answers using either the definitions of O,, ...
Answer each of the following questions. Justify your answers using either the definitions of O,?, and ? or the techniques shown in class (along with basic math). Note: for limit tests involving logs, you may ignore any constants generated by taking derivatives of the log; that is, you may assume its base is e. This assumption is permissible because any log can be converted to a natural log by multiplying by a constant, which does not affect the outcome of the test. 4. Does (n?2)2=?(nlogn) ? 5. Does 4log2?n+log2?log2?n=?(n2) ? 6. Does nlog10?n=O(nlnn) ? 7. Does (2n2??200n)=?(n2) ? 8. Does nlogn=?(n4/3) ? 9. Let f(n) and g(n) be non-negative functions of n. Prove using the definitions of O,?, and ? - not using limit tests - that if g(n)=?(f(n)), then f(n)+g(n)=?(g(n)). 10. Let f(n) and g(n) be non-negative functions of n. If f(n)=?(g(n)), does f(n)/g(n)=?(1) ? Justify your answer.
4. To determine whether , we must analyze the growth rate of the two terms.Using basic algebra, we can expand . Since the highest order term is , we can ignore the lower order term in our comparison with .We can use the definition to determine the growth rate of nlogn. We want to find the sequence c1, c2 and such that for all Taking the lower limit, .Dividing both sides by gives .
The right side of the inequality, , approaches n as n approaches infinity, while the left side grows logarithmically. Therefore, it is impossible to find a sequence of c1, c2, and n0 to satisfy the definition of .