In: Computer Science
b.Sort the list stated in 5a) but using Merge Sort
Q1:
(a)
Sol: Below is the image depicting the number of comparisons at each pass and the total number of comparisons:
(b)
Sol: Below is the image depicting the use of merge sort for sorting the array:
(Thank You!, please consider upvoting if it was helpful!)