Teach insertion sort with a traceable card demo

Record an insertion sort lesson with a four-card trace, a stable sorted boundary and narration that makes every comparison and move visible.

EasyLines team6 min read
A hand inserting a number two card before cards four, five and one in a cream and coral editorial illustration with an EasyLines wordmark

AI-generated editorial illustration.

On this page 7 sections
  1. 1. What must the viewer see in insertion sort?
  2. 2. How should you arrange the cards?
  3. 3. What is the complete four-card trace?
  4. 4. How do you narrate a move without hiding it?
  5. 5. What about duplicate values or an already sorted input?
  6. 6. How do you check the lesson before recording the final take?
  7. 7. Frequently asked questions

Teach insertion sort on video by keeping the sorted cards on one side, taking one new card at a time and showing every move needed to insert it. Narrate the comparison before moving a card, then pause on the new state. Use a small complete example so viewers can trace the procedure instead of only seeing a shuffled row become ordered.

What must the viewer see in insertion sort?

Show the growing sorted portion and the next item being inserted. Without that boundary, the video can look like a person rearranging numbers by intuition rather than following a repeatable procedure. Keep the unsorted remainder visible too.

Princeton's elementary sorting material provides the algorithm reference for insertion sort. The card staging and narration below are a proposed teaching example, not a benchmark or a claim of classroom testing. Use ascending order and distinct small integers for the first demonstration so the visual task stays simple. Explain the order before moving anything. Avoid beginning with a speed comparison against another algorithm; the immediate reader question is how to show this procedure clearly. A later lesson can discuss computational cost with the definitions and evidence it needs. This video should first let the learner reproduce the sequence on their own cards.

How should you arrange the cards?

Use one fixed row, a clear gap or marker for the sorted boundary and a separate place to hold the current card. Keep the camera and reading direction consistent throughout the trace. A move should change the algorithm state, not the filming orientation.

Set out the hypothetical input 4, 2, 5, 1 from left to right. Put a small marker after the first card and explain that a single card is already sorted by itself. Place a labeled holding area above the row for the next card you are inserting. These physical conventions are your teaching aids, not additional algorithm requirements. Rehearse with the exact card size and camera height so all four values and your hand movements remain readable. If the table has distracting grain or reflections, use a plain mat. Do not cover a card with the boundary marker. The viewer should be able to identify the current value and the sorted range at every pause.

What is the complete four-card trace?

Show the sequence 4, 2, 5, 1 becoming 2, 4, 5, 1, then remaining 2, 4, 5, 1 after inserting 5, and finally becoming 1, 2, 4, 5. Explain the comparisons that lead to those states instead of jumping between them.

Lift 2 into the holding area. Compare it with 4, move 4 one place right and insert 2 before it. Move the boundary after 4. Next lift 5; since it is greater than 4, return it after 4 and expand the sorted range. Finally lift 1. Compare it with 5, then 4, then 2, moving each larger card one position right. Insert 1 into the opening at the left. Pause on the final row. Keep the unprocessed card order intact until each turn begins. If you accidentally rearrange a later card, reset the take; otherwise the video no longer demonstrates the input you announced.

How do you narrate a move without hiding it?

Say the comparison before the hand movement and confirm the resulting state after your hand leaves. That timing gives the learner a reason to watch the move and a clear result to inspect. Avoid talking past a fast shuffle.

For the first insertion, use: “The current card is two. Four is larger than two, so move four one place to the right. Put two in the open position. The sorted portion is now two, four.” Keep the hand still for the comparison, move once, then withdraw it. When several cards shift, repeat the meaningful comparison rather than saying “do the same thing” while your hand obscures the values. Do not add theatrical speed to prove that the operation is easy. If you want a faster recap, label it as a recap after the slow trace. A teaching take succeeds when the state changes can be followed, even if the presenter could perform them much faster.

What about duplicate values or an already sorted input?

Keep those as explicit follow-up examples after the first complete trace. Changing the input can reveal a different property, but it should not interrupt the learner's first attempt to understand the basic operation. State the comparison rule you use.

For a duplicate-value lesson, distinguish equal cards with small secondary labels and explain whether equal items move past each other under your chosen rule. Do not make an unsupported claim about every implementation from one physical demonstration. For an already sorted input such as 1, 2, 4, 5, show that each new card can remain after the preceding sorted cards. Keep the boundary moving even when the values do not change positions, because the processed range still changes. Record these as separate clips with their own announced inputs. That makes the lesson easier to update and prevents an editor from mixing states from incompatible examples. A clear first example is a better foundation than several incomplete traces.

How do you check the lesson before recording the final take?

Trace the procedure on paper and compare every filmed state with it. Then ask a reviewer to recreate the four-card example without reading your production notes. Their reconstruction is a practical clarity check, not a controlled study.

Use a small state log: initial row, row after inserting 2, row after inserting 5 and row after inserting 1. For each, record the sorted boundary and current card. Confirm that narration, visible values and hand movements agree. If the reviewer can name the final order but cannot explain the first insertion, add a longer hold or a clearer comparison line. Check the delivered video at an ordinary size so small numerals do not disappear. Keep the algorithm reference separate from your filming conventions, and correct any mismatch before publishing. The final lesson should demonstrate one understandable procedure from start to finish rather than rely on the viewer trusting the presenter's unexplained movements.

For your underlying delivery, read how to read a teleprompter naturally. For the adjacent workflow, see the related practical guide. Use these alongside the specific checks here when preparing the actual recording.

For another relevant preparation step, use this companion recording guide.

EasyLines is preparing to launch as a teleprompter and recorder. If you want to follow its progress, join the EasyLines waitlist. Plan any specialist editing, measurement or event playback in the appropriate separate tools.

For the specific next step, read Teach alphabetical order through the first difference.

Frequently asked questions

How many cards should the first example use?

Four distinct values are enough for a complete short trace with several insertion positions. This is a teaching choice, not a rule.

Do I need to show every shift?

Yes in the initial trace. State each meaningful comparison and show the resulting move clearly.

Why keep a sorted boundary?

It tells the viewer which cards have been processed even when the visible order does not change.

Should I include duplicates immediately?

Use a separate follow-up example with an explicit comparison rule after the basic procedure is clear.

Sources and further checks

Coming to iPhone and iPad

Put your next script on EasyLines.

A little help with the words. More room to be yourself. Join the waitlist and we’ll email you at launch.

By joining, you agree to receive an email when EasyLines launches. No newsletter. Privacy policy.