October 07, 2024 |274.1K Views

    Selection Sort

      Share  8 Likes
    Description
    Discussion

    The selection sort algorithm sorts an array by repeatedly finding the minimum element (considering ascending order) from unsorted part and putting it at the beginning. The algorithm maintains two subarrays in a given array.

    The subarray which is already sorted. 
    Remaining subarray which is unsorted.


    In every iteration of selection sort, the minimum element (considering ascending order) from the unsorted subarray is picked and moved to the sorted subarray.

    Selection Sort : https://www.geeksforgeeks.org/selection-sort/