Q. Which of the following sorting algorithm is NOT stable?

  • (A) selection sort
  • (B) brick sort
  • (C) bubble sort
  • (D) merge sort
πŸ’¬ Discuss
βœ… Correct Answer: (A) selection sort
Explanation: out of the given options selection sort is the only algorithm which is not stable. it is because the order of identical elements in sorted output may be different from input array.

Explanation by: Mr. Dubey
out of the given options selection sort is the only algorithm which is not stable. it is because the order of identical elements in sorted output may be different from input array.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
921
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate