Use the bubble sort to put the numbers 3, 2, 4, 1, 5 into increasing order.

a) Use the bubble sort to put the numbers 3, 2, 4, 1, 5 into increasing order. Illustrate the output returned in each pass clearly. Also write the pseudo algorithm to it.


Leave a Reply