Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started