Practise bubble, selection, insertion and merge sort: show each pass, count comparisons and swaps, and compare complexity.
A-level style pure and applied strands: calculus, trigonometry, sequences, vectors, probability, and proof. Take on more complex questions with full solutions when you are ready.
Bubble sort: compare adjacent pairs; repeat n − 1 passesSelection sort: select the smallest remaining item each passInsertion sort: insert each item into its sorted positionMerge sort: divide, sort, merge - O(n log n)Loading...
We use cookies and similar technologies to improve your experience and analyse traffic. You can choose which categories to allow.