All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · June 2024 (Re-Exam)

Select the Sorting Algorithms that are stable.

(A) Quick Sort

(B) Bubble Sort

(C) Insertion Sort

(D) Merge Sort

(E) Shell Sort

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. (B), (C) and (D) Only

Explanation

Bubble, insertion and merge sort keep equal keys in their original order. Quick sort and shell sort are not stable.

More Data Structures and Algorithms questions