Question: Question 1 [ 1 0 marks ] ( a ) ( i ) The Mergesort algorithm is given in Appendix A ( i ) .
Question marksai The Mergesort algorithm is given in Appendix Ai Using the list L as your input, demonstrate how the Mergesort algorithm would sort the list. marksii Describe the conditions under which the Algorithm Mergesort will behave at its worst. Give an example of a list which will result in the worst case behavior of the algorithm Mergesort. Justify your answer. marksiii The Algorithm Mergesort calls the Algorithm Merge given in Appendix Aii Obtain the computational complexity for Algorithm Merge. marksiv Let Cn be the number of key comparisons required to execute Algorithm Mergesort on a list of n elements. Write a recurrence relation for the number of comparisons made by the algorithm in the worst case. markv Using the Master Theorem or otherwise, determine the efficiency class of Algorithm Mergesort. marks
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
