Fill in the blank arrays to show the steps involved in applying the bubble sort algorithm to the array [4, 2, 5, 1, 3]. You only need to show the missing steps where a change is applied to the array.
4
2
5
1
3
1
2
3
4
5
[5]
Markscheme
Sorting algorithms Questions
52 exam-style questions on AQA GCSE Computer Science Sorting algorithms. Each one has a worked solution and a mark scheme showing where the marks go.