2. (10) Consider the following list:
L= [33, 19, 24, 6, 12, 2, 1]
First assume that we would like to sort L in ascending
order (left to right)
using a selection sort.
Show the results of the first four passes of the
selection sort in the spaces
provided.
Pass 1:
Pass 2:
Pass 3:
Pass 4:
Next assume that we would like to sort L in ascending
order (left to right) using an insertion sort.
Show the results of the first four passes of the
insertion sort in the spaces provided.
Pass 1:
Pass2:
Pass 3:
Pass 4: