Question 3138 – Research Aptitude
May 11, 2024
UGC NET CS 2011 Dec-Paper-2
May 12, 2024
Question 3138 – Research Aptitude
May 11, 2024
UGC NET CS 2011 Dec-Paper-2
May 12, 2024

UGC NET CS 2011 Dec-Paper-2

Question 2
The total number of comparisons in a bubble sort is
A
0(log n)
B
0(n log n)
C
0(n)
D
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)

Leave a Reply

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