Computer Science EngineeringEasy

Which of the following standard sorting algorithms is stable?

  1. A. Quick sort
  2. B. Heap sort
  3. C. Merge sort
  4. D. Selection sort

Correct answer: C. Merge sort

Merge sort preserves the relative order of equal keys when merging, while the others can reorder them.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic