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 size by 1
Array sorted?
No→Repeat passes
|Yes
Done
Bubble Sort repeatedly compares and swaps adjacent elements, pushing the largest unsorted element to the end each pass, until the array is sorted.