Insertion sort - GCSE Computer Science Definition

Reviewed by: James Woodhouse

Last updated

Insertion sort is a simple sorting algorithm that helps organise a list of items, like numbers or words, in a specific order, such as from smallest to largest. Imagine you have a number of cards, and you want to arrange them in order. You start with the first card, and then you pick up the next one. If the second card belongs before the first, you swap them. You continue doing this for each new card, finding the right spot in the already sorted section and inserting it there. As you go through the entire list, the items slowly become sorted. Although insertion sort is not the fastest way to sort big lists, it’s easy to understand and works well for small or mostly sorted lists.

Only required for OCR Computer Science (J277)

Examiner-written GCSE Computer Science revision resources that improve your grades 2x

  • Written by expert teachers and examiners
  • Aligned to exam specifications
  • Everything you need to know, and nothing you don’t
GCSE Computer Science revision resources

Share this article

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

The examiner written revision resources that improve your grades 2x.

Join now