Monday, September 14, 2020

#204 Prove that (each one 0.25pt.)

Prove that (each one 0.25pt.) - Computer Science

ChemistryExplain daily providing Q&A content “#204 Prove that (each one 0.25pt.)" in Computer science, Ba computer science, Berkeley computer science, Computer science associate degree jobs

ChemistryExplain “#204 Prove that (each one 0.25pt.)" in Computer science, Ba computer science, Berkeley computer science, Computer science associate degree
Get the Free Online Chemistry Q&A Questions And Answers with explain. To crack any examinations and Interview tests these Chemistry Questions And Answers are very useful. Here we have uploaded the Free Online Chemistry Questions. Here we are also given the all chemistry topic.

 ChemistryExplain team has covered all Topics related to inorganic, organic, physical chemistry, and others So, Prepare these Chemistry Questions and Answers with Explanation Pdf.

For More Chegg Questions

Free Chegg Question

Prove that (each one 0.25pt.)

a) 3n2+2n+4 is: O(n?)

b) (n3+ n2) is: O(n)

 For More Chemistry Notes and Helpful Content Subscribe Our YouTube Chanel - Chemistry Explain  

Free Chegg Answer

Big-Oh definition:
f(n) = O(g(n)) means there are positive constants c and k, such that 0 ≤ f(n) ≤ cg(n) for all n ≥ k.
 
a)
Given f(n) = 3n^2 + 2n + 4
0 <= f(n) <= 9n^2
Where c=9, n>0 and g(n)=n^2
So, from the definition of Big-Oh we can say that
f(n) = O(g(n)
3n^2 + 2n + 4 = O(n^2)


b)
Given f(n) = n^3 + n^2
0 <= f(n) <= 2n^3
Where c=2, n>0 and g(n)=n^3
So, from the definition of Big-Oh we can say that
f(n) = O(g(n)
n^3 + n^2 = O(n^3)

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home