Bubble Sort
Insertion Sort
Selection Sort
Merge Sort
Quick Sort
Heap Sort
Size:
50
Speed:
5
Pattern:
Unsorted
Comparing
Swapping
Pivot
Merging
Sorted
Bubble Sort
Best caseO(n)
AverageO(n²)
Worst caseO(n²)
SpaceO(1)
StableYes
Description
Repeatedly steps through the list, compares adjacent elements and swaps them if out of order. Simple but inefficient for large datasets.