978 views
1 votes
1 votes

Consider the following variation on merge sort for the large values of 'n  'instead of recursing until 'n' is sufficiently small recur atmost a constant 'r' times and then use insertion sort to solve the 2r resulting sub problems.What is the running time of this variation

a)theta(n)

b)theta(n log n)

c)theta(n2)

d)theta(log n)

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Ujjal Das asked Mar 17
137 views
Calculate the minimum and maximum number of element comparisons involved in 2 way merge sort assuming n is power of 2.
1 votes
1 votes
0 answers
3
0 votes
0 votes
0 answers
4
Nandkishor3939 asked Jan 21, 2019
698 views
What is the extra memory needed for merge sort:1] In case of Iterative merge sort.(DS:Array)2]In case of Recursive merge sort.(DS:Array)3] In case of Iterative merge sort...