ComputerBubble Sort
A SelectSmart.com Flowchart by
To print this page, right mouse click, open "Print preview", "Print" or a similar option depending on your browser, then use the controls to size this page appropriately. Go to SelectSmart.com/flowchart/flowchart.php?id=1002102 for the original version of this flowchart. Find and create other free decision making tools at SelectSmart.com. Use our interactive selectors to find the best college, best career, right religion, most appropriate dog breed, best college major and more.  
SelectSmart.com SelectSmart.com®
Make Your Own Flowchart
© SelectSmart.com. All Rights Reserved.


               
Begin
 
 
 
 









iterations = 1; x = 0;
 
 
 
 









 
iterations++;
 
 
 



NO






iterations < N
YES
x < N -2
x++;
 
 

NO


YES






End
array[x] > array[x+1]
NO
 
 
 



YES






 
temp = array[x+1] array[x+1] = array[x] array[x] = temp