CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following sorting algorithms are stable?

I. Insertion sort II. Bubble sort
III. Merge sort IV. Heap sort

A
I, II, III and IV
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
I only
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
I and II
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
I, II and III
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is D I, II and III
Stability of Sorting implies that the relative order of non-distinct elements is maintained.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Adjoint and Inverse of a Matrix
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon