...
2010 June UGC NET Paper 1
October 27, 2023
Sorting
October 28, 2023
2010 June UGC NET Paper 1
October 27, 2023
Sorting
October 28, 2023

Sorting

Question 86
Which of the following sorting procedures is the slowest?
A
Quick sort
B
Merge sort
C
Shell sort
D
Bubble sort
Question 86 Explanation: 
Bubble sort will execute O(n​ 2​ ) time worst case and also it takes n-1 comparisons. So, bubble sort procedure is the slowest one among all.
Correct Answer: D
Question 86 Explanation: 
Bubble sort will execute O(n​ 2​ ) time worst case and also it takes n-1 comparisons. So, bubble sort procedure is the slowest one among all.

Leave a Reply

Your email address will not be published. Required fields are marked *