Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

GATE | GATE CS 1999 | Question 12

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

A sorting technique is called stable if:

(A)

It takes O(n*log(n)) time

(B)

It maintains the relative order of occurrence of non-distinct elements

(C)

It uses divide and conquer paradigm

(D)

It takes O(n) space


Answer: (B)

Explanation:

The correct option is B it maintains the relative order of occurrence of non-distinct elements
A sorting algorithm is called stable if it keeps elements with equal keys in the same relative order in the output as they were in the input.


Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 06 Oct, 2017
Like Article
Save Article
Similar Reads