Question 3138 – Research Aptitude
May 11, 2024UGC NET CS 2011 Dec-Paper-2
May 12, 2024UGC NET CS 2011 Dec-Paper-2
|
Question 2
|
The total number of comparisons in a bubble sort is
|
0(log n)
|
|
|
0(n log n)
|
|
|
0(n)
|
|
|
None of the above
|
Question 2 Explanation:
The total number of comparisons in a bubble sort is O(n2)
Correct Answer: D
Question 2 Explanation:
The total number of comparisons in a bubble sort is O(n2)
