BIT201 · 2080 · 10 marks
Discuss the limitation of choosing first element as pivot in quick sort. Using merge sort algorithm, sort the numbers 40, 6, 5,21, 3, 100, 90, 7, 8, 12, 30.
Discuss the limitation of choosing first element as pivot in quick sort. Using merge sort algorithm, sort the numbers 40, 6, 5,21, 3, 100, 90, 7, 8, 12, 30.[10]
Data Structures and AlgorithmsChapter 6: Sorting AlgorithmsMerge sort algorithm and tracingNumerical: Merge sort