Gadgets 4 Students Career Guide Free Tutorials  Go to Your University  Placement Preparation 
0 like 0 dislike
in Examples, Exercises and Projects by (562 points)
edited by

Here, you will get to know how to solve problems in asymptotic notation.

1 Answer

0 like 0 dislike
by (562 points)
selected by
Best answer

P:1) Show that f(n) +g(n) =O(n²) where f(n) =3n²-n+4 and g(n) =nlogn+5


We know that, 'O' is called 'Big-oh'  notation where  O is defined as

 f(n) =O(g(n))  only if there is positive constant C and where f(n) ≤c.g(n), n≥n0

In the given problem, we have to prove that , 

f(n) +g(n) =O(n²) 

where, f(n) =3n²-n+4 , g(n) =nlogn+5

Hence, we can write it as :

⇒3n²-n+4+nlogn+5 <4n² , where n≥5

Therefore, by taking n=5

⇒3(5)2 -5+4+5log5+5≤4(5)2




f(n) +g(n) =O(n²) 

Hence , proved. 

P:2) Define the function f(n) =12n2+6n is O(n3)  and y(n) . 


Given that, 

f(n) =12n2+6n

Let, k>0 be a constant, Consider n0=(12+6) /k



therefore, f(n)=O(n³) 

To show, that f(n) =y(n) let k>0 be any constant. 

Consider, n0=k/12 , for all n≥n0 


Therefore, f(n) =y(n) 

P:3) Show that f(n)=4n2-64n+288=y(n2)


Given that:


We need to prove 


we can prove that by writing above equation in following form,


where, n≥1(As per the definition of y)




Therefore, 4n²-64n+288=y(n²)


P:4) Find big-oh notation and little oh notation for ,f(n)=7n3+50n2+200


Given that ,


According to Big-oh notation









Therefore, 7n3+50n2+200=O(n3)

The liitle oh notation is f(n)=O(n4)

Learn & Improve In-Demand Data Skills Online in this Summer With  These High Quality Courses[Recommended by GOEDUHUB]:-

Best Data Science Online Courses[Lists] on:-

Claim your 10 Days FREE Trial for Pluralsight.

Best Data Science Courses on Datacamp
Best Data Science Courses on Coursera
Best Data Science Courses on Udemy
Best Data Science Courses on Pluralsight
Best Data Science Courses & Microdegrees on Udacity
Best Artificial Intelligence[AI] Courses on Coursera
Best Machine Learning[ML] Courses on Coursera
Best Python Programming Courses on Coursera
Best Artificial Intelligence[AI] Courses on Udemy
Best Python Programming Courses on Udemy

 Important Lists:

Important Lists, Exams & Cutoffs Exams after Graduation PSUs


About Us | Contact Us || Terms & Conditions | Privacy Policy ||  Youtube Channel || Telegram Channel © Social::   |  | 


Free Online Directory