Question 11 mark
What is the list 7, 3, 9, 2, 5 after the first pass of a bubble sort (ascending)?
2.3.1(f) · Data structures and algorithms
PG Online Computer Science · Ch 61 Bubble sort and insertion sort
What is the list 7, 3, 9, 2, 5 after the first pass of a bubble sort (ascending)?
What is the list 4, 1, 6, 3, 8, 2 after the first pass of a bubble sort (ascending)?
What is the list 9, 8, 7, 6 after the first pass of a bubble sort (ascending)?
Insertion sort runs on 5, 2, 8, 1, 9. What is the list once the items at indexes 1 and 2 have both been inserted?
Insertion sort runs on 3, 6, 1, 4. What is the list once the items at indexes 1 and 2 have both been inserted?