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 bRecall that nb represents the size of the smaller problems
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
