Insertion stops early.
transcript
Eight holds, almost in order. Selection needs twenty eight comparisons. Insertion needs nine. Why is the gap so big?
Keep the front part sorted. Take the next hold, nine. Compare it with the hold before. Fourteen is larger, so it shifts right. Larger holds move one place to the right. Nine goes to the front.
Now take twenty one. Compare it with fourteen. Fourteen is not larger. The scan stops at once. One comparison, and no shift. That is why sorted data is cheap.
Selection compares every pair. Insertion makes nine comparisons. It shifts only three times. Each shift removes one pair out of order. The gap grows as the list gets longer.
A thousand nearly sorted holds. Selection makes almost half a million comparisons. Insertion makes two thousand two hundred fifty five. On this data it grows with n. Selection ignores the order. Insertion uses it.
Stop as soon as the value fits. Full breakdown in the lecture.