GATE CS 2016, set 1 · Question 23 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
The worst case running times of Insertion sort , Merge sort and Quick sort , respectively, are:
- (A) Θ(n log n), Θ(n log n), and Θ(n²)
- (B) Θ(n²), Θ(n²), and Θ(n log n)
- (C) Θ(n²), Θ(n log n), and Θ(n log n)
- (D) Θ(n²), Θ(n log n), and Θ(n²)
Answer
Answer (D)
Answer from the official GATE CS 2016 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes