Download presentation

Presentation is loading. Please wait.

Published byIsabell Templer Modified about 1 year ago

1
Decision Maths 1 Sorting Algorithms Bubble Sort A V Ali : 1.Start at the beginning of the data set. 2.Compare the first two elements, and if the first is greater than the second, swaps them. 3.Continue doing this for each pair of adjacent elements to the end of the data set. 4.Start again with the first two elements, repeating until no swaps have occurred on the last pass.

2
Bubble Sort Pass

3
Pass

4
Pass

5
Pass

6
Pass Sorted !!!

Similar presentations

© 2016 SlidePlayer.com Inc.

All rights reserved.

Ads by Google