Comparison count
Tracks how many pair checks the algorithm has needed so far.
Concept module
Watch sorting as visible work on a live list so input order, comparisons, and writes stay concrete instead of collapsing into one final answer.
The simulation shows an array of bars. The active interval, settled region, and pointer markers show what the current sorting algorithm is doing, while a readout card reports comparisons, writes, and remaining disorder. Bubble sort is running on a shuffled list of 9 values. Comparisons: 0. Writes: 0. The active stage is "bubble sort ready". The largest unsorted value will keep drifting toward the right edge.
Interactive lab
Keep the stage, graph, and immediate control feedback in one working view.
Time
0.00 s / 29.1 sLivePause to inspect a specific moment, then step or scrub through it.Algorithms and trade-offs
Keep the live list, the active comparison, and the running costs visible together so sorting reads like a process instead of a magic jump from unsorted to sorted.
Graphs
Switch graph views without breaking the live stage and time link.
Comparisons and writes
One graph tracks comparisons and writes over time. A second graph tracks inversions remaining versus settled items, and a third graph shows the fraction of disorder left.
Controls
Adjust the live parameters and watch the bench respond.
Presets
Predict -> manipulate -> observe
Keep the active prompt next to the controls so each change has an immediate visible consequence.
Equation map
Select a symbol to highlight the matching control and the graph or overlay it most directly changes.
Switches among the bounded sorting strategies on the same list view.
Equations in play
Choose an equation to sync the active symbol, control highlight, and related graph mapping.
More tools
Detailed noticing prompts, guided overlays, and challenge tasks stay available without taking over the main bench.
What to notice
Keep the live list and one graph visible together.
Guided overlays
Focus one overlay at a time to see what it represents and what to notice in the live motion.
Overlay focus
Highlight the part of the list the algorithm is still working on.
What to notice
Why it matters
It shows which part of the list is still expensive and which part is already resolved.
Challenge mode
Build a genuinely low-cost case rather than just landing on the right final order.
4 of 7 checks
The checklist updates from the live simulation state, active graph, overlays, inspect time, and compare setup.
Comparison count
Tracks how many pair checks the algorithm has needed so far.
Write count
Tracks how much the algorithm has actually rewritten the list.
Disorder count
Counts how many out-of-order pairs still remain.
Progress
Not startedMastery: NewLocal-firstStart exploring and Open Model Lab will keep this concept's progress on this browser first. Challenge mode has 1 compact task ready. No finished quick test, solved challenge, or completion mark is saved yet.
Try this setup
Jump to a named bench state or copy the one you are looking at now. Shared links reopen the same controls, graph, overlays, and compare context.
Saved setups
Premium keeps named exact-state study setups in your account while stable concept links stay public below.
Checking saved setup access.
This concept can keep using stable links while the saved-setups capability resolves for this browser.
Copy current setup
Stable concept and section links stay public below while exact-state setup sharing stays behind premium.
Stable links
Starter track
Step 1 of 20 / 2 completeNext after this: Binary Search / Halving the Search Space.
This concept is the track start.
Short explanation
Sorting should feel like a visible process, not a before-and-after jump. This bench keeps the live list, the active comparisons, and the running costs together so each algorithm leaves a readable trace.
The point is not to memorize a complexity table first. The point is to watch the same sorted output arrive through different local decisions, and to see why input order changes the story.
Key ideas
Worked example
Live worked examples are available on Premium. You can still read the full frozen walkthrough on the free tier.
View plansBubble
shuffled
1. Name the live setup
2. Read the visible cost
3. Read how much disorder is left
Current trade-off read
Common misconception
If two algorithms end with the same sorted list, they must have behaved in basically the same way.
The same final answer can hide very different step patterns and costs.
This is why the list view and the counters stay visible together.
Mini challenge
Prediction prompt
Check your reasoning
Quick test
Reasoning
Question 1 of 2
Choose one answer to reveal feedback, then test the idea in the live system if a guided example is available.
Accessible description
The simulation shows an array of bars. The active interval, settled region, and pointer markers show what the current sorting algorithm is doing, while a readout card reports comparisons, writes, and remaining disorder.
Graph summary
One graph tracks comparisons and writes over time. A second graph tracks inversions remaining versus settled items, and a third graph shows the fraction of disorder left.
Read next
These suggestions come from the concept registry, so the reason label reflects either curated guidance or the fallback progression logic.
Keep an ordered list, the low-mid-high markers, and the shrinking interval visible together so binary search feels visual instead of procedural.
Move one parent curve with honest controls so shifts, vertical scale, and reflections stay tied to the same overlaid graph and landmark points.
Keep neutralization, buffer reserve, and the pH strip visible together so steady pH does not look like unchanged chemistry.