Final answer:
The lab assignment involves implementing and comparing recursive or iterative versions of Quicksort and Natural Merge Sort algorithms to analyze their performance based on various parameters.
Step-by-step explanation:
The lab assignment requires writing and comparing Quicksort and Natural Merge Sort algorithms, with an emphasis on recursive or iterative implementation to minimize overhead in performance comparison. Variants of Quicksort outlined include differing pivot selections (first item or median-of-three) and partitions of varying sizes at which to stop and potentially use an insertion sort. Natural Merge Sort is to be implemented using a linked structure to conserve space compared to a regular Merge Sort. Input data sets will vary, with sizes 50 to 10,000 integers, and different orders (random, reverse, ascending) to analyze performance based on file size, data order, and sorting parameters like pivot selection.
Performance metrics such as runtime and time-space efficiency must be collected and compared. The analysis should justify data structure choices and discuss the impact of these parameters on the efficiency of the sorting algorithms. Possible extensions include exploring other pivot selection techniques for Quicksort or handling larger or different data sets.