Data Structures :: Searching & Sorting - Discussion
24 / 69
Which of the following sorting algorithm is stable
Ainsertion sort.
Bbubble sort.
Cquick sort.
DBoth (A) and (B)
Show Explanation
A stable sorting algorithm is the one that sorts the identical elements in the same order as they appear in the input, whilst unstable sorting may not satisfy the case.
Stable Sorting Algorithms:
Insertion Sort
Merge Sort
Bubble Sort
Tim Sort
Counting Sort
Unstable Sorting Algorithms:
Heap Sort
Selection sort
Shell sort
Quick Sort
Asked In ::
A stable sorting algorithm is the one that sorts the identical elements in the same order as they appear in the input, whilst unstable sorting may not satisfy the case.
Stable Sorting Algorithms:
Insertion Sort
Merge Sort
Bubble Sort
Tim Sort
Counting Sort
Unstable Sorting Algorithms:
Heap Sort
Selection sort
Shell sort
Quick Sort
Read Full Answer
Report Error
Please Login First Click Here
heap sort is not stable . Insertion and bubble both of these are stable.
Read Full Answer
Report Error
Please Login First Click Here
Read Full Answer
Report Error
Please Login First Click Here
Read Full Answer
Report Error
Please Login First Click Here