What is a stable algorithm?



What is a stable algorithm?..

Answer / Najir Husen

A stable sorting algorithm preserves the relative order of equal elements in the input collection. That means that if there are multiple equal elements, they will maintain their original position within the sorted output.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

applications of stacks and their uses?

1 Answers   Mind Tree, Samsung,


How many types of data structures are there?

1 Answers  


Sorting is not possible by using which of the following methods? (a) Insertion (b) Selection (c) Exchange (d) Deletion

1 Answers  


Can we increase the size of statically allocated array?

1 Answers  


What are the objectives of studying data structures?

1 Answers  


Why do we need algorithm?

1 Answers  


What are the basic data structures?

1 Answers  


Is hashtable throw concurrentmodificationexception?

1 Answers  


Is there any difference between int[] a and int a[]?

1 Answers  


How does sort function work?

1 Answers  


Why hashmap is faster than hashset?

1 Answers  


Why is data structure important?

1 Answers  


Categories