Sorting Visualizer

Comparisons: 0
Array Accesses: 0
Unsorted
Active
Sorted

Live Explanation

Press Play or Step Forward to start the visualization.

Algorithm Theory

Bubble Sort

Time Complexity
\(\mathcal{O}(n^2)\)
Space Complexity
\(\mathcal{O}(1)\)

Learning Objectives

Understand the mechanics of standard sorting algorithms, analyze their time and space complexities, and evaluate their suitability for different datasets.

Concept

Deduction of Complexity

Data Pattern Impact

Misconception Alert

Think & Link

Code

Self-Assessment