______________ sort places the element of a list at its suitable place in each pass. It is similar to the placing of cards at its right position while playing cards.
______________ sort places the element of a list at its suitable place in each pass. It is similar to the placing of cards at its right position while playing cards.
Solution
Insertion sort takes one element in each pass and inserts it into its correct position among the already sorted elements on its left. This is exactly how a person arranges playing cards in hand: pick up a card and slide it into its right place among the cards already held.
Selection sort: finds the smallest (or largest) element in the unsorted part and swaps it into position, rather than inserting each element into a sorted part.
Bubble sort: repeatedly compares and swaps adjacent elements, so the largest element "bubbles" to the end in each pass.
Related questions:
2026: 23 May Shift 2
2026: 13 May Shift 2
2025: 14 May Shift 1
2026: 29 May Shift 2