Identify the sorting technique :
In this, the smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes a part of the sorted array. The process continues for the next element in the unsorted array till the list is sorted.
Identify the sorting technique :
In this, the smallest element is selected from the unsorted array and swapped with the leftmost element, and that element becomes a part of the sorted array. The process continues for the next element in the unsorted array till the list is sorted.
Solution
Selection sort repeatedly selects the smallest element from the unsorted part of the array and swaps it with the leftmost unsorted element. That position then joins the sorted part, and the process repeats for the remaining unsorted elements until the list is sorted.
Insertion sort: it takes the next element and inserts it into its correct place in the sorted part by shifting elements. It does not search for the minimum and swap.
Bubble sort: it repeatedly compares adjacent elements and swaps them if they are out of order, so large elements "bubble" to the end.
Merge sort: it is a divide and conquer method that splits the array, sorts the halves and merges them.
Related questions:
2026: 11 May Shift 2
2026: 26 May Shift 1
2026: 23 May Shift 1