This study notes covers Exam Tips within Insertion Sort for GCSE Computer Science. Revise Insertion Sort in 3.1 Fundamentals of Algorithms for GCSE Computer Science with 15 exam-style questions and 10 flashcards. This topic appears regularly enough that it should still be part of a steady revision cycle. It is section 7 of 8 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Exam Tips
- 0-indexed: First element is array[0], last is array[length-1]
- 2D notation: [row, column] - think spreadsheet (row first)
- Common mistake: Accessing array[10] when array only has 10 elements (valid: 0-9)
Practice questions for Insertion Sort
Which statement best describes how insertion sort works?
Describe how insertion sort works. Your answer should include how the algorithm processes each element.
Quick recall flashcards
How does insertion sort work?
Builds sorted list one element at a time by inserting each element into its correct position
What is the time complexity of insertion sort?
O(n²) worst/average case, O(n) best case (already sorted)