in Algorithms
1,029 views
0 votes
0 votes

Can anyone help me to understand this problem….??

in Algorithms
1.0k views

7 Comments

Try to type the question.

You have to choose false here.
0
0
c option is also wrong na...

sorted array of size m and n

and applying merge sort  than it take O(nlogn+mlogm).

correct me if i am wrong
0
0

@Vikas123 bro read the question properly it is asking about merge procedure not merge sort. you know that merge sort contain 3 functions inside it .

mergesort(a,p,r)

{

{if (p<=r)

q=p+r/2;

mergesort(a,p,q);

mergesort(a,q+1,r);

merge(a,p,q,r);// question is specifically asking about tc of this part

{

}

hope this helps

 

0
0
Question talking about the merge procedure not merge sort.

Time will be O(n+m).
0
0

ohhh silly mistake was done....

@kumar.dilip and @adarsh_1997

thanx bro

0
0
Brother just see option (B) and (D).

You have to read complete question first.
0
0

I recommend you to follow the merge sort article from here. Clear basic concepts first by solving the example program in your favorite code language.

0
0

Please log in or register to answer this question.

Related questions