Question: Asymptotic notations Exercise sheet Exercise 1 : Assume that each of the expressions below gives the processing time T ( n ) spent by an

Asymptotic notations
Exercise sheet
Exercise 1:
Assume that each of the expressions below gives the processing time T(n) spent by an algorithm for solving a problem of size n. Select the dominant term(s) having the steepest increase in n and specify the Big-Oh complexity of each algorithm.
\table[[Expression,Dominant term,O-notation],[5+0.001n3+0.025n,,],[500n+100n1.5+50nlog10n,,],[0.3n+5n1.5+2.5n1.75,,],[n2log2n+n(log2n)2,,],[nlog3n+nlog2n,,],[3log8n+log2log2log2n,,],[100n+0.01n2,,],[0.01n+100n2,,],[2n+n0.5+0.5n1.25,,],[0.01nlog2n+n(log2n)2,,],[100nlog3n+n3+100n,,],[0.003log4n+log2log2n,,]]
Exercise 2:
a. Given any two functions f(*) and g(*), show that f(n)+g(n)=(max{f(n),g(n)})
b. Decide whether these statements are True or False. You must briefly justify all your answers to receive full credit.
O(f+g)=O(f)+O(g)
If f(n)=O(g(n)) and g(n)=O(h(n)), then h(n)=(f(n))
O(f:g)=O(f)*O(g)
if g(n)=(f(n)) and h(n)=(f(n)) then g=(h(n))
Asymptotic notations Exercise sheet Exercise 1 :

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!