Algorithms · Interactive laboratory
Sorting Algorithm Visual Lab
Compare bubble sort and insertion sort as they organise a shuffled array of values.
Simulation running
Adjust parameters · Explore the model
Changes apply instantly
What you are exploring
Sorting algorithms repeatedly compare values and move them into order. Bubble sort makes passes through neighbouring pairs; insertion sort grows a sorted prefix by inserting each new value into its correct position.