Concept Flow - Bubble Sort Algorithm
Start with array
Compare adjacent elements
If left > right?
No→Move to next pair
|Yes
Swap elements
Reach end of array?
No→Repeat compare-swap
Yes
Reduce array length by 1
Is array length > 1?
Yes→Repeat passes
No
Sorted array
Bubble Sort repeatedly compares and swaps adjacent elements, pushing the largest unsorted element to the end each pass, until the array is sorted.