0

Describe a modified merge sort algorithm, in which a given sequence is split into split into three sub-sequences of equal size approximately one-third. Analyze asymptotically the time complexity of your algorithm. How to solve this?

2
  • See Master Theorem. Commented Nov 12, 2012 at 4:55
  • 2
    @user1817250: What have you already tried? Commented Nov 12, 2012 at 4:58

1 Answer 1

1

This is probably your homework but i would recommend that you do read chapter 2 from Cormen , Lierson and Rivest .

solve this recurrence relation - T(n) = 3T(n/3) + O(n)

Every problem is subdivided into 3 sub-problems and contain n/3 part of the original data. Apply masters theorem to it and you will find that the answer is 0( n*log(n) ).

Note - here logarithm is of base 3 .
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.