powered by v43.aiBelajar anatomi seperti seorang seniman
Indonesia
Class 9 · Computing

Step through bubble sort

Interactive explanation Gamified quiz, feedback & rewards

0 XP0 mastered
Try the hands-on playground ↓
Suggested-level exploration · Learning goals & preparation

By the end, you can…

  • Explain Compare neighbours → swap if left > right
  • Change one input at a time and predict its effect before checking the model.
  • Apply the relationship in a quiz and explain the reasoning behind your answer.

Useful preparation: Whole numbers, basic arithmetic and following ordered instructions.

This topic has a suggested learning level. A matching chapter in the current NCERT edition has not been verified, so it is not labelled as syllabus coverage.

Hands-on explainer · Class 9

Step through bubble sort

Class 9
Ready to compare876543Step 0 of 31 · use Step to inspect each comparison
0%
The relationshipCompare neighbours → swap if left > right
Practice playground · Explore before your quiz

Be the bubble-sort algorithm

Only swap adjacent values that are out of order. After a complete left-to-right pass, a largest value reaches the right.

0 swaps · Keyboard: Tab to a bar, Enter to select, then select its neighbour.

Select two neighbouring bars, or drag one onto its neighbour.

Practice freely here. Your quiz stars are earned in the concept quest.

01 · How to explore

Make the idea your own

  1. 1Read the highlighted pair before advancing.
  2. 2Predict whether it needs a swap, then Step.
  3. 3Run the trace to the end and check ascending order.
02 · Take it further

Explain the experiment

When the goal is met: Every adjacent comparison preserves the values and moves an out-of-order pair towards ascending order.