retagged by
634 views
1 votes
1 votes

HI i am trying to understand what author is trying to explain in the below para. However i understood the meaning of Theta(n^2) but if anyone can explain me this para in simplified way it will be

great help.

retagged by

2 Answers

0 votes
0 votes

In d above equation which is given 1/2 n2-3n=Theta(n2) d leading coefficient is 1/2 coz nis of highest degree here. So certainly d answer will depend on more of d leading term. Yeah and 1/2 being d coefficient of n2. In essence nis of highest order and n only has order 1.Now d ques comes of determining d values of constants c1 and c2 respectively.

For d right hand side equality part as regards value of c2 is concerned it is 1/2 coz it is d coefficient of d highest degree. Therefore value  of c2 is 1/2 and n is greater than or equal to 1. This covers d right hand side equality part. 

However I m not able to understand how c1 has come as 1/14 for d left hand side inequality part. This then too solves 3/4th of ur explanation. 

0 votes
0 votes

In simple language it means that there are some constant present which can satisfy following condition.

c1n2  ≤ 1/2n2−3n ≤ c2n2    

And values given to c1 and c2 is one of the case which proves the condition .

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
saurabh12345 asked Jul 24, 2018
422 views
Insertion sort uses an incremental approach for designing algorithm can someone please explain?
1 votes
1 votes
0 answers
3