Selection Sort and A Brief About Regarding Insertion Sort

https://courses.cs.washington.edu/courses/cse373/19au/lectures/05/reading/

Selection sort is one of the simpler possible ways to sort a list. This algorithm works by scanning a list of items for the smallest element and then swapping that element for the one in the first position. Refer to the above image to see the smallest item seen, where it sorts based on locating the smallest item and then the next smallest item through the list in consecutive order. It keeps…