OPTIMIZED SELECTION SORT ALGORITHM
(OSSA)
A. Optimized Selection Sort Algorithm
The three main characteristics of this algorithms is that, it is
in-place, stable and easy to understand as compared to other
algorithms of order O(n2
) [15].
The working mechanism of OSSA is that it starts sorting the
array from both ends. In a single iteration, first the smallest
and largest element in the array are searched, and then both at
the same time are placed at the specific location. This process
is continued until the whole array is sorted
Even though the order of OSSA is still O(n2
), but its
performance level has been very much improved as compared
to other sorting algorithm of the said order i.e selection sort,
insertion sort etc [15].
B. Pseudo Code & Execution Time of Individual
Statement of Optimized Selection Sort Algorithm