LIVE SIMULATIONCANVAS ENGINE · REAL-TIME MODEL
What you are exploring
Bubble sort repeatedly compares adjacent elements and swaps them when they are out of order. Each pass moves a large value towards the end; the algorithm has O(n²) average and worst-case time.