Skip to content

ISRO Scientist/Engineer CSE 2020Algorithms › Sorting

ISRO Scientist/Engineer CSE 2020 PYQ: Of the following sort algorithms, which has execution time that is least dependant on initial ordering of…

Of the following sort algorithms, which has execution time that is least dependant on initial ordering of the input?

  1. A
    Insertion sort
  2. B
    Quick sort
  3. C
    Merge sort
    Correct answer
  4. D
    Selection sort

Answer

(C) Merge sort

Approach

Identify which sorting algorithm's running time is invariant (non-adaptive) with respect to the initial arrangement of the input. Compare best, average, and worst-case complexities of each option.

Reviewed by ISRO IQ Editorial Team.