in Algorithms edited by
9,636 views
33 votes
33 votes

Suppose $T(n) =2T (\frac{n}{2}) + n$, $T(0) = T(1) =1$

Which one of the following is FALSE?

  1. $T(n)=O(n^2)$

  2. $T(n)=\Theta(n \log n)$

  3. $T(n)=\Omega(n^2)$

  4. $T(n)=O(n \log n)$

in Algorithms edited by
9.6k views

3 Comments

It is the recurrence relation of $Merge-Sort$. The time complexity of merge sort is $Θ(nlogn)$.
The option (C) is false!

14
14
In option c if it would have been given omega (n) then will it be right?
0
0
0
0

5 Answers

42 votes
42 votes
Best answer

Applying Masters theorem,

$T(n) = \Theta (n \log n)$

So, it cannot be  $\Omega(n^2)$.

Hence, answer is (C).

edited by
by

4 Comments

got now thanks sir
1
1
arujun sir it means theta determine big oh and omega.

   Or

theta equal to big oh and omega. ???
0
0
@satbir

Is the comment made by @cse23 correct?
0
0
1 vote
1 vote

watch first 20 min, you will understand all about notations

https://www.youtube.com/watch?v=P7frcB_-g4w

0 votes
0 votes

If you are not getting how Master theorem works step by step, you can refer this blog post:

https://devsathish.wordpress.com/2012/01/19/master-theorem-with-examples/

P.S. Not mine.

0 votes
0 votes
Apply masters theorem to the above example,
a=2, b=2, k=1, p=0.
The recurrence relation result will be O(nlogn).
Answer:

Related questions