Question: Apply the insertion sort to sort the list C, S, U, M, B, C, S in alphabetical order. You should present your answer as Figure
Apply the insertion sort to sort the list C, S, U, M, B, C, S in alphabetical order. You should present your answer as Figure 4.4 (page 135) of our textbook.


4.1 Insertion Sort In this section, we consider an application of the decrease-by-one technique to sorting an array A[0..n - 1]. Following the technique's idea, we assume that the smaller problem of sorting the array A[0..n - 2] has already been solved to give us a sorted array of size n-1:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
