Answered step by step
Verified Expert Solution
Link Copied!

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions

Question

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago

Question

Design a training session to maximize learning. page 296

Answered: 1 week ago

Question

Design a cross-cultural preparation program. page 300

Answered: 1 week ago