Showing AQAChange board

Sorting Cards in Your Hand

Test yourself on Insertion Sort with exam style questions, marked instantly.

Flashcards that come back just before you would forget them.

A revision plan that remembers what you know and shows what to do next.

See which topics you have nailed and which need another look.

Quiz yourself on Insertion SortGet your flashcardsBuild my revision planTrack my progress

Sorting Cards in Your Hand

Insertion sort is how most people sort playing cards. You pick up one card at a time and slide it into the right place among the cards you are already holding. The cards in your hand are always in order, and the pile still to pick up shrinks each time.

Insertion sort on the list 5, 3, 8, 1, 9, 2 in six rows. Start: 5 3 8 1 9 2, with 5 as the sorted part. Insert 3: 3 5 8 1 9 2. Insert 8: 3 5 8 1 9 2. Insert 1: 1 3 5 8 9 2. Insert 9: 1 3 5 8 9 2. Insert 2: 1 2 3 5 8 9. Sorted items are green and bold, and the item just inserted has a thick outline.

Insertion sort takes the next item and inserts it into its correct place in the sorted part on the left. The sorted part grows by one item each row. Insertion sort is named in the OCR J277 specification only. AQA and Edexcel name bubble sort and merge sort but not insertion sort.

Make this stick

Signing in gives access to all PrepWise features.

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.