Question: Merge sort involves splitting the input array into two subarrays recursively, sorting each of them and finally merging two sorted subarrays. Another idea is to
Merge sort involves splitting the input array into two subarrays recursively, sorting each of them and finally merging two sorted subarrays.
Another idea is to split the input array into three parts as evenly as possible. Then we can try to sort each of them recursively and finally merging three sorted subarrays into one single sorted array.
Is this idea correct? Please breifly justify your answer. You may elaborate implementation details of this idea.
If this idea is correct. Please analyze the time complexity of the algorithm
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
