Sort Algorithms
Sort Algorithms A major part of computation is sorting data. Sorting allows to identify duplicates and makes data searching more efficient. Selection Sort One of the simplest sorting algorithms is the selection sort algorithm. Its method of finding an element can be somewhat categorized as brute-forcing and so its efficiency is far from its main characteristics. Selection sort goes through an array of elements (say integers) until it finds the smallest one. It then exchanges this smallest integer and it exchanges it with the first integer in the array. After this, it goes through the array again and it looks again for the smallest integer. After finding it, it exchanges it with the second integer in the array. It continues this process until the array is finally sorted. The name of this sorting algorithm is called so because it repeatedly selects the smallest element every time it goes through the array. Here is a simple example: Taking a look at the pseud...