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:

  1. (A) Θ(n log n), Θ(n log n), and Θ(n²)
  2. (B) Θ(n²), Θ(n²), and Θ(n log n)
  3. (C) Θ(n²), Θ(n log n), and Θ(n log n)
  4. (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