325 views
0 votes
0 votes
the following questions are answered by me ,but are they right i have doubt on them  specially on last one please check .

1.the tightest lower bound on the number of comparisions in the worst case for comparision based sorting algo is of the order of  nlgn.

2..the tightest lower bound on the number of comparisions in the best case for comparision based sorting algo is of the order of

n

3..the tightest upper bound on the number of comparisions in the worst case for comparision based sorting algo is of the order of

n^2

4..the tightest upper bound on the number of comparisions in the best case for comparision based sorting algo is of the order of  n^2

Please log in or register to answer this question.

Related questions

1 votes
1 votes
0 answers
1
srestha asked May 19, 2019
638 views
Let $A(n)$ denotes the number of $n$ bit binary strings which have no pair of consecutive $1’s.$ what will be recurrence relation for it and what will be it’s Time Co...
0 votes
0 votes
0 answers
2
eyeamgj asked Aug 30, 2018
277 views
https://gateoverflow.in/43600/gate1992-07bhow can we sovle recurrence relation if recurence relation not exists ??we can compute the value and tym complexity??
0 votes
0 votes
0 answers
3
eyeamgj asked Aug 30, 2018
196 views
https://gateoverflow.in/27194/tifr2014-b-9CAN ANY ONE GIVE AN EXAMPLE BY TAKING SOME ELEMENTS SAY 14 ELEMENTS AND PLEASE SHOW HOW 2ND AND 3RD MINIMUM ARE RETRIEVING USING...
0 votes
0 votes
1 answer
4
eyeamgj asked Jun 24, 2018
408 views
consider the following c program A(n){if(n<=1)return(n2 +n+1)elsereturn(5A(n/2)+3A(n/2)+MA(n))}where MA(n) has complexity O(n2).1.what is the recurrence relation for valu...