Mental Model
Selection sort finds the smallest item and puts it at the start, then repeats for the rest.
Analogy: Imagine sorting books by picking the shortest book from the unsorted pile and placing it on the shelf one by one.
Unsorted array: [7, 3, 5, 2, 4] Indexes: 0 1 2 3 4