Skip to content

Language

Sign in

← Back to the lesson

🔬 Computer science · Class 9 to 12 · virtual lab

Sorting algorithms

Goal: Watch bubble, selection and insertion sort work and compare how many steps each needs.

  1. Predict
  2. Try
  3. Observe
  4. Record
  5. Explain
  6. Check

Loading the lab…

About this lab

Behind the experiment.

What this lab simplifies

  • Items are distinct whole numbers.
  • Comparisons and swaps are counted exactly; time on a real computer also depends on the machine.
  • Only three simple methods are shown.

No screen? Use paper.

The activity sheet has the same steps, a results table and the questions, ready to print.

Printable activity sheet (paper version)All labs

Sorting algorithms: virtual lab · EduFlint