• retagged by
1,213 views
1 1 vote

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.

2 Answers

0 0 votes

In d above equation which is given 1/2 n2-3n=Theta(n2) d leading coefficient is 1/2 coz n2 is 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 n2 is 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 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 .

Position:
Show:

Related questions

0 0 votes
1 1 answer
699
699 views
1 1 vote
0 0 answers
512
512 views
Venkat Sai asked Oct 6, 2017
512 views
Once the parser makes the list of legitimate tokens available to the error recovery routine then this routine can decide whether a remaining input’s prefix matches one of...
0 0 votes
2 2 answers
848
848 views