Learned all this in university years ago, but I was overdue for a refresher.
BubbleSort
and SelectionSort
I simply observed from the Android application Algorithms: Explained and Animated the animation flow steps, but deliberately avoiding any code. Then I created the code on paper and traced it. Finally I wrote it up in stages here and tested it, arriving at the commonly accepted algorithm.