1,353 views
0 0 votes
In the context of merge sort, which of the following are true?

$1.\ T(n)\ =\ o(n^2)\\ 2.\ T(n)\ =\ O(n^2)\\3.\ T(n)\ =\ \omega(n)\\4.\ T(n)\ =\ \Omega(n) $

1 Answer

1 1 vote
If I need to answer I go with 1st and 3rd,merge sort is nlogn, in Big-oh it is T(n)<=cn^2,but merge sort never can be O(n^2)

and same with omega T(n)>=c.n,but merge always be greater than (n),it but in little-oh say T(n)<c.n^2 and little  omega T(n)>c.n,
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.5k
1.5k views
shreshtha5 asked Dec 3, 2015
1,499 views
Q). Consider the following functions$f_1 = n^{\frac{4}{3}}$$f_2=2^{2^n}$$f_3= 2^{n^2}$$f_4= n!$$f_5=2^n$Which of the following is true?A). $f_1$ is $\Omega(f_2)$B). $f_2$...
0 0 votes
1 1 answer
670
670 views
Chaitanya Kale asked Nov 10, 2022
670 views
Can we write f(2$^{n/a}$) = Θ(2$^{n}$) for any integer a >0?
1 1 vote
2 2 answers
2.5k
2.5k views
Lakshman Bhaiya asked Nov 1, 2018
2,502 views
Consider the following statements:$(1)$ Any two functions $f,g$ are always comparable under big Oh,that is $f=O(g)$ or $g=O(f)$$(2)$ If $f=O(g)$ and $f=O(h)$ then $g(n)=\...
1 1 vote
0 0 answers
1.0k
1.0k views
NIKU asked Nov 14, 2017
1,041 views
int unknown(int n) {inti, j, k = 0;for (i = n/2; i<= n; i++)for (j = 2; j <= n; j = j * 2)k = k + n/2;return k;}What is the returned value of the above function? (GATE CS...