Sort
Search
Comparisons 0
Operations 0
Bubble Sort
Time O(n²)
Space O(1)
Repeatedly steps through the list, compares adjacent elements, and swaps them if out of order. Simple but inefficient for large datasets.
Comparing
Swapping
Pivot / Mid
Sorted / Found
Unsorted