Question: Section 8 . 3 Example 3 discusses 2 - way merge sort where an unsorted list of size n is: 1 ) split into two
Section Example discusses way merge sort where an unsorted list of size n is:
split into two equal parts of size n each
sort the two lists of size n using merge sort recursively
merge the two sorted lists of size n into a sorted list of size n by scanning down the sorted lists of size n
An alternative to way merge sort is way merge sort where the unsorted list of size n is:
split into four equal parts of size n each
sort the four lists of size n using merge sort recursively
merge all four sorted lists of size n into a sorted list of size n
To apply the Master Theorem Theorem on page to determine the bigoh notation for the way merge sort we need to write the divideandconquer recurrence relation for the number of comparisons, fn in the form
fn afnb cnd
For way merge sort, what is the value of dRecall that cnd represents the number comparisons to divide the larger problem into smaller problems and combine the answers to the smaller problems into the answer to the large problem ie the amount of work to merge four sorted lists of size n into a single sorted list of size n
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
