Đ Đức Lưu New member Sep 21, 2021 #1 Which of the following sorting algorithm is stable? A. Selection sort B. Quick sort C. Bubble sort D. Heap sort
Which of the following sorting algorithm is stable? A. Selection sort B. Quick sort C. Bubble sort D. Heap sort
N Nguyễn Thị Lan New member Sep 21, 2021 #2 Answer: c Explanation: Out of the given options bubble sort is the only algorithm which is stable. It is because the elements with identical values appear in the same order in the output array as they were in the input array. Upvote 0 Downvote
Answer: c Explanation: Out of the given options bubble sort is the only algorithm which is stable. It is because the elements with identical values appear in the same order in the output array as they were in the input array.