2,149 views
1 1 vote
Consider the modified merge sort where we divide array into 5 equal sub arrays instead if 2(as in standard merge sort).What is the time complexity if modified merge sort? Is there any improvement over standard merge sort?

1 Answer

0 0 votes

if we want to divide the array in 5 sub array then  recurrence relation become

T(n) =5T(n/5)+n.

it will also take o(nlogn) which is asymptotically equal.

Position:
Show:

Related questions

0 0 votes
3 3 answers
1.7k
1.7k views
aditi19 asked Oct 6, 2018
1,706 views
what is the recurrence relation for merge sort?
1 1 vote
0 0 answers
1.5k
1.5k views
0 0 votes
0 0 answers
834
834 views
learner_geek asked Oct 28, 2017
834 views
IS 2 way merge sort and normal merge sort is same.in which we have to use bottom-up merging approach by taking 2-2 element inside the list.if 5-way merge sort then in the...
4 4 votes
1 1 answer
2.4k
2.4k views
Shivi rao asked Oct 10, 2017
2,426 views
True or FalseMerge sort on Linked list takes O(nlogn)