...
Database-Management-System
October 14, 2023
GATE 2007
October 14, 2023
Database-Management-System
October 14, 2023
GATE 2007
October 14, 2023

GATE 2007

Question 14

Which of the following sorting algorithms has the lowest worst-case complexity?

A
Merge sort
B
Bubble Sort
C
Quick Sort
D
Selection Sort
Question 14 Explanation: 
Worst case time complexities are
Merge sort→ O(nlogn)
Bubble sort→ O(n2)
Quick sort→ O(n2)
Selection sort→ O(n2)
Correct Answer: A
Question 14 Explanation: 
Worst case time complexities are
Merge sort→ O(nlogn)
Bubble sort→ O(n2)
Quick sort→ O(n2)
Selection sort→ O(n2)

Leave a Reply

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