in Algorithms edited by
500 views
2 votes
2 votes

in Algorithms edited by
500 views

4 Comments

$1536$
0
0

It is correct as per the test series but I have a doubt:

To arrive at 1536 as an answer, T(n) = c.nlogn

but T(n) = c1.nlogn + c2.n + c3 is also a valid equation corresponding to θ(nlogn)

So what is the reason for T(n) = c.nlogn ?

0
0

@Pratik Gawali plz see this picture below:

0
0

I have a doubt.

I know that 0(n logn) is basically a function with nlogn term i.e. cn *logn

My question is why cannot we write it as nlogn + c  as its time complexity also becomes 0(nlogn)  ?

@ @    

 

please help...thanks in advance...

0
0

Please log in or register to answer this question.