Online worksheet ยท 4 of 4
A pass does not always finish the job - Online practice 4
Read the information, then answer the questions. An adult may read the instructions aloud. Show your working where asked.
Read before answering
Adjacent-swap pass on [2,1,4,3]. Compare indices (0,1), then (1,2), then (2,3), using the updated list after each comparison. Swap only if the left value is GREATER than the right. This is one left-to-right pass, not the entire sorting algorithm. Equal neighbours are not swapped.
Worksheet preview
This exercise is included in the paid course. Full-course fee: GBP 200.00 once. Register and enrol to complete all course exercises and download the course PDFs. Access begins after payment is confirmed.
Already registered? Sign in