I will try to explain a little about the Selection Sort algorithm that I have learned and understood. Before you go any further I tried to interpret the meaning of the first syllable. When viewed Selection Sort can be interpreted as sorting is done using a selection process. What was selected? Of course the data to be sorted. Selection of this sort, including sorting categories that are still using comparative data or known by the Comparison Sort example like Bubble Sort Sort, Selection Sort, Insertion Sort, Merge sort.
The algorithm in this sorting process (Comparison Sort) is to do a comparison between the data which was followed by the exchange of data if not in accordance with certain requirements.