Example of insertion sort as a stable sort
Answers
Answered by
1
Two keys appear in same order
Answered by
2
A sorting algorithm is said to be stableif two objects with equal keys appear in the same order in sorted output as they appear in the input unsorted array.
Some sorting algorithms are stable by nature like Insertion sort, Merge Sort,Bubble Sort, etc.
I hope it helps u.....
Some sorting algorithms are stable by nature like Insertion sort, Merge Sort,Bubble Sort, etc.
I hope it helps u.....
Similar questions
English,
7 months ago
English,
7 months ago
India Languages,
7 months ago
Physics,
1 year ago
CBSE BOARD XII,
1 year ago
Math,
1 year ago