Be sure to indicate the value of i and min after each iteration.S O R T I T
2.
Show, in the style of the trace of Algorithm 2.2 (
p. 157
),
the result of using insertion sort to sort the keys:
S O R T I T
Be sure to indicate the value of i and j after each iteration.
3.
Show, in the style of the trace of Algorithm 2.3 (
p. 165
),
the result of using shellsort to sort the keys:
Be sure to give the value of h used in each step.N O T H A R D T O S H E L L S O R T