Practice Insertion Sort
Directions:
1. Watch videos here on the different sorts
2. Fill in the empty blocks from strating from left to right
Step 1
Step 2:
Step 2b:
Step 3:
Step 3b:
Step 3c:
Step 4:
Step 4b:
Step 4c:
Step 4d:
Step 4e:
Step 5:
a. Check if the number in the blue box is smaller than the one in the red box
b. If it is, switch the two numbers. If not, do not switch the numbers.
c. Bring the rest of the elements down
Step 5b:
a. Check if the number in the blue box is smaller than the one in the black box
b. If it is, switch the two numbers. If not, do not switch the numbers.
c. Bring the rest of the elements down
Step 5c:
a. Check if the number in the blue box is smaller than the one in the black box
b. If it is, switch the two numbers. If not, do not switch the numbers.
c. Bring the rest of the elements down
Step 5d:
a. Check if the number in the blue box is smaller than the one in the black box
b. If it is, switch the two numbers. If not, do not switch the numbers.
c. Bring the rest of the elements down
Step 5e:
a. Check if the number in the blue box is smaller than the one in the black box
b. If it is, switch the two numbers. If not, do not switch the numbers.
c. Bring the rest of the elements down