This study notes covers Arrays 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 3 of 8 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Arrays
| Operation | GCSE Pseudocode | Example |
|---|---|---|
| Declare 1D array | array name[size] | array scores[10] |
| Access element | name[index] | scores[0] = 85 |
| Declare 2D array | array name[rows, cols] | array grid[3, 4] |
| Access 2D | name[row, col] | grid[1, 2] = "X" |
Note: Arrays are 0-indexed (first element is index 0)
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.