Insertion Sort
Age 16 · Computer Science
Insertion sort builds an ordered section at the left end of a row. Each next item is lifted, then placed into the correct spot while larger items already in the ordered section shift one position right to open a gap.
This picture is part of the full library
Every lesson is open to everyone for 7 days after it is published. This one came out on October 16, 2026: its text stays readable here, and its picture opens with a subscription.
The app is free. A subscription opens every lesson, in every school year.
Age 16: open this week
Browse Age 16In the picture
- A block already in its place in the growing ordered left section
- The open gap on the shelf where the lifted block will drop in
- The next block held above the row, ready to be inserted
- A taller block shifted one step right to make room
- A block at the right end still waiting to be processed
Examples
- Sorting a hand of playing cards by sliding each new card into its place.
- Putting books back on a shelf by inserting each book where it belongs.
Key takeaways
- It works well for small lists or lists that are already nearly ordered.
- After each insertion, the left part remains ordered.
Quiz: Insertion Sort (Age 16)
-
During insertion sort, what happens to the next item as it is inserted into the ordered left section?
-
After each insertion in insertion sort, what is true about the left part of the row?
-
According to the card, insertion sort works well for which kinds of lists?
The answers, each with its explanation, are in the app. This lesson has left the free week, so its quiz is part of the subscription.
Free app, optional subscription
App Store Google Play
Carry on in the app
At least one new illustrated lesson every weekday for your child’s year, with its quiz and a reminder at 6:15 pm.
Your child’s teacher does not use My Enhanced Teacher yet?
Tell them about it