GATE CS 2016 · Set-1 · Insertion Sort

MCQ · 1 mark · Problem PROG-SORT-0029

The worst case running times of Insertion sort, Mergesort and Quicksort, respectively, are:
  1. A
    \(\Theta\)(n logn), \(\Theta\)(n logn), and \(\Theta(n^{2})\)
  2. B
    \(\Theta (n^{2}),\Theta(n^{2}), and \Theta (n logn)\)
  3. C
    \(\Theta (n^{2}),\Theta(n logn), and \Theta (n logn)\)
  4. D
    \(\Theta (n^{2}),\Theta(n logn), and \Theta (n^{2})\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/39660/gate2016-1-13

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com