You are on page 1of 1

START

Get array item[1..n]

Bubble Sort Simplified Flowchart

i=1

j=n

item[j] less than item[j-1] ?

yes

Swap item[j] and item[j-1]

no

j = i+1?

j = j-1

i = n-1 ?

i = i+1

END

You might also like