D1 June 2006 Q1

EdexcelOld spec4 marksAlgorithms

1.

52    48    50    45    64    47    53

The list of numbers above is to be sorted into descending order. Perform a bubble sort to obtain the sorted list, giving the state of the list after each completed pass. (4)