Question: Problem 1 8 . Consider a modified version of MergeSort, which divides the array into 6 ( as equally - sized as possible ) partitions
Problem Consider a modified version of MergeSort, which divides the array into as equallysized as possible partitions Recall: Standard MergeSort partitions the array into equal sized sets This variation of MergeSort is called the kway MergeSort, where k Instead of dividing the input array into two sub arrays, way MergeSort divides the array into six subarrays, sorts them recursively, and then call a way Merge which combines four sorted arrays into one sorted array.
Note: This only occurs for array of sizes greater than or equal to For array of size less than assume that there is another sorting algorithm that sorts the elements in theta log n time.
Do the following two parts of the question.
Write down the recurrence relation for the runtime of this modified version of way MergeSort. Justifyyour recurrence relation in sentences.
Answer.
Solve your recurrence relation from part by any method you choose. Show your work. Find a function f n such that the runtime T n is T n Of n
Answer.
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
