Selection Sort algorithm in pseudocode
An algorithm that repeatedly finds the smallest remaining element and swaps it into its correct position.
Understanding Selection Sort algorithm in pseudocode in VCE Pseudocode
What it does: This line updates min to the newly found smaller index. Each pass scans the unsorted part for the smallest element. Selection sort works on unsorted arrays and sorts them in place. min is updated to track the index of the smallest value so far. Assignment uses ←, not =, in pseudocode. Swapping places the smallest found element at the front. Array elements use square brackets, not round brackets. This condition looks for a new smallest element.
Common mistakes: Selection sort starts at index 1, not 0, by convention. Assignment uses ←, not =, to update min.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 11–28) and word search (Modules 1–28).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
Selection SortFill in the Blanks
Spot the Error
Student with a class code? Join your class →