Curated · Selection Sort

MCQ · 1 mark · Problem PROG-SORT-0082

What could be the best algorithm from the following when the time complexity is measured based on the number of swaps performed by the sorting algorithm?
  1. A
    Selection sort
  2. B
    Insertion sort
  3. C
    Bubble sort
  4. D
    Quick Sort

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionNumber of swapping in selection sort is n-1 which is minimum compared to other algorithms.Click to Join Our Telegram Group for Latest Update of MOCK TEST Click Here to Practice ALL Previous MOCK TEST FREE

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com