Could you rank five GAA scores by swapping only neighbours?
Five GAA scores are written on cards. You want them in order from lowest to highest, but you can only swap cards that are next to each other. Can you get the highest score to the end?
When you swap two cards, each takes the other's place. In selection sort, you first find the smallest item in the unsorted part. Then you swap it into the first position in that part if it isn't already there. Keep that swap in mind as the rule for choosing a pair changes.
Start with six, two, five, three, eight. Compare neighbours from left to right. Six swaps with two, then five, then three. When six meets eight, leave them as they are. Eight is now fixed at the end. In bubble sort, you swap neighbours when the one on the left is larger.
Your list starts with three, seven, two, five. You've already compared three and seven and left them alone. Now compare seven and two. What does the list look like immediately after that comparison? Pick an answer.
One sweep from left to right is called a pass. On the next pass, skip the items already fixed at the end. If you make it through a full pass without swapping, the list is sorted. You also finish once there's only one item left outside the fixed part.
Start pass two with eight fixed at the end. Two and five stay put. Five swaps with three, then stays before six, which is now fixed. On pass three, two stays before three, and three stays before five. That's a full pass with no swaps, so you can stop.
Start with four, three, one, five. Sweep left to right once. After each comparison, move one position to the right, using the list as it now stands. What is the list at the end of that first pass? Pick an answer.
After the first pass, five is fixed at the end, but three still sits before one. It's tempting to call the list sorted. When one moved left of four, you'd already swept past the first pair. On pass two, you compare three with one and swap them.
With n items already sorted, bubble sort stops after n minus one comparisons, so its best case grows linearly. With distinct items in reverse order, you count n minus one, n minus two, down to one. That total grows quadratically. Standard selection sort makes that full count even on sorted input.
If asked to show the contents of the list after the second pass, count full sweeps. Start with five, one, four, two. Pass one fixes five at the end. On pass two, four swaps with two. Copy the whole second-pass row, including the five you skipped.