Skip to content
Related Articles

Related Articles

Improve Article

Algorithms | Sorting | Question 14

  • Difficulty Level : Medium
  • Last Updated : 11 Jun, 2019

In a modified merge sort, the input array is splitted at a position one-third of the length(N) of the array. Which of the following is the tightest upper bound on time complexity of this modified Merge Sort.
(A) N(logN base 3)
(B) N(logN base 2/3)
(C) N(logN base 1/3)
(D) N(logN base 3/2)


Answer: (D)

Explanation: The time complexity is given by:
T(N) = T(N/3) + T(2N/3) + N
Solving the above recurrence relation gives, T(N) = N(logN base 3/2)

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :